Version Description
- New: WordPress 5.9 compatibility
- Fix: Adding new images to existing galleries
- Fix: Ajax gallery pagination
- Fix: Infinite scroll issues with Masonry gallery
- Fix: Edge case PHP Fatal error
- Fix: WP Media grid view folders not updating
- Fix: Gallery shortcode not selecting
- Fix: Deprecated events: DOMNodeInserted, DOMNodeRemoved in front.js
- Fix: Deprecated event: DOMNodeInserted in admin-galleries.js
- Fix: Uncaught Error: Call to undefined method Responsive_Lightbox_Galleries::get_active_providers()
Download this release
Release Info
Developer | dfactory |
Plugin | Responsive Lightbox & Gallery |
Version | 2.3.4 |
Comparing to | |
See all releases |
Code changes from version 2.3.3 to 2.3.4
- assets/fancybox/LICENSE +21 -0
- assets/featherlight/LICENSE +21 -0
- assets/featherlight/README.md +508 -0
- assets/featherlight/featherlight.css +2 -2
- assets/featherlight/featherlight.gallery.css +2 -2
- assets/featherlight/featherlight.gallery.min.css +2 -2
- assets/featherlight/featherlight.gallery.min.js +8 -1
- assets/featherlight/featherlight.js +1 -1
- assets/featherlight/featherlight.min.css +2 -2
- assets/featherlight/featherlight.min.js +8 -1
- assets/imagelightbox/LICENSE +21 -0
- assets/imagelightbox/README.md +6 -0
- assets/imagesloaded/LICENSE +19 -0
- assets/imagesloaded/README.md +362 -0
- assets/infinitescroll/LICENSE +13 -0
- assets/infinitescroll/README.md +177 -0
- assets/infinitescroll/infinite-scroll.pkgd.js +489 -802
- assets/infinitescroll/infinite-scroll.pkgd.min.js +9 -4
- assets/jstree/LICENSE +22 -0
- assets/jstree/README.md +31 -0
- assets/jstree/jstree.js +302 -268
- assets/jstree/jstree.min.js +6 -1
- assets/jstree/themes/default-dark/32px.png +0 -0
- assets/jstree/themes/default-dark/40px.png +0 -0
- assets/jstree/themes/default-dark/style.css +1152 -1146
- assets/jstree/themes/default-dark/style.min.css +1 -1
- assets/jstree/themes/default-dark/throbber.gif +0 -0
- assets/jstree/themes/default/style.css +4 -0
- assets/jstree/themes/default/style.min.css +1 -1
- assets/magnific/LICENSE +20 -0
- assets/magnific/README.md +76 -0
- assets/masonry/LICENSE +21 -0
- assets/masonry/README.md +84 -0
- assets/nivo/LICENSE +22 -0
- assets/perfect-scrollbar/LICENSE +21 -0
- assets/perfect-scrollbar/README.md +92 -0
- assets/perfect-scrollbar/perfect-scrollbar.js +13 -5
- assets/perfect-scrollbar/perfect-scrollbar.min.css +1 -1
- assets/perfect-scrollbar/perfect-scrollbar.min.js +4 -4
- assets/prettyphoto/LICENSE +10 -0
- assets/prettyphoto/README.md +30 -0
- assets/select2/LICENSE +21 -0
- assets/select2/README.md +161 -0
- assets/select2/i18n/af.js +1 -1
- assets/select2/i18n/ar.js +1 -1
- assets/select2/i18n/az.js +1 -1
- assets/select2/i18n/bg.js +1 -1
- assets/select2/i18n/bn.js +1 -1
- assets/select2/i18n/bs.js +1 -1
- assets/select2/i18n/ca.js +1 -1
- assets/select2/i18n/cs.js +1 -1
- assets/select2/i18n/da.js +1 -1
- assets/select2/i18n/de.js +1 -1
- assets/select2/i18n/dsb.js +1 -1
- assets/select2/i18n/el.js +1 -1
- assets/select2/i18n/en.js +2 -2
- assets/select2/i18n/eo.js +1 -1
- assets/select2/i18n/es.js +1 -1
- assets/select2/i18n/et.js +1 -1
- assets/select2/i18n/eu.js +1 -1
- assets/select2/i18n/fa.js +1 -1
- assets/select2/i18n/fi.js +1 -1
- assets/select2/i18n/fr.js +2 -2
- assets/select2/i18n/gl.js +1 -1
- assets/select2/i18n/he.js +1 -1
- assets/select2/i18n/hi.js +1 -1
- assets/select2/i18n/hr.js +1 -1
- assets/select2/i18n/hsb.js +1 -1
- assets/select2/i18n/hu.js +2 -2
- assets/select2/i18n/hy.js +1 -1
- assets/select2/i18n/id.js +1 -1
- assets/select2/i18n/is.js +1 -1
- assets/select2/i18n/it.js +1 -1
- assets/select2/i18n/ja.js +1 -1
- assets/select2/i18n/ka.js +1 -1
- assets/select2/i18n/km.js +1 -1
- assets/select2/i18n/ko.js +1 -1
- assets/select2/i18n/lt.js +1 -1
- assets/select2/i18n/lv.js +1 -1
- assets/select2/i18n/mk.js +1 -1
- assets/select2/i18n/ms.js +1 -1
- assets/select2/i18n/nb.js +1 -1
- assets/select2/i18n/ne.js +1 -1
- assets/select2/i18n/nl.js +1 -1
- assets/select2/i18n/pa.js +1 -1
- assets/select2/i18n/pl.js +1 -1
- assets/select2/i18n/ps.js +1 -1
- assets/select2/i18n/pt-BR.js +1 -1
- assets/select2/i18n/pt.js +1 -1
- assets/select2/i18n/ro.js +1 -1
- assets/select2/i18n/ru.js +1 -1
- assets/select2/i18n/sk.js +1 -1
- assets/select2/i18n/sl.js +1 -1
- assets/select2/i18n/sq.js +1 -1
- assets/select2/i18n/sr-Cyrl.js +1 -1
- assets/select2/i18n/sr.js +1 -1
- assets/select2/i18n/sv.js +1 -1
- assets/select2/i18n/te.js +3 -0
- assets/select2/i18n/th.js +1 -1
- assets/select2/i18n/tk.js +1 -1
- assets/select2/i18n/tr.js +1 -1
- assets/select2/i18n/uk.js +1 -1
- assets/select2/i18n/vi.js +1 -1
- assets/select2/i18n/zh-CN.js +1 -1
- assets/select2/i18n/zh-TW.js +1 -1
- assets/select2/select2.css +27 -5
- assets/select2/select2.full.js +73 -11
- assets/select2/select2.full.min.js +2 -1
assets/fancybox/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
MIT License
|
2 |
+
|
3 |
+
Copyright (c) 2008 - 2010 Janis Skarnelis
|
4 |
+
|
5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6 |
+
of this software and associated documentation files (the "Software"), to deal
|
7 |
+
in the Software without restriction, including without limitation the rights
|
8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9 |
+
copies of the Software, and to permit persons to whom the Software is
|
10 |
+
furnished to do so, subject to the following conditions:
|
11 |
+
|
12 |
+
The above copyright notice and this permission notice shall be included in all
|
13 |
+
copies or substantial portions of the Software.
|
14 |
+
|
15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21 |
+
SOFTWARE.
|
assets/featherlight/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Copyright (c) 2014 Noel Bossart, http://noelboss.com
|
2 |
+
MIT Licensed.
|
3 |
+
|
4 |
+
Permission is hereby granted, free of charge, to any person obtaining
|
5 |
+
a copy of this software and associated documentation files (the
|
6 |
+
"Software"), to deal in the Software without restriction, including
|
7 |
+
without limitation the rights to use, copy, modify, merge, publish,
|
8 |
+
distribute, sublicense, and/or sell copies of the Software, and to
|
9 |
+
permit persons to whom the Software is furnished to do so, subject to
|
10 |
+
the following conditions:
|
11 |
+
|
12 |
+
The above copyright notice and this permission notice shall be
|
13 |
+
included in all copies or substantial portions of the Software.
|
14 |
+
|
15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
16 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
17 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
18 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
19 |
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
20 |
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
21 |
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
assets/featherlight/README.md
ADDED
@@ -0,0 +1,508 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Featherlight - ultra slim jQuery lightbox [![Build Status](https://travis-ci.org/noelboss/featherlight.svg?branch=master)](https://travis-ci.org/noelboss/featherlight)
|
2 |
+
------------------------
|
3 |
+
|
4 |
+
**Featherlight is a very lightweight jQuery lightbox plugin. For more information and demos, visit the [official website](http://noelboss.github.io/featherlight/).**
|
5 |
+
|
6 |
+
* Simple yet flexible
|
7 |
+
* Image, Ajax, iFrame and custom content support
|
8 |
+
* [Gallery Extension](https://github.com/noelboss/featherlight/#featherlight-gallery)
|
9 |
+
* Minimal CSS
|
10 |
+
* Name-spaced CSS and JavaScript
|
11 |
+
* Responsive
|
12 |
+
* Accessible
|
13 |
+
* Customizable via javascript or attributes
|
14 |
+
|
15 |
+
|
16 |
+
|
17 |
+
## [» Download Current Release 1.7.14](https://github.com/noelboss/featherlight/archive/v.1.7.14.zip)
|
18 |
+
|
19 |
+
Here you'll find a [list of all the changes](https://github.com/noelboss/featherlight/blob/master/CHANGELOG.md) and you can also download [old releases](https://github.com/noelboss/featherlight/releases) or [the master including all the latest bling](https://github.com/noelboss/featherlight/archive/master.zip).
|
20 |
+
|
21 |
+
|
22 |
+
# Installation
|
23 |
+
|
24 |
+
All styling is done using CSS so you'll want to include the Featherlight CSS in your head.
|
25 |
+
|
26 |
+
<link href="//cdn.jsdelivr.net/npm/featherlight@1.7.14/release/featherlight.min.css" type="text/css" rel="stylesheet" />
|
27 |
+
|
28 |
+
Be aware that Featherlight uses very unspecific CSS selectors to help you overwrite every aspect. This means in turn, that if you're not following a modularized approach to write CSS (which you should! It's terrific!) and have many global and specific definitions (read ID's and such – which you shouldn't), these definitions can break the Featherlight styling.
|
29 |
+
|
30 |
+
Featherlight requires jQuery version 1.7.0 or higher (regular version, not the slim one). It's recommended to include the javascript at the bottom of the page before the closing `</body>` tag.
|
31 |
+
|
32 |
+
<script src="//code.jquery.com/jquery-latest.js"></script>
|
33 |
+
<script src="//cdn.jsdelivr.net/npm/featherlight@1.7.14/release/featherlight.min.js" type="text/javascript" charset="utf-8"></script>
|
34 |
+
|
35 |
+
|
36 |
+
# Usage
|
37 |
+
|
38 |
+
By default, featherlight acts on all elements using the 'data-featherlight' attribute. An element with this attribute triggers the lightbox. The value of the attribute acts as selector for an element that's opened as lightbox.
|
39 |
+
|
40 |
+
<a href="#" data-featherlight="#mylightbox">Open element in lightbox</a>
|
41 |
+
<div id="mylightbox">This div will be opened in a lightbox</div>
|
42 |
+
|
43 |
+
Featherlight is smart. 'data-featherlight' can also contain a link to an image, an ajax-url or even DOM code:
|
44 |
+
|
45 |
+
<a href="#" data-featherlight="myimage.png">Open image in lightbox</a>
|
46 |
+
<a href="#" data-featherlight="myhtml.html .selector">Open ajax content in lightbox</a>
|
47 |
+
<a href="#" data-featherlight="<p>Fancy DOM Lightbox!</p>">Open some DOM in lightbox</a>
|
48 |
+
|
49 |
+
it also works with links using href and the "image" and "ajax" keywords (this can also be manually set with the configuration options like `{image: 'photo.jpg'}` or `{type: 'image'}`):
|
50 |
+
|
51 |
+
<a href="myimage.png" data-featherlight="image">Open image in lightbox</a>
|
52 |
+
<a href="myhtml.html .selector" data-featherlight="ajax">Open ajax content in lightbox</a>
|
53 |
+
<a href="#" data-featherlight-ajax="myhtml.html .selector">Open ajax content in lightbox</a>
|
54 |
+
<a href="#" data-featherlight="myhtml.html .selector" data-featherlight-type="ajax">Open ajax content in lightbox</a>
|
55 |
+
|
56 |
+
By default, Featherlight initializes all elements matching `$.featherlight.autoBind` on document ready. If you want to prevent this, set `$.featherlight.autoBind` to `false` before the DOM is ready.
|
57 |
+
|
58 |
+
## Bind Featherlight
|
59 |
+
You can bind the Featherlight events on any element using the following code:
|
60 |
+
|
61 |
+
$('.myElement').featherlight($content, configuration);
|
62 |
+
|
63 |
+
It will then look for the `targetAttr` (by default "data-featherlight") on this element and use its value to find the content that will be opened as lightbox when you click on the element.
|
64 |
+
|
65 |
+
***$content*** – jQuery Object or String: You can manually pass a jQuery object or a string (see [content filters](#content-filters)) to be opened in the lightbox. Optional
|
66 |
+
|
67 |
+
***configuration*** – Object: Object to configure certain aspects of the plugin. See [Configuration](#configuration). Optional
|
68 |
+
|
69 |
+
## Manual calling of Featherlight
|
70 |
+
In cases where you don't want an Element to act as Trigger you can call Featherlight manually. You can use this for example in an ajax callback to display the response data.
|
71 |
+
|
72 |
+
$.featherlight($content, configuration);
|
73 |
+
|
74 |
+
***$content*** – jQuery Object or String: You can manually pass a jQuery object or a string (see [content filters](#content-filters)) to be opened in the lightbox. Optional
|
75 |
+
|
76 |
+
***configuration*** – Object: Object to configure certain aspects of the plugin. See [Configuration](#configuration). Optional
|
77 |
+
|
78 |
+
# Configuration
|
79 |
+
|
80 |
+
Featherlight comes with a bunch of configuration-options which make it very flexible.
|
81 |
+
These options can be passed when calling `featherlight`.
|
82 |
+
Alternatively, they can specified as attribute on the elements triggering the lightbox;
|
83 |
+
for example, `<a data-featherlight-close-on-esc="false" ...>` has the same effect as
|
84 |
+
passing `{closeOnEsc: false}`.
|
85 |
+
You can also modify the `$.featherlight.defaults` directly which holds all the defaults:
|
86 |
+
|
87 |
+
```javascript
|
88 |
+
/* you can access and overwrite all defaults using $.featherlight.defaults */
|
89 |
+
defaults: {
|
90 |
+
namespace: 'featherlight', /* Name of the events and css class prefix */
|
91 |
+
targetAttr: 'data-featherlight', /* Attribute of the triggered element that contains the selector to the lightbox content */
|
92 |
+
variant: null, /* Class that will be added to change look of the lightbox */
|
93 |
+
resetCss: false, /* Reset all css */
|
94 |
+
background: null, /* Custom DOM for the background, wrapper and the closebutton */
|
95 |
+
openTrigger: 'click', /* Event that triggers the lightbox */
|
96 |
+
closeTrigger: 'click', /* Event that triggers the closing of the lightbox */
|
97 |
+
filter: null, /* Selector to filter events. Think $(...).on('click', filter, eventHandler) */
|
98 |
+
root: 'body', /* A selector specifying where to append featherlights */
|
99 |
+
openSpeed: 250, /* Duration of opening animation */
|
100 |
+
closeSpeed: 250, /* Duration of closing animation */
|
101 |
+
closeOnClick: 'background', /* Close lightbox on click ('background', 'anywhere', or false) */
|
102 |
+
closeOnEsc: true, /* Close lightbox when pressing esc */
|
103 |
+
closeIcon: '✕', /* Close icon */
|
104 |
+
loading: '', /* Content to show while initial content is loading */
|
105 |
+
persist: false, /* If set, the content will persist and will be shown again when opened again. 'shared' is a special value when binding multiple elements for them to share the same content */
|
106 |
+
otherClose: null, /* Selector for alternate close buttons (e.g. "a.close") */
|
107 |
+
beforeOpen: $.noop, /* Called before open. can return false to prevent opening of lightbox. Gets event as parameter, this contains all data */
|
108 |
+
beforeContent: $.noop, /* Called when content is about to be presented. `this` is the featherlight instance. Gets event as parameter */
|
109 |
+
beforeClose: $.noop, /* Called before close. can return false to prevent closing of lightbox. `this` is the featherlight instance. Gets event as parameter */
|
110 |
+
afterOpen: $.noop, /* Called after open. `this` is the featherlight instance. Gets event as parameter */
|
111 |
+
afterContent: $.noop, /* Called after content is ready and has been set. Gets event as parameter, this contains all data */
|
112 |
+
afterClose: $.noop, /* Called after close. `this` is the featherlight instance. Gets event as parameter */
|
113 |
+
onKeyUp: $.noop, /* Called on key up for the frontmost featherlight */
|
114 |
+
onResize: $.noop, /* Called after new content and when a window is resized */
|
115 |
+
type: null, /* Specify content type. If unset, it will check for the targetAttrs value. */
|
116 |
+
contentFilters: ['jquery', 'image', 'html', 'ajax', 'text'] /* List of content filters to use to determine the content */
|
117 |
+
jquery/image/html/ajax/text: undefined /* Specify content type and data */
|
118 |
+
}
|
119 |
+
```
|
120 |
+
|
121 |
+
================================================
|
122 |
+
|
123 |
+
namespace – String: 'featherlight'
|
124 |
+
All functions bound to elements are namespaced. This is also used to prefix all CSS classes for the background, the content-wrapper and the close button.
|
125 |
+
|
126 |
+
|
127 |
+
================================================
|
128 |
+
|
129 |
+
targetAttr – String: 'data-featherlight'
|
130 |
+
Attribute on the triggering element pointing to the target element or content that will be opened in the lightbox.
|
131 |
+
|
132 |
+
================================================
|
133 |
+
|
134 |
+
variant – String: null
|
135 |
+
Pass your own CSS class to adjust the styling of the lightbox according to your need.
|
136 |
+
|
137 |
+
|
138 |
+
================================================
|
139 |
+
|
140 |
+
resetCss – Boolean: false
|
141 |
+
Set this to true to remove all default css and start from designing scratch.
|
142 |
+
|
143 |
+
================================================
|
144 |
+
|
145 |
+
|
146 |
+
openTrigger & closeTrigger – String: 'click'
|
147 |
+
Events that are used to open or close the lightbox. The close event is bound to the close button and to the lightbox background (if enabled).
|
148 |
+
Has no effect if $.featherlight is called directly.
|
149 |
+
|
150 |
+
================================================
|
151 |
+
|
152 |
+
filter - String: null
|
153 |
+
A selector to filter events, when calling `featherlight` on a jQuery set, in a similar fashion to `$(...).on('click', filter, eventHandler)`.
|
154 |
+
|
155 |
+
Attributes both the selector and the filtered element are taken into account.
|
156 |
+
|
157 |
+
In the following example, the first link will make an ajax request while the second will display the text "second".
|
158 |
+
|
159 |
+
<div data-featherlight data-featherlight-filter="a"
|
160 |
+
data-featherlight-type="ajax">
|
161 |
+
<a href="first">Hello</a>
|
162 |
+
<a href="second" data-featherlight-type="text">World</a>
|
163 |
+
</div>
|
164 |
+
|
165 |
+
================================================
|
166 |
+
|
167 |
+
root - String: 'body'
|
168 |
+
This selector specified where the featherlight should be appended.
|
169 |
+
|
170 |
+
================================================
|
171 |
+
|
172 |
+
openSpeed & closeSpeed – Integer or String: 250
|
173 |
+
Defines the speed for the opening and close animations. Values allowed are [jQuery animation durations](http://api.jquery.com/animate/#duration). Avoid the usage of 0 since this would cause a reversal of time and the end of the world! (Okay, kidding, just the closing callback would not be fired and unused ghost-DOM would linger around, but still.)
|
174 |
+
|
175 |
+
|
176 |
+
================================================
|
177 |
+
|
178 |
+
closeOnClick – 'background', 'anywhere' or false
|
179 |
+
If set, the close event is also bound to the either the background only or anywhere
|
180 |
+
|
181 |
+
================================================
|
182 |
+
|
183 |
+
closeOnEsc – Boolean: true
|
184 |
+
If true, the lightbox is closed when pressing the ESC key
|
185 |
+
|
186 |
+
================================================
|
187 |
+
|
188 |
+
closeIcon – String: '✕';
|
189 |
+
Oh the naming...
|
190 |
+
|
191 |
+
================================================
|
192 |
+
|
193 |
+
loading – String: '';
|
194 |
+
Shown initially while content loads. The lightbox also has a class '.featherlight-loading' while content is loading. This makes it easy to specify a "Loading..." message or a spinner.
|
195 |
+
|
196 |
+
================================================
|
197 |
+
|
198 |
+
persist - Boolean or 'shared': false;
|
199 |
+
If set, the content will persist and will be shown again when opened again.
|
200 |
+
In case where multiple buttons need to persist the same content, use the special value 'shared'.
|
201 |
+
The content filter `jquery` (used for links like `.some-class` or `#some-id`) will clone the given content if and only if it is not persisted. Otherwise it will be moved into the lightbox.
|
202 |
+
|
203 |
+
================================================
|
204 |
+
|
205 |
+
otherClose - String: null
|
206 |
+
While the close icon generated by featherlight will have class 'featherlight-close', you may specify alternate selector for other buttons having the same effect in your dialog, for example "a:contains('Cancel')".
|
207 |
+
|
208 |
+
================================================
|
209 |
+
|
210 |
+
background – DOM String: null
|
211 |
+
You can provide the wrapping DOM. This is a bit tricky and just for the advanced users. It's recommended to study the plugin code. But you need to provide an element with a "{namespace}-inner" class: the content of the lightbox will replace this element. It is recommended that instead of providing this option you modify the lightbox on `beforeOpen` or `afterOpen`.
|
212 |
+
|
213 |
+
|
214 |
+
================================================
|
215 |
+
|
216 |
+
beforeOpen, beforeClose – Function: null
|
217 |
+
Called before the open or close method is executed. This function can return false to prevent open or
|
218 |
+
close method from execution. `this` is an object and contains the triggering DOM element (if existing) and the related Featherlight objects.
|
219 |
+
|
220 |
+
// example
|
221 |
+
beforeOpen: function(event){
|
222 |
+
console.log(this); // this contains all related elements
|
223 |
+
return false; // prevent lightbox from opening
|
224 |
+
}
|
225 |
+
|
226 |
+
|
227 |
+
================================================
|
228 |
+
|
229 |
+
beforeContent, afterContent – Function: null
|
230 |
+
Called before and after the loading of the content. For ajax calls or images, there can be a significant delay, for inline content the two calls will occur one right after the other. It receives the event object. `this` is an object and contains the triggering DOM element (if existing) and the related Featherlight objects.
|
231 |
+
|
232 |
+
================================================
|
233 |
+
|
234 |
+
afterOpen, afterClose – Function: null
|
235 |
+
Called after the open or close method is executed – it is not called, if the `before-` or `open` function returns `false`! It receives the event object. `this` is an object and contains the triggering DOM element (if existing) and the related Featherlight objects.
|
236 |
+
|
237 |
+
// example
|
238 |
+
afterOpen: function(event){
|
239 |
+
console.log(this); // this contains all related elements
|
240 |
+
alert(this.$content.hasClass('true')); // alert class of content
|
241 |
+
}
|
242 |
+
|
243 |
+
================================================
|
244 |
+
|
245 |
+
onKeyUp, onResize – Function: null
|
246 |
+
The function receives the event object. `this` is an object and contains the triggering DOM element (if existing) and the related Featherlight objects.
|
247 |
+
|
248 |
+
================================================
|
249 |
+
|
250 |
+
type – String: null
|
251 |
+
|
252 |
+
The type object allows you to manually set what type the lightbox is. Set the value to 'image', 'ajax' or any of the content filters. Otherwise, the value from targetAttr will used be to determine the type of the lightbox. Example:
|
253 |
+
|
254 |
+
$('.image-lightbox').featherlight({type: 'image'});
|
255 |
+
|
256 |
+
|
257 |
+
# Methods
|
258 |
+
|
259 |
+
`$.featherlight` is actually a constructor of new featherlight objects. Modify `$.featherlight.prototype` to change the default properties, or use the `configuration` object passed to the constructor to override the properties of that specific new instance.
|
260 |
+
|
261 |
+
It's possible to use or change these methods, but the API isn't guaranteed to remain constant; enquire if you have particular needs.
|
262 |
+
|
263 |
+
var current = $.featherlight.current();
|
264 |
+
current.close();
|
265 |
+
// do something else
|
266 |
+
current.open(); // reopen it
|
267 |
+
|
268 |
+
Check the source code for more details.
|
269 |
+
|
270 |
+
# Globals
|
271 |
+
|
272 |
+
`$.featherlight` has the following globals:
|
273 |
+
|
274 |
+
autoBind: '[data-featherlight]' /* Will automatically bind elements matching this selector. Clear or set before onReady */
|
275 |
+
current: function() /* returns the currently opened featherlight, or undefined */
|
276 |
+
close: function() /* closes the currently opened featherlight (if any) */
|
277 |
+
|
278 |
+
# Content Filters
|
279 |
+
|
280 |
+
There are many ways to specify content to featherlight. Featherlight uses a set of heuristics to determine the type, for example data ending with `.gif` will be assumed to be an image. The following are equivalent:
|
281 |
+
|
282 |
+
<a href="#" data-featherlight="photo.gif">See in a lightbox</a>
|
283 |
+
|
284 |
+
<a href="photo.gif" data-featherlight>See in a lightbox</a>
|
285 |
+
|
286 |
+
<a id="#example" href="#">See in a lightbox</a>
|
287 |
+
<script>$('#example').featherlight('photo.gif');</script>
|
288 |
+
|
289 |
+
In case the heuristic wouldn't work, you can specify which contentFilter to use:
|
290 |
+
|
291 |
+
<a href="photo_without_extension" data-featherlight="image">See in a lightbox</a>
|
292 |
+
|
293 |
+
<a id="force_as_image" href="photo_without_extension">See in a lightbox</a>
|
294 |
+
<script>
|
295 |
+
$('#force_as_image').featherlight('image');
|
296 |
+
// Equivalent:
|
297 |
+
$('#force_as_image').featherlight({type: {image: true}});
|
298 |
+
</script>
|
299 |
+
|
300 |
+
<a id="force_as_image2" href="#">See in a lightbox</a>
|
301 |
+
<script>$('#force_as_image2').featherlight('photo_without_extension', {type:{image: true}});</script>
|
302 |
+
|
303 |
+
You can add your own heuristics, for example:
|
304 |
+
|
305 |
+
$.featherlight.contentFilters.feed = {
|
306 |
+
regex: /^feed:/,
|
307 |
+
process: function(url) { /* deal with url */ return $('Loading...'); }
|
308 |
+
};
|
309 |
+
$.featherlight.defaults.contentFilters.unshift('feed');
|
310 |
+
|
311 |
+
This way the following would be possible:
|
312 |
+
|
313 |
+
<a href="feed://some_url" data-featherlight>See the feed in a lightbox</a>
|
314 |
+
|
315 |
+
The content filter 'text' needs to be specified explicitly, it has no heuristic attached to it:
|
316 |
+
|
317 |
+
<a href="Hello, world" data-featherlight="text">Example</a>
|
318 |
+
|
319 |
+
# Examples
|
320 |
+
|
321 |
+
## Use link-hashtags to open lightbox
|
322 |
+
<a href="#targetElement" class="fl">Open</a>
|
323 |
+
<div id="targetElement">Lightbox</div>
|
324 |
+
|
325 |
+
$('a.fl').featherlight({
|
326 |
+
targetAttr: 'href'
|
327 |
+
});
|
328 |
+
|
329 |
+
## Open images with Featherlight
|
330 |
+
Use a link and point the data-featherlight attribute to the desired attribute which contains the link...
|
331 |
+
|
332 |
+
<a href="myimage.jpg" data-featherlight="image">Open Image</a>
|
333 |
+
|
334 |
+
...or directly provide the link as the data-featherlight attribute:
|
335 |
+
|
336 |
+
<a href="#" data-featherlight="myimage.jpg">Open Image</a>
|
337 |
+
|
338 |
+
## Open lightbox with ajax content
|
339 |
+
Use Featherlight with ajax using 'ajax' keyword or providing a url. It even supports selecting elements inside the response document.
|
340 |
+
|
341 |
+
<a href="url.html .jQuery-Selector" data-featherlight="ajax">Open Ajax Content</a>
|
342 |
+
|
343 |
+
or you can provide the link directly as the featherlight-attribute:
|
344 |
+
|
345 |
+
<a href="#" data-featherlight="url.html .jQuery-Selector">Open Ajax Content</a>
|
346 |
+
|
347 |
+
## Open lightbox with iframe
|
348 |
+
Featherlight generates an iframe with the 'iframe' keyword and a given URL.
|
349 |
+
The default size of the iframe is very small (300 x 150).
|
350 |
+
|
351 |
+
<a href="http://www.example.com" data-featherlight="iframe">Open example.com in an iframe</a>
|
352 |
+
|
353 |
+
Options:
|
354 |
+
You can use the following iframe attributes:
|
355 |
+
`
|
356 |
+
allow, allowfullscreen, frameborder, height, longdesc, marginheight, marginwidth, mozallowfullscreen, name, referrerpolicy, sandbox, scrolling, src, srcdoc, style, webkitallowfullscreen, width
|
357 |
+
`
|
358 |
+
|
359 |
+
For example, to set the height and width, you would use
|
360 |
+
|
361 |
+
data-featherlight-iframe-height="640" data-featherlight-iframe-width="480"
|
362 |
+
|
363 |
+
or to set some css style:
|
364 |
+
|
365 |
+
data-featherlight-iframe-style="border:none"
|
366 |
+
|
367 |
+
You can also set the iframe attributes `iframeWidth`, `iframeMinWidth` etc. using JavaScript:
|
368 |
+
|
369 |
+
$.featherlight({iframe: 'editor.html', iframeMaxWidth: '80%', iframeWidth: 500,
|
370 |
+
iframeHeight: 300});
|
371 |
+
|
372 |
+
## Open YouTube video with Featherlight
|
373 |
+
Featherlight generates an iframe that contains the embedded video.
|
374 |
+
|
375 |
+
Display a clickable thumbnail image that opens a video with a fixed size of 640 x 480 and automatically start playback:
|
376 |
+
`
|
377 |
+
<a href="http://www.youtube.com/embed/f0BzD1zCye0?rel=0&autoplay=1" data-featherlight="iframe" data-featherlight-iframe-width="640" data-featherlight-iframe-height="480" data-featherlight-iframe-frameborder="0" data-featherlight-iframe-allow="autoplay; encrypted-media" data-featherlight-iframe-allowfullscreen="true">
|
378 |
+
<img src="http://img.youtube.com/vi/f0BzD1zCye0/0.jpg" alt="" />
|
379 |
+
</a>
|
380 |
+
`
|
381 |
+
|
382 |
+
A text link that opens a video in a lightbox that is stretched to 85% height and width of the viewport:
|
383 |
+
`
|
384 |
+
<a href="http://www.youtube.com/embed/f0BzD1zCye0?rel=0&autoplay=1" data-featherlight="iframe" data-featherlight-iframe-frameborder="0" data-featherlight-iframe-allow="autoplay; encrypted-media" data-featherlight-iframe-allowfullscreen="true" data-featherlight-iframe-style="display:block;border:none;height:85vh;width:85vw;">My video</a>
|
385 |
+
`
|
386 |
+
|
387 |
+
A link that opens a video in a lightbox that fills 100% of the window:
|
388 |
+
Note: the "close" icon is not visible so this example is not user-friendly.
|
389 |
+
`
|
390 |
+
<a href="http://www.youtube.com/embed/f0BzD1zCye0?rel=0&autoplay=1" data-featherlight="iframe" data-featherlight-iframe-frameborder="0" data-featherlight-iframe-allow="autoplay; encrypted-media" data-featherlight-iframe-allowfullscreen="true"
|
391 |
+
data-featherlight-iframe-style="position:fixed;background:#000;border:none;top:0;right:0;bottom:0;left:0;width:100%;height:100%;">My video</a>
|
392 |
+
`
|
393 |
+
|
394 |
+
# IE8 background transparency
|
395 |
+
If you want the background in IE8 to be translucent, use data:image before the rgba background:
|
396 |
+
|
397 |
+
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAKQWlDQ1BJQ0MgUHJvZmlsZQAASA2dlndUU9kWh8+9N73QEiIgJfQaegkg0jtIFQRRiUmAUAKGhCZ2RAVGFBEpVmRUwAFHhyJjRRQLg4Ji1wnyEFDGwVFEReXdjGsJ7601896a/cdZ39nnt9fZZ+9917oAUPyCBMJ0WAGANKFYFO7rwVwSE8vE9wIYEAEOWAHA4WZmBEf4RALU/L09mZmoSMaz9u4ugGS72yy/UCZz1v9/kSI3QyQGAApF1TY8fiYX5QKUU7PFGTL/BMr0lSkyhjEyFqEJoqwi48SvbPan5iu7yZiXJuShGlnOGbw0noy7UN6aJeGjjAShXJgl4GejfAdlvVRJmgDl9yjT0/icTAAwFJlfzOcmoWyJMkUUGe6J8gIACJTEObxyDov5OWieAHimZ+SKBIlJYqYR15hp5ejIZvrxs1P5YjErlMNN4Yh4TM/0tAyOMBeAr2+WRQElWW2ZaJHtrRzt7VnW5mj5v9nfHn5T/T3IevtV8Sbsz55BjJ5Z32zsrC+9FgD2JFqbHbO+lVUAtG0GQOXhrE/vIADyBQC03pzzHoZsXpLE4gwnC4vs7GxzAZ9rLivoN/ufgm/Kv4Y595nL7vtWO6YXP4EjSRUzZUXlpqemS0TMzAwOl89k/fcQ/+PAOWnNycMsnJ/AF/GF6FVR6JQJhIlou4U8gViQLmQKhH/V4X8YNicHGX6daxRodV8AfYU5ULhJB8hvPQBDIwMkbj96An3rWxAxCsi+vGitka9zjzJ6/uf6Hwtcim7hTEEiU+b2DI9kciWiLBmj34RswQISkAd0oAo0gS4wAixgDRyAM3AD3iAAhIBIEAOWAy5IAmlABLJBPtgACkEx2AF2g2pwANSBetAEToI2cAZcBFfADXALDIBHQAqGwUswAd6BaQiC8BAVokGqkBakD5lC1hAbWgh5Q0FQOBQDxUOJkBCSQPnQJqgYKoOqoUNQPfQjdBq6CF2D+qAH0CA0Bv0BfYQRmALTYQ3YALaA2bA7HAhHwsvgRHgVnAcXwNvhSrgWPg63whfhG/AALIVfwpMIQMgIA9FGWAgb8URCkFgkAREha5EipAKpRZqQDqQbuY1IkXHkAwaHoWGYGBbGGeOHWYzhYlZh1mJKMNWYY5hWTBfmNmYQM4H5gqVi1bGmWCesP3YJNhGbjS3EVmCPYFuwl7ED2GHsOxwOx8AZ4hxwfrgYXDJuNa4Etw/XjLuA68MN4SbxeLwq3hTvgg/Bc/BifCG+Cn8cfx7fjx/GvyeQCVoEa4IPIZYgJGwkVBAaCOcI/YQRwjRRgahPdCKGEHnEXGIpsY7YQbxJHCZOkxRJhiQXUiQpmbSBVElqIl0mPSa9IZPJOmRHchhZQF5PriSfIF8lD5I/UJQoJhRPShxFQtlOOUq5QHlAeUOlUg2obtRYqpi6nVpPvUR9Sn0vR5Mzl/OX48mtk6uRa5Xrl3slT5TXl3eXXy6fJ18hf0r+pvy4AlHBQMFTgaOwVqFG4bTCPYVJRZqilWKIYppiiWKD4jXFUSW8koGStxJPqUDpsNIlpSEaQtOledK4tE20Otpl2jAdRzek+9OT6cX0H+i99AllJWVb5SjlHOUa5bPKUgbCMGD4M1IZpYyTjLuMj/M05rnP48/bNq9pXv+8KZX5Km4qfJUilWaVAZWPqkxVb9UU1Z2qbapP1DBqJmphatlq+9Uuq43Pp893ns+dXzT/5PyH6rC6iXq4+mr1w+o96pMamhq+GhkaVRqXNMY1GZpumsma5ZrnNMe0aFoLtQRa5VrntV4wlZnuzFRmJbOLOaGtru2nLdE+pN2rPa1jqLNYZ6NOs84TXZIuWzdBt1y3U3dCT0svWC9fr1HvoT5Rn62fpL9Hv1t/ysDQINpgi0GbwaihiqG/YZ5ho+FjI6qRq9Eqo1qjO8Y4Y7ZxivE+41smsImdSZJJjclNU9jU3lRgus+0zwxr5mgmNKs1u8eisNxZWaxG1qA5wzzIfKN5m/krCz2LWIudFt0WXyztLFMt6ywfWSlZBVhttOqw+sPaxJprXWN9x4Zq42Ozzqbd5rWtqS3fdr/tfTuaXbDdFrtOu8/2DvYi+yb7MQc9h3iHvQ732HR2KLuEfdUR6+jhuM7xjOMHJ3snsdNJp9+dWc4pzg3OowsMF/AX1C0YctFx4bgccpEuZC6MX3hwodRV25XjWuv6zE3Xjed2xG3E3dg92f24+ysPSw+RR4vHlKeT5xrPC16Il69XkVevt5L3Yu9q76c+Oj6JPo0+E752vqt9L/hh/QL9dvrd89fw5/rX+08EOASsCegKpARGBFYHPgsyCRIFdQTDwQHBu4IfL9JfJFzUFgJC/EN2hTwJNQxdFfpzGC4sNKwm7Hm4VXh+eHcELWJFREPEu0iPyNLIR4uNFksWd0bJR8VF1UdNRXtFl0VLl1gsWbPkRoxajCCmPRYfGxV7JHZyqffS3UuH4+ziCuPuLjNclrPs2nK15anLz66QX8FZcSoeGx8d3xD/iRPCqeVMrvRfuXflBNeTu4f7kufGK+eN8V34ZfyRBJeEsoTRRJfEXYljSa5JFUnjAk9BteB1sl/ygeSplJCUoykzqdGpzWmEtPi000IlYYqwK10zPSe9L8M0ozBDuspp1e5VE6JA0ZFMKHNZZruYjv5M9UiMJJslg1kLs2qy3mdHZZ/KUcwR5vTkmuRuyx3J88n7fjVmNXd1Z752/ob8wTXuaw6thdauXNu5Tnddwbrh9b7rj20gbUjZ8MtGy41lG99uit7UUaBRsL5gaLPv5sZCuUJR4b0tzlsObMVsFWzt3WazrWrblyJe0fViy+KK4k8l3JLr31l9V/ndzPaE7b2l9qX7d+B2CHfc3em681iZYlle2dCu4F2t5czyovK3u1fsvlZhW3FgD2mPZI+0MqiyvUqvakfVp+qk6oEaj5rmvep7t+2d2sfb17/fbX/TAY0DxQc+HhQcvH/I91BrrUFtxWHc4azDz+ui6rq/Z39ff0TtSPGRz0eFR6XHwo911TvU1zeoN5Q2wo2SxrHjccdv/eD1Q3sTq+lQM6O5+AQ4ITnx4sf4H++eDDzZeYp9qukn/Z/2ttBailqh1tzWibakNml7THvf6YDTnR3OHS0/m/989Iz2mZqzymdLz5HOFZybOZ93fvJCxoXxi4kXhzpXdD66tOTSna6wrt7LgZevXvG5cqnbvfv8VZerZ645XTt9nX297Yb9jdYeu56WX+x+aem172296XCz/ZbjrY6+BX3n+l37L972un3ljv+dGwOLBvruLr57/17cPel93v3RB6kPXj/Mejj9aP1j7OOiJwpPKp6qP6391fjXZqm99Oyg12DPs4hnj4a4Qy//lfmvT8MFz6nPK0a0RupHrUfPjPmM3Xqx9MXwy4yX0+OFvyn+tveV0auffnf7vWdiycTwa9HrmT9K3qi+OfrW9m3nZOjk03dp76anit6rvj/2gf2h+2P0x5Hp7E/4T5WfjT93fAn88ngmbWbm3/eE8/syOll+AAAACXBIWXMAAAsTAAALEwEAmpwYAAADpmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnRpZmY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vdGlmZi8xLjAvIgogICAgICAgICAgICB4bWxuczpleGlmPSJodHRwOi8vbnMuYWRvYmUuY29tL2V4aWYvMS4wLyI+CiAgICAgICAgIDx4bXA6TW9kaWZ5RGF0ZT4yMDEzLTExLTA2VDIyOjExOjgxPC94bXA6TW9kaWZ5RGF0ZT4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5QaXhlbG1hdG9yIDMuMDwveG1wOkNyZWF0b3JUb29sPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpDb21wcmVzc2lvbj41PC90aWZmOkNvbXByZXNzaW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4xPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8dGlmZjpZUmVzb2x1dGlvbj43MjwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WFJlc29sdXRpb24+NzI8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgICAgIDxleGlmOlBpeGVsWERpbWVuc2lvbj4xMDwvZXhpZjpQaXhlbFhEaW1lbnNpb24+CiAgICAgICAgIDxleGlmOkNvbG9yU3BhY2U+MTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFlEaW1lbnNpb24+MTA8L2V4aWY6UGl4ZWxZRGltZW5zaW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KbQS91AAAAB1JREFUGBljZGBgOA7EBAETQRVQBaMK8YYU0cEDAE1HANt9zybzAAAAAElFTkSuQmCC);
|
398 |
+
background: rgba(0, 0, 0, 0.8);
|
399 |
+
|
400 |
+
---
|
401 |
+
|
402 |
+
# Featherlight Gallery
|
403 |
+
You will need to use an extension (featherlight.gallery.js). Since Featherlight was created to be as small and simple as possible, it has selected functionality, and allows you to add additional functionality by using extensions. featherlight.gallery.js is a small extension that turns your set of links into a [gallery](http://noelboss.github.io/featherlight/gallery.html).
|
404 |
+
|
405 |
+
## Gallery installation
|
406 |
+
|
407 |
+
Simply include the extension CSS and JavaScript Files after the regular featherlight files like this:
|
408 |
+
|
409 |
+
<link href="//cdn.jsdelivr.net/npm/featherlight@1.7.14/release/featherlight.min.css" type="text/css" rel="stylesheet" />
|
410 |
+
<link href="//cdn.jsdelivr.net/npm/featherlight@1.7.14/release/featherlight.gallery.min.css" type="text/css" rel="stylesheet" />
|
411 |
+
|
412 |
+
Add the JavaScript at the bottom of the body:
|
413 |
+
|
414 |
+
```html
|
415 |
+
<script src="//code.jquery.com/jquery-latest.js"></script>
|
416 |
+
<script src="//cdn.jsdelivr.net/npm/featherlight@1.7.14/release/featherlight.min.js" type="text/javascript" charset="utf-8"></script>
|
417 |
+
<script src="//cdn.jsdelivr.net/npm/featherlight@1.7.14/release/featherlight.gallery.min.js" type="text/javascript" charset="utf-8"></script>
|
418 |
+
```
|
419 |
+
|
420 |
+
Check out the example here: [Gallery with Featherlight](gallery.html)
|
421 |
+
|
422 |
+
|
423 |
+
## Gallery configuration
|
424 |
+
|
425 |
+
The gallery also has a range of configuration options and the following defaults:
|
426 |
+
|
427 |
+
|
428 |
+
```javascript
|
429 |
+
$('a.gallery').featherlightGallery({
|
430 |
+
previousIcon: '◀', /* Code that is used as previous icon */
|
431 |
+
nextIcon: '▶', /* Code that is used as next icon */
|
432 |
+
galleryFadeIn: 100, /* fadeIn speed when slide is loaded */
|
433 |
+
galleryFadeOut: 300 /* fadeOut speed before slide is loaded */
|
434 |
+
});
|
435 |
+
```
|
436 |
+
|
437 |
+
|
438 |
+
It also overrides its `autoBind` global option:
|
439 |
+
|
440 |
+
```javascript
|
441 |
+
autoBind: '[data-featherlight-gallery]' /* Will automatically bind elements matching this selector. Clear or set before onReady */
|
442 |
+
```
|
443 |
+
|
444 |
+
Example in pure HTML:
|
445 |
+
|
446 |
+
```html
|
447 |
+
<section
|
448 |
+
data-featherlight-gallery
|
449 |
+
data-featherlight-filter="a"
|
450 |
+
>
|
451 |
+
<h>This is a gallery</h>
|
452 |
+
<a href="photo_large.jpg"><img src="photo_thumbnail.jpg"></a>
|
453 |
+
<a href="other_photo_large.jpg"><img src="other_photo_thumbnail.jpg"></a>
|
454 |
+
</section>
|
455 |
+
```
|
456 |
+
|
457 |
+
Example in JavaScript (assuming there are `a` tags of class `gallery` in the page):
|
458 |
+
|
459 |
+
```javascript
|
460 |
+
$('a.gallery').featherlightGallery({
|
461 |
+
previousIcon: '«',
|
462 |
+
nextIcon: '»',
|
463 |
+
galleryFadeIn: 300,
|
464 |
+
|
465 |
+
openSpeed: 300
|
466 |
+
});
|
467 |
+
```
|
468 |
+
|
469 |
+
The gallery responds to custom events `previous` and `next` to navigate to the previous and next images.
|
470 |
+
|
471 |
+
Instead of navigation buttons it will use swipe events on touch devices, assuming that one of the [supported swipe libraries](https://github.com/noelboss/featherlight/wiki/Gallery:-swipe-on-touch-devices) is also installed.
|
472 |
+
|
473 |
+
It sets the classes `'featherlight-first-slide'` and `'featherlight-last-slide'` if the current slide is the first and/or last one.
|
474 |
+
|
475 |
+
## Gallery installation
|
476 |
+
|
477 |
+
Simply include the extension CSS and JavaScript Files after the regular featherlight files like this:
|
478 |
+
|
479 |
+
<link href="//cdn.jsdelivr.net/npm/featherlight@1.7.14/release/featherlight.min.css" type="text/css" rel="stylesheet" />
|
480 |
+
<link href="//cdn.jsdelivr.net/npm/featherlight@1.7.14/release/featherlight.gallery.min.css" type="text/css" rel="stylesheet" />
|
481 |
+
<script src="//code.jquery.com/jquery-latest.js"></script>
|
482 |
+
<script src="//cdn.jsdelivr.net/npm/featherlight@1.7.14/release/featherlight.min.js" type="text/javascript" charset="utf-8"></script>
|
483 |
+
<script src="//cdn.jsdelivr.net/npm/featherlight@1.7.14/release/featherlight.gallery.min.js" type="text/javascript" charset="utf-8"></script>
|
484 |
+
|
485 |
+
## Gallery on Mobile Devices
|
486 |
+
To support mobile/tablet and all touch devices, you will need to include one of the [supported swipe libraries](https://github.com/noelboss/featherlight/wiki/Gallery:-swipe-on-touch-devices). For example, to use `swipe_detect` library, include it in the header:
|
487 |
+
|
488 |
+
```html
|
489 |
+
<script src="//cdnjs.cloudflare.com/ajax/libs/detect_swipe/2.1.1/jquery.detect_swipe.min.js"></script>
|
490 |
+
```
|
491 |
+
|
492 |
+
|
493 |
+
# Support
|
494 |
+
|
495 |
+
## Questions
|
496 |
+
|
497 |
+
For questions, please use [Stack Overflow](http://stackoverflow.com/questions/ask) and be sure to use the `featherlight.js` tag. Please **provide an example**, starting for example from [this jsfiddle](http://jsfiddle.net/JNsu6/15/)
|
498 |
+
|
499 |
+
## Reporting bugs and issues
|
500 |
+
|
501 |
+
If you believe you've found a bug, please open an issue on [Github](https://github.com/noelboss/featherlight/issues/new) and **provide an example** starting from [this jsfiddle](http://jsfiddle.net/JNsu6/15/).
|
502 |
+
|
503 |
+
## Pull requests
|
504 |
+
|
505 |
+
Pull requests are welcome (good tips can be found on [Stack Overflow](http://stackoverflow.com/questions/14680711/how-to-do-a-github-pull-request))
|
506 |
+
|
507 |
+
To run the tests, you can open `test/featherlight.html` or `test/featherlight_gallery.html` in your browser.
|
508 |
+
Alternatively, run them from the console with `grunt test`; you will need to run `npm install` the first time.
|
assets/featherlight/featherlight.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/**
|
2 |
* Featherlight – ultra slim jQuery lightbox
|
3 |
-
* Version 1.7.
|
4 |
*
|
5 |
-
* Copyright
|
6 |
* MIT Licensed.
|
7 |
**/
|
8 |
|
1 |
/**
|
2 |
* Featherlight – ultra slim jQuery lightbox
|
3 |
+
* Version 1.7.14 - http://noelboss.github.io/featherlight/
|
4 |
*
|
5 |
+
* Copyright 2019, Noël Raoul Bossart (http://www.noelboss.com)
|
6 |
* MIT Licensed.
|
7 |
**/
|
8 |
|
assets/featherlight/featherlight.gallery.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/**
|
2 |
* Featherlight Gallery – an extension for the ultra slim jQuery lightbox
|
3 |
-
* Version 1.7.
|
4 |
*
|
5 |
-
* Copyright
|
6 |
* MIT Licensed.
|
7 |
**/
|
8 |
|
1 |
/**
|
2 |
* Featherlight Gallery – an extension for the ultra slim jQuery lightbox
|
3 |
+
* Version 1.7.14 - http://noelboss.github.io/featherlight/
|
4 |
*
|
5 |
+
* Copyright 2019, Noël Raoul Bossart (http://www.noelboss.com)
|
6 |
* MIT Licensed.
|
7 |
**/
|
8 |
|
assets/featherlight/featherlight.gallery.min.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/**
|
2 |
* Featherlight Gallery – an extension for the ultra slim jQuery lightbox
|
3 |
-
* Version 1.7.
|
4 |
*
|
5 |
-
* Copyright
|
6 |
* MIT Licensed.
|
7 |
**/
|
8 |
.featherlight-next,.featherlight-previous{display:block;position:absolute;top:25px;right:25px;bottom:0;left:80%;cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:rgba(0,0,0,0)}.featherlight-previous{left:25px;right:80%}.featherlight-next:hover,.featherlight-previous:hover{background:rgba(255,255,255,.25)}.featherlight-next span,.featherlight-previous span{display:none;position:absolute;top:50%;left:5%;width:82%;text-align:center;font-size:80px;line-height:80px;margin-top:-40px;text-shadow:0 0 5px #fff;color:#fff;font-style:normal;font-weight:400}.featherlight-next span{right:5%;left:auto}.featherlight-next:hover span,.featherlight-previous:hover span{display:inline-block}.featherlight-first-slide.featherlight-last-slide .featherlight-next,.featherlight-first-slide.featherlight-last-slide .featherlight-previous,.featherlight-loading .featherlight-next,.featherlight-loading .featherlight-previous,.featherlight-swipe-aware .featherlight-next,.featherlight-swipe-aware .featherlight-previous{display:none}@media only screen and (max-device-width:1024px){.featherlight-next:hover,.featherlight-previous:hover{background:0 0}.featherlight-next span,.featherlight-previous span{display:block}}@media only screen and (max-width:1024px){.featherlight-next,.featherlight-previous{top:10px;right:10px;left:85%}.featherlight-previous{left:10px;right:85%}.featherlight-next span,.featherlight-previous span{margin-top:-30px;font-size:40px}}
|
1 |
/**
|
2 |
* Featherlight Gallery – an extension for the ultra slim jQuery lightbox
|
3 |
+
* Version 1.7.14 - http://noelboss.github.io/featherlight/
|
4 |
*
|
5 |
+
* Copyright 2019, Noël Raoul Bossart (http://www.noelboss.com)
|
6 |
* MIT Licensed.
|
7 |
**/
|
8 |
.featherlight-next,.featherlight-previous{display:block;position:absolute;top:25px;right:25px;bottom:0;left:80%;cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:rgba(0,0,0,0)}.featherlight-previous{left:25px;right:80%}.featherlight-next:hover,.featherlight-previous:hover{background:rgba(255,255,255,.25)}.featherlight-next span,.featherlight-previous span{display:none;position:absolute;top:50%;left:5%;width:82%;text-align:center;font-size:80px;line-height:80px;margin-top:-40px;text-shadow:0 0 5px #fff;color:#fff;font-style:normal;font-weight:400}.featherlight-next span{right:5%;left:auto}.featherlight-next:hover span,.featherlight-previous:hover span{display:inline-block}.featherlight-first-slide.featherlight-last-slide .featherlight-next,.featherlight-first-slide.featherlight-last-slide .featherlight-previous,.featherlight-loading .featherlight-next,.featherlight-loading .featherlight-previous,.featherlight-swipe-aware .featherlight-next,.featherlight-swipe-aware .featherlight-previous{display:none}@media only screen and (max-device-width:1024px){.featherlight-next:hover,.featherlight-previous:hover{background:0 0}.featherlight-next span,.featherlight-previous span{display:block}}@media only screen and (max-width:1024px){.featherlight-next,.featherlight-previous{top:10px;right:10px;left:85%}.featherlight-previous{left:10px;right:85%}.featherlight-next span,.featherlight-previous span{margin-top:-30px;font-size:40px}}
|
assets/featherlight/featherlight.gallery.min.js
CHANGED
@@ -1 +1,8 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Featherlight Gallery – an extension for the ultra slim jQuery lightbox
|
3 |
+
* Version 1.7.14-UMD - http://noelboss.github.io/featherlight/
|
4 |
+
*
|
5 |
+
* Copyright 2019, Noël Raoul Bossart (http://www.noelboss.com)
|
6 |
+
* MIT Licensed.
|
7 |
+
**/
|
8 |
+
!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(r){"use strict";function e(e){window.console&&window.console.warn&&window.console.warn("FeatherlightGallery: "+e)}if(void 0===r)return e("Too much lightness, Featherlight needs jQuery.");if(!r.featherlight)return e("Load the featherlight plugin before the gallery plugin");var t="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch,n=r.event&&r.event.special.swipeleft&&r,i=window.Hammer&&function(e){e=new window.Hammer.Manager(e[0]);return e.add(new window.Hammer.Swipe),e},a=t&&(n||i);t&&!a&&e("No compatible swipe library detected; one must be included before featherlightGallery for swipe motions to navigate the galleries.");var s={afterClose:function(e,t){var n=this;return n.$instance.off("next."+n.namespace+" previous."+n.namespace),n._swiper&&(n._swiper.off("swipeleft",n._swipeleft).off("swiperight",n._swiperight),n._swiper=null),e(t)},beforeOpen:function(e,t){var n=this;return n.$instance.on("next."+n.namespace+" previous."+n.namespace,function(e){e="next"===e.type?1:-1;n.navigateTo(n.currentNavigation()+e)}),a&&(n._swiper=a(n.$instance).on("swipeleft",n._swipeleft=function(){n.$instance.trigger("next")}).on("swiperight",n._swiperight=function(){n.$instance.trigger("previous")}),n.$instance.addClass(this.namespace+"-swipe-aware",a)),n.$instance.find("."+n.namespace+"-content").append(n.createNavigation("previous")).append(n.createNavigation("next")),e(t)},beforeContent:function(e,t){var n=this.currentNavigation(),i=this.slides().length;return this.$instance.toggleClass(this.namespace+"-first-slide",0===n).toggleClass(this.namespace+"-last-slide",n===i-1),e(t)},onKeyUp:function(e,t){var n={37:"previous",39:"next"}[t.keyCode];return n?(this.$instance.trigger(n),!1):e(t)}};function o(e,t){if(!(this instanceof o)){t=new o(r.extend({$source:e,$currentTarget:e.first()},t));return t.open(),t}r.featherlight.apply(this,arguments),this.chainCallbacks(s)}r.featherlight.extend(o,{autoBind:"[data-featherlight-gallery]"}),r.extend(o.prototype,{previousIcon:"◀",nextIcon:"▶",galleryFadeIn:100,galleryFadeOut:300,slides:function(){return this.filter?this.$source.find(this.filter):this.$source},images:function(){return e("images is deprecated, please use slides instead"),this.slides()},currentNavigation:function(){return this.slides().index(this.$currentTarget)},navigateTo:function(e){var t=this,n=t.slides(),i=n.length,a=t.$instance.find("."+t.namespace+"-inner");return e=(e%i+i)%i,this.$instance.addClass(this.namespace+"-loading"),t.$currentTarget=n.eq(e),t.beforeContent(),r.when(t.getContent(),a.fadeTo(t.galleryFadeOut,.2)).always(function(e){t.setContent(e),t.afterContent(),e.fadeTo(t.galleryFadeIn,1)})},createNavigation:function(t){var n=this;return r('<span title="'+t+'" class="'+this.namespace+"-"+t+'"><span>'+this[t+"Icon"]+"</span></span>").on("click",function(e){r(this).trigger(t+"."+n.namespace),e.preventDefault()})}}),r.featherlightGallery=o,r.fn.featherlightGallery=function(e){return o.attach(this,e),this},r(document).ready(function(){o._onReady()})});
|
assets/featherlight/featherlight.js
CHANGED
@@ -392,7 +392,7 @@
|
|
392 |
process: function(elem) { return this.persist !== false ? $(elem) : $(elem).clone(true); }
|
393 |
},
|
394 |
image: {
|
395 |
-
regex: /\.(png|jpg|jpeg|gif|tiff?|bmp|svg)(\?\S*)?$/i,
|
396 |
process: function(url) {
|
397 |
var self = this,
|
398 |
deferred = $.Deferred(),
|
392 |
process: function(elem) { return this.persist !== false ? $(elem) : $(elem).clone(true); }
|
393 |
},
|
394 |
image: {
|
395 |
+
regex: /\.(png|jpg|jpeg|gif|tiff?|bmp|svg|webp)(\?\S*)?$/i,
|
396 |
process: function(url) {
|
397 |
var self = this,
|
398 |
deferred = $.Deferred(),
|
assets/featherlight/featherlight.min.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/**
|
2 |
* Featherlight - ultra slim jQuery lightbox
|
3 |
-
* Version 1.7.
|
4 |
*
|
5 |
-
* Copyright
|
6 |
* MIT Licensed.
|
7 |
**/
|
8 |
html.with-featherlight{overflow:hidden}.featherlight{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:2147483647;text-align:center;white-space:nowrap;cursor:pointer;background:#333;background:rgba(0,0,0,0)}.featherlight:last-of-type{background:rgba(0,0,0,.8)}.featherlight:before{content:'';display:inline-block;height:100%;vertical-align:middle}.featherlight .featherlight-content{position:relative;text-align:left;vertical-align:middle;display:inline-block;overflow:auto;padding:25px 25px 0;border-bottom:25px solid transparent;margin-left:5%;margin-right:5%;max-height:95%;background:#fff;cursor:auto;white-space:normal}.featherlight .featherlight-inner{display:block}.featherlight link.featherlight-inner,.featherlight script.featherlight-inner,.featherlight style.featherlight-inner{display:none}.featherlight .featherlight-close-icon{position:absolute;z-index:9999;top:0;right:0;line-height:25px;width:25px;cursor:pointer;text-align:center;font-family:Arial,sans-serif;background:#fff;background:rgba(255,255,255,.3);color:#000;border:0;padding:0}.featherlight .featherlight-close-icon::-moz-focus-inner{border:0;padding:0}.featherlight .featherlight-image{width:100%}.featherlight-iframe .featherlight-content{border-bottom:0;padding:0;-webkit-overflow-scrolling:touch}.featherlight iframe{border:0}.featherlight *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}@media only screen and (max-width:1024px){.featherlight .featherlight-content{margin-left:0;margin-right:0;max-height:98%;padding:10px 10px 0;border-bottom:10px solid transparent}}@media print{html.with-featherlight>*>:not(.featherlight){display:none}}
|
1 |
/**
|
2 |
* Featherlight - ultra slim jQuery lightbox
|
3 |
+
* Version 1.7.14 - http://noelboss.github.io/featherlight/
|
4 |
*
|
5 |
+
* Copyright 2019, Noël Raoul Bossart (http://www.noelboss.com)
|
6 |
* MIT Licensed.
|
7 |
**/
|
8 |
html.with-featherlight{overflow:hidden}.featherlight{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:2147483647;text-align:center;white-space:nowrap;cursor:pointer;background:#333;background:rgba(0,0,0,0)}.featherlight:last-of-type{background:rgba(0,0,0,.8)}.featherlight:before{content:'';display:inline-block;height:100%;vertical-align:middle}.featherlight .featherlight-content{position:relative;text-align:left;vertical-align:middle;display:inline-block;overflow:auto;padding:25px 25px 0;border-bottom:25px solid transparent;margin-left:5%;margin-right:5%;max-height:95%;background:#fff;cursor:auto;white-space:normal}.featherlight .featherlight-inner{display:block}.featherlight link.featherlight-inner,.featherlight script.featherlight-inner,.featherlight style.featherlight-inner{display:none}.featherlight .featherlight-close-icon{position:absolute;z-index:9999;top:0;right:0;line-height:25px;width:25px;cursor:pointer;text-align:center;font-family:Arial,sans-serif;background:#fff;background:rgba(255,255,255,.3);color:#000;border:0;padding:0}.featherlight .featherlight-close-icon::-moz-focus-inner{border:0;padding:0}.featherlight .featherlight-image{width:100%}.featherlight-iframe .featherlight-content{border-bottom:0;padding:0;-webkit-overflow-scrolling:touch}.featherlight iframe{border:0}.featherlight *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}@media only screen and (max-width:1024px){.featherlight .featherlight-content{margin-left:0;margin-right:0;max-height:98%;padding:10px 10px 0;border-bottom:10px solid transparent}}@media print{html.with-featherlight>*>:not(.featherlight){display:none}}
|
assets/featherlight/featherlight.min.js
CHANGED
@@ -1 +1,8 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Featherlight - ultra slim jQuery lightbox
|
3 |
+
* Version 1.7.14-UMD - http://noelboss.github.io/featherlight/
|
4 |
+
*
|
5 |
+
* Copyright 2019, Noël Raoul Bossart (http://www.noelboss.com)
|
6 |
+
* MIT Licensed.
|
7 |
+
**/
|
8 |
+
!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(u){"use strict";var r,i,o,n,a,s;function c(e,t){if(!(this instanceof c)){var n=new c(e,t);return n.open(),n}this.id=c.id++,this.setup(e,t),this.chainCallbacks(c._callbackChain)}void 0!==u?u.fn.jquery.match(/-ajax/)?"console"in window&&window.console.info("Featherlight needs regular jQuery, not the slim version."):(r=[],i=function(t){return r=u.grep(r,function(e){return e!==t&&0<e.$instance.closest("body").length})},o={allow:1,allowfullscreen:1,frameborder:1,height:1,longdesc:1,marginheight:1,marginwidth:1,mozallowfullscreen:1,name:1,referrerpolicy:1,sandbox:1,scrolling:1,src:1,srcdoc:1,style:1,webkitallowfullscreen:1,width:1},n={keyup:"onKeyUp",resize:"onResize"},a=function(e){u.each(c.opened().reverse(),function(){if(!e.isDefaultPrevented()&&!1===this[n[e.type]](e))return e.preventDefault(),e.stopPropagation(),!1})},s=function(e){var t;e!==c._globalHandlerInstalled&&(c._globalHandlerInstalled=e,t=u.map(n,function(e,t){return t+"."+c.prototype.namespace}).join(" "),u(window)[e?"on":"off"](t,a))},c.prototype={constructor:c,namespace:"featherlight",targetAttr:"data-featherlight",variant:null,resetCss:!1,background:null,openTrigger:"click",closeTrigger:"click",filter:null,root:"body",openSpeed:250,closeSpeed:250,closeOnClick:"background",closeOnEsc:!0,closeIcon:"✕",loading:"",persist:!1,otherClose:null,beforeOpen:u.noop,beforeContent:u.noop,beforeClose:u.noop,afterOpen:u.noop,afterContent:u.noop,afterClose:u.noop,onKeyUp:u.noop,onResize:u.noop,type:null,contentFilters:["jquery","image","html","ajax","iframe","text"],setup:function(e,t){"object"!=typeof e||e instanceof u!=!1||t||(t=e,e=void 0);var n=u.extend(this,t,{target:e}),e=n.resetCss?n.namespace+"-reset":n.namespace,e=u(n.background||['<div class="'+e+"-loading "+e+'">','<div class="'+e+'-content">','<button class="'+e+"-close-icon "+n.namespace+'-close" aria-label="Close">',n.closeIcon,"</button>",'<div class="'+n.namespace+'-inner">'+n.loading+"</div>","</div>","</div>"].join("")),r="."+n.namespace+"-close"+(n.otherClose?","+n.otherClose:"");return n.$instance=e.clone().addClass(n.variant),n.$instance.on(n.closeTrigger+"."+n.namespace,function(e){var t;e.isDefaultPrevented()||(t=u(e.target),("background"===n.closeOnClick&&t.is("."+n.namespace)||"anywhere"===n.closeOnClick||t.closest(r).length)&&(n.close(e),e.preventDefault()))}),this},getContent:function(){if(!1!==this.persist&&this.$content)return this.$content;function e(e){return t.$currentTarget&&t.$currentTarget.attr(e)}var t=this,n=this.constructor.contentFilters,r=e(t.targetAttr),i=t.target||r||"",o=n[t.type];if(!o&&i in n&&(o=n[i],i=t.target&&r),i=i||e("href")||"",!o)for(var a in n)t[a]&&(o=n[a],i=t[a]);if(!o){var s=i,i=null;if(u.each(t.contentFilters,function(){return(o=n[this]).test&&(i=o.test(s)),!i&&o.regex&&s.match&&s.match(o.regex)&&(i=s),!i}),!i)return"console"in window&&window.console.error("Featherlight: no content filter found "+(s?' for "'+s+'"':" (no target specified)")),!1}return o.process.call(t,i)},setContent:function(e){return this.$instance.removeClass(this.namespace+"-loading"),this.$instance.toggleClass(this.namespace+"-iframe",e.is("iframe")),this.$instance.find("."+this.namespace+"-inner").not(e).slice(1).remove().end().replaceWith(u.contains(this.$instance[0],e[0])?"":e),this.$content=e.addClass(this.namespace+"-inner"),this},open:function(t){var n=this;if(n.$instance.hide().appendTo(n.root),!(t&&t.isDefaultPrevented()||!1===n.beforeOpen(t))){t&&t.preventDefault();var e=n.getContent();if(e)return r.push(n),s(!0),n.$instance.fadeIn(n.openSpeed),n.beforeContent(t),u.when(e).always(function(e){e&&(n.setContent(e),n.afterContent(t))}).then(n.$instance.promise()).done(function(){n.afterOpen(t)})}return n.$instance.detach(),u.Deferred().reject().promise()},close:function(e){var t=this,n=u.Deferred();return!1===t.beforeClose(e)?n.reject():(0===i(t).length&&s(!1),t.$instance.fadeOut(t.closeSpeed,function(){t.$instance.detach(),t.afterClose(e),n.resolve()})),n.promise()},resize:function(e,t){var n;e&&t&&(this.$content.css("width","").css("height",""),1<(n=Math.max(e/(this.$content.parent().width()-1),t/(this.$content.parent().height()-1)))&&(n=t/Math.floor(t/n),this.$content.css("width",e/n+"px").css("height",t/n+"px")))},chainCallbacks:function(e){for(var t in e)this[t]=u.proxy(e[t],this,u.proxy(this[t],this))}},u.extend(c,{id:0,autoBind:"[data-featherlight]",defaults:c.prototype,contentFilters:{jquery:{regex:/^[#.]\w/,test:function(e){return e instanceof u&&e},process:function(e){return!1!==this.persist?u(e):u(e).clone(!0)}},image:{regex:/\.(png|jpg|jpeg|gif|tiff?|bmp|svg|webp)(\?\S*)?$/i,process:function(e){var t=u.Deferred(),n=new Image,r=u('<img src="'+e+'" alt="" class="'+this.namespace+'-image" />');return n.onload=function(){r.naturalWidth=n.width,r.naturalHeight=n.height,t.resolve(r)},n.onerror=function(){t.reject(r)},n.src=e,t.promise()}},html:{regex:/^\s*<[\w!][^<]*>/,process:function(e){return u(e)}},ajax:{regex:/./,process:function(e){var n=u.Deferred(),r=u("<div></div>").load(e,function(e,t){"error"!==t&&n.resolve(r.contents()),n.reject()});return n.promise()}},iframe:{process:function(e){var t=new u.Deferred,n=u("<iframe/>"),r=function(e,t){var n,r={},i=new RegExp("^"+t+"([A-Z])(.*)");for(n in e){var o=n.match(i);o&&(r[(o[1]+o[2].replace(/([A-Z])/g,"-$1")).toLowerCase()]=e[n])}return r}(this,"iframe"),i=function(e,t){var n,r={};for(n in e)n in t&&(r[n]=e[n],delete e[n]);return r}(r,o);return n.hide().attr("src",e).attr(i).css(r).on("load",function(){t.resolve(n.show())}).appendTo(this.$instance.find("."+this.namespace+"-content")),t.promise()}},text:{process:function(e){return u("<div>",{text:e})}}},functionAttributes:["beforeOpen","afterOpen","beforeContent","afterContent","beforeClose","afterClose"],readElementConfig:function(e,t){var n=this,r=new RegExp("^data-"+t+"-(.*)"),i={};return e&&e.attributes&&u.each(e.attributes,function(){var e=this.name.match(r);if(e){var t=this.value,e=u.camelCase(e[1]);if(0<=u.inArray(e,n.functionAttributes))t=new Function(t);else try{t=JSON.parse(t)}catch(e){}i[e]=t}}),i},extend:function(e,t){function n(){this.constructor=e}return n.prototype=this.prototype,e.prototype=new n,e.__super__=this.prototype,u.extend(e,this,t),e.defaults=e.prototype,e},attach:function(i,o,a){var s=this;"object"!=typeof o||o instanceof u!=!1||a||(a=o,o=void 0);var c,e=(a=u.extend({},a)).namespace||s.defaults.namespace,l=u.extend({},s.defaults,s.readElementConfig(i[0],e),a),e=function(e){var t=u(e.currentTarget),n=u.extend({$source:i,$currentTarget:t},s.readElementConfig(i[0],l.namespace),s.readElementConfig(e.currentTarget,l.namespace),a),r=c||t.data("featherlight-persisted")||new s(o,n);"shared"===r.persist?c=r:!1!==r.persist&&t.data("featherlight-persisted",r),n.$currentTarget.blur&&n.$currentTarget.trigger("blur"),r.open(e)};return i.on(l.openTrigger+"."+l.namespace,l.filter,e),{filter:l.filter,handler:e}},current:function(){var e=this.opened();return e[e.length-1]||null},opened:function(){var t=this;return i(),u.grep(r,function(e){return e instanceof t})},close:function(e){var t=this.current();if(t)return t.close(e)},_onReady:function(){var r,i=this;i.autoBind&&((r=u(i.autoBind)).each(function(){i.attach(u(this))}),u(document).on("click",i.autoBind,function(e){var t,n;e.isDefaultPrevented()||(t=u(e.currentTarget),r.length===(r=r.add(t)).length||(!(n=i.attach(t)).filter||0<u(e.target).parentsUntil(t,n.filter).length)&&n.handler(e))}))},_callbackChain:{onKeyUp:function(e,t){return 27===t.keyCode?(this.closeOnEsc&&u.featherlight.close(t),!1):e(t)},beforeOpen:function(e,t){return u(document.documentElement).addClass("with-featherlight"),this._previouslyActive=document.activeElement,this._$previouslyTabbable=u("a, input, select, textarea, iframe, button, iframe, [contentEditable=true]").not("[tabindex]").not(this.$instance.find("button")),this._$previouslyWithTabIndex=u("[tabindex]").not('[tabindex="-1"]'),this._previousWithTabIndices=this._$previouslyWithTabIndex.map(function(e,t){return u(t).attr("tabindex")}),this._$previouslyWithTabIndex.add(this._$previouslyTabbable).attr("tabindex",-1),document.activeElement.blur&&document.activeElement.blur(),e(t)},afterClose:function(e,t){var t=e(t),n=this;return this._$previouslyTabbable.removeAttr("tabindex"),this._$previouslyWithTabIndex.each(function(e,t){u(t).attr("tabindex",n._previousWithTabIndices[e])}),this._previouslyActive.focus(),0===c.opened().length&&u(document.documentElement).removeClass("with-featherlight"),t},onResize:function(e,t){return this.resize(this.$content.naturalWidth,this.$content.naturalHeight),e(t)},afterContent:function(e,t){e=e(t);return this.$instance.find("[autofocus]:not([disabled])").trigger("focus"),this.onResize(t),e}}}),u.featherlight=c,u.fn.featherlight=function(e,t){return c.attach(this,e,t),this},u(document).ready(function(){c._onReady()})):"console"in window&&window.console.info("Too much lightness, Featherlight needs jQuery.")});
|
assets/imagelightbox/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
MIT License
|
2 |
+
|
3 |
+
Copyright (c) 2016 Osvaldas Valutis
|
4 |
+
|
5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6 |
+
of this software and associated documentation files (the "Software"), to deal
|
7 |
+
in the Software without restriction, including without limitation the rights
|
8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9 |
+
copies of the Software, and to permit persons to whom the Software is
|
10 |
+
furnished to do so, subject to the following conditions:
|
11 |
+
|
12 |
+
The above copyright notice and this permission notice shall be included in all
|
13 |
+
copies or substantial portions of the Software.
|
14 |
+
|
15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21 |
+
SOFTWARE.
|
assets/imagelightbox/README.md
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# imageLightbox.js
|
2 |
+
A JavaScript plugin for touch-friendly image lightbox.
|
3 |
+
|
4 |
+
## Usage and Demo
|
5 |
+
Read [how to use it](https://osvaldas.info/image-lightbox-responsive-touch-friendly).
|
6 |
+
Check the [demo](https://osvaldas.info/examples/image-lightbox-responsive-touch-friendly).
|
assets/imagesloaded/LICENSE
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
MIT License
|
2 |
+
|
3 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4 |
+
of this software and associated documentation files (the "Software"), to deal
|
5 |
+
in the Software without restriction, including without limitation the rights
|
6 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7 |
+
copies of the Software, and to permit persons to whom the Software is
|
8 |
+
furnished to do so, subject to the following conditions:
|
9 |
+
|
10 |
+
The above copyright notice and this permission notice shall be included in all
|
11 |
+
copies or substantial portions of the Software.
|
12 |
+
|
13 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19 |
+
SOFTWARE.
|
assets/imagesloaded/README.md
ADDED
@@ -0,0 +1,362 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# imagesLoaded
|
2 |
+
|
3 |
+
<p class="tagline">JavaScript is all like "You images done yet or what?"</p>
|
4 |
+
|
5 |
+
[imagesloaded.desandro.com](http://imagesloaded.desandro.com)
|
6 |
+
|
7 |
+
Detect when images have been loaded.
|
8 |
+
|
9 |
+
## Install
|
10 |
+
|
11 |
+
### Download
|
12 |
+
|
13 |
+
+ [imagesloaded.pkgd.min.js](https://unpkg.com/imagesloaded@4/imagesloaded.pkgd.min.js) minified
|
14 |
+
+ [imagesloaded.pkgd.js](https://unpkg.com/imagesloaded@4/imagesloaded.pkgd.js) un-minified
|
15 |
+
|
16 |
+
### CDN
|
17 |
+
|
18 |
+
``` html
|
19 |
+
<script src="https://unpkg.com/imagesloaded@4/imagesloaded.pkgd.min.js"></script>
|
20 |
+
<!-- or -->
|
21 |
+
<script src="https://unpkg.com/imagesloaded@4/imagesloaded.pkgd.js"></script>
|
22 |
+
```
|
23 |
+
|
24 |
+
### Package managers
|
25 |
+
|
26 |
+
Install via [npm](https://www.npmjs.com/package/imagesloaded): `npm install imagesloaded`
|
27 |
+
|
28 |
+
Install via [Bower](http://bower.io): `bower install imagesloaded --save`
|
29 |
+
|
30 |
+
## jQuery
|
31 |
+
|
32 |
+
You can use imagesLoaded as a jQuery Plugin.
|
33 |
+
|
34 |
+
``` js
|
35 |
+
$('#container').imagesLoaded( function() {
|
36 |
+
// images have loaded
|
37 |
+
});
|
38 |
+
|
39 |
+
// options
|
40 |
+
$('#container').imagesLoaded( {
|
41 |
+
// options...
|
42 |
+
},
|
43 |
+
function() {
|
44 |
+
// images have loaded
|
45 |
+
}
|
46 |
+
);
|
47 |
+
```
|
48 |
+
|
49 |
+
`.imagesLoaded()` returns a [jQuery Deferred object](http://api.jquery.com/category/deferred-object/). This allows you to use `.always()`, `.done()`, `.fail()` and `.progress()`.
|
50 |
+
|
51 |
+
``` js
|
52 |
+
$('#container').imagesLoaded()
|
53 |
+
.always( function( instance ) {
|
54 |
+
console.log('all images loaded');
|
55 |
+
})
|
56 |
+
.done( function( instance ) {
|
57 |
+
console.log('all images successfully loaded');
|
58 |
+
})
|
59 |
+
.fail( function() {
|
60 |
+
console.log('all images loaded, at least one is broken');
|
61 |
+
})
|
62 |
+
.progress( function( instance, image ) {
|
63 |
+
var result = image.isLoaded ? 'loaded' : 'broken';
|
64 |
+
console.log( 'image is ' + result + ' for ' + image.img.src );
|
65 |
+
});
|
66 |
+
```
|
67 |
+
|
68 |
+
## Vanilla JavaScript
|
69 |
+
|
70 |
+
You can use imagesLoaded with vanilla JS.
|
71 |
+
|
72 |
+
``` js
|
73 |
+
imagesLoaded( elem, callback )
|
74 |
+
// options
|
75 |
+
imagesLoaded( elem, options, callback )
|
76 |
+
// you can use `new` if you like
|
77 |
+
new imagesLoaded( elem, callback )
|
78 |
+
```
|
79 |
+
|
80 |
+
+ `elem` _Element, NodeList, Array, or Selector String_
|
81 |
+
+ `options` _Object_
|
82 |
+
+ `callback` _Function_ - function triggered after all images have been loaded
|
83 |
+
|
84 |
+
Using a callback function is the same as binding it to the `always` event (see below).
|
85 |
+
|
86 |
+
``` js
|
87 |
+
// element
|
88 |
+
imagesLoaded( document.querySelector('#container'), function( instance ) {
|
89 |
+
console.log('all images are loaded');
|
90 |
+
});
|
91 |
+
// selector string
|
92 |
+
imagesLoaded( '#container', function() {...});
|
93 |
+
// multiple elements
|
94 |
+
var posts = document.querySelectorAll('.post');
|
95 |
+
imagesLoaded( posts, function() {...});
|
96 |
+
```
|
97 |
+
|
98 |
+
Bind events with vanilla JS with .on(), .off(), and .once() methods.
|
99 |
+
|
100 |
+
``` js
|
101 |
+
var imgLoad = imagesLoaded( elem );
|
102 |
+
function onAlways( instance ) {
|
103 |
+
console.log('all images are loaded');
|
104 |
+
}
|
105 |
+
// bind with .on()
|
106 |
+
imgLoad.on( 'always', onAlways );
|
107 |
+
// unbind with .off()
|
108 |
+
imgLoad.off( 'always', onAlways );
|
109 |
+
```
|
110 |
+
|
111 |
+
## Background
|
112 |
+
|
113 |
+
Detect when background images have loaded, in addition to `<img>`s.
|
114 |
+
|
115 |
+
Set `{ background: true }` to detect when the element's background image has loaded.
|
116 |
+
|
117 |
+
``` js
|
118 |
+
// jQuery
|
119 |
+
$('#container').imagesLoaded( { background: true }, function() {
|
120 |
+
console.log('#container background image loaded');
|
121 |
+
});
|
122 |
+
|
123 |
+
// vanilla JS
|
124 |
+
imagesLoaded( '#container', { background: true }, function() {
|
125 |
+
console.log('#container background image loaded');
|
126 |
+
});
|
127 |
+
```
|
128 |
+
|
129 |
+
[See jQuery demo](http://codepen.io/desandro/pen/pjVMPB) or [vanilla JS demo](http://codepen.io/desandro/pen/avKooW) on CodePen.
|
130 |
+
|
131 |
+
Set to a selector string like `{ background: '.item' }` to detect when the background images of child elements have loaded.
|
132 |
+
|
133 |
+
``` js
|
134 |
+
// jQuery
|
135 |
+
$('#container').imagesLoaded( { background: '.item' }, function() {
|
136 |
+
console.log('all .item background images loaded');
|
137 |
+
});
|
138 |
+
|
139 |
+
// vanilla JS
|
140 |
+
imagesLoaded( '#container', { background: '.item' }, function() {
|
141 |
+
console.log('all .item background images loaded');
|
142 |
+
});
|
143 |
+
```
|
144 |
+
|
145 |
+
[See jQuery demo](http://codepen.io/desandro/pen/avKoZL) or [vanilla JS demo](http://codepen.io/desandro/pen/vNrBGz) on CodePen.
|
146 |
+
|
147 |
+
## Events
|
148 |
+
|
149 |
+
### always
|
150 |
+
|
151 |
+
``` js
|
152 |
+
// jQuery
|
153 |
+
$('#container').imagesLoaded().always( function( instance ) {
|
154 |
+
console.log('ALWAYS - all images have been loaded');
|
155 |
+
});
|
156 |
+
|
157 |
+
// vanilla JS
|
158 |
+
imgLoad.on( 'always', function( instance ) {
|
159 |
+
console.log('ALWAYS - all images have been loaded');
|
160 |
+
});
|
161 |
+
```
|
162 |
+
|
163 |
+
Triggered after all images have been either loaded or confirmed broken.
|
164 |
+
|
165 |
+
+ `instance` _imagesLoaded_ - the imagesLoaded instance
|
166 |
+
|
167 |
+
### done
|
168 |
+
|
169 |
+
``` js
|
170 |
+
// jQuery
|
171 |
+
$('#container').imagesLoaded().done( function( instance ) {
|
172 |
+
console.log('DONE - all images have been successfully loaded');
|
173 |
+
});
|
174 |
+
|
175 |
+
// vanilla JS
|
176 |
+
imgLoad.on( 'done', function( instance ) {
|
177 |
+
console.log('DONE - all images have been successfully loaded');
|
178 |
+
});
|
179 |
+
```
|
180 |
+
|
181 |
+
Triggered after all images have successfully loaded without any broken images.
|
182 |
+
|
183 |
+
### fail
|
184 |
+
|
185 |
+
``` js
|
186 |
+
$('#container').imagesLoaded().fail( function( instance ) {
|
187 |
+
console.log('FAIL - all images loaded, at least one is broken');
|
188 |
+
});
|
189 |
+
|
190 |
+
// vanilla JS
|
191 |
+
imgLoad.on( 'fail', function( instance ) {
|
192 |
+
console.log('FAIL - all images loaded, at least one is broken');
|
193 |
+
});
|
194 |
+
```
|
195 |
+
|
196 |
+
Triggered after all images have been loaded with at least one broken image.
|
197 |
+
|
198 |
+
### progress
|
199 |
+
|
200 |
+
``` js
|
201 |
+
imgLoad.on( 'progress', function( instance, image ) {
|
202 |
+
var result = image.isLoaded ? 'loaded' : 'broken';
|
203 |
+
console.log( 'image is ' + result + ' for ' + image.img.src );
|
204 |
+
});
|
205 |
+
```
|
206 |
+
|
207 |
+
Triggered after each image has been loaded.
|
208 |
+
|
209 |
+
+ `instance` _imagesLoaded_ - the imagesLoaded instance
|
210 |
+
+ `image` _LoadingImage_ - the LoadingImage instance of the loaded image
|
211 |
+
|
212 |
+
<!-- sponsored -->
|
213 |
+
|
214 |
+
## Properties
|
215 |
+
|
216 |
+
### LoadingImage.img
|
217 |
+
|
218 |
+
_Image_ - The `img` element
|
219 |
+
|
220 |
+
### LoadingImage.isLoaded
|
221 |
+
|
222 |
+
_Boolean_ - `true` when the image has successfully loaded
|
223 |
+
|
224 |
+
### imagesLoaded.images
|
225 |
+
|
226 |
+
Array of _LoadingImage_ instances for each image detected
|
227 |
+
|
228 |
+
``` js
|
229 |
+
var imgLoad = imagesLoaded('#container');
|
230 |
+
imgLoad.on( 'always', function() {
|
231 |
+
console.log( imgLoad.images.length + ' images loaded' );
|
232 |
+
// detect which image is broken
|
233 |
+
for ( var i = 0, len = imgLoad.images.length; i < len; i++ ) {
|
234 |
+
var image = imgLoad.images[i];
|
235 |
+
var result = image.isLoaded ? 'loaded' : 'broken';
|
236 |
+
console.log( 'image is ' + result + ' for ' + image.img.src );
|
237 |
+
}
|
238 |
+
});
|
239 |
+
```
|
240 |
+
|
241 |
+
## Browserify
|
242 |
+
|
243 |
+
imagesLoaded works with [Browserify](http://browserify.org/).
|
244 |
+
|
245 |
+
``` bash
|
246 |
+
npm install imagesloaded --save
|
247 |
+
```
|
248 |
+
|
249 |
+
``` js
|
250 |
+
var imagesLoaded = require('imagesloaded');
|
251 |
+
|
252 |
+
imagesLoaded( elem, function() {...} );
|
253 |
+
```
|
254 |
+
|
255 |
+
Use `.makeJQueryPlugin` to make to use `.imagesLoaded()` jQuery plugin.
|
256 |
+
|
257 |
+
``` js
|
258 |
+
var $ = require('jquery');
|
259 |
+
var imagesLoaded = require('imagesloaded');
|
260 |
+
|
261 |
+
// provide jQuery argument
|
262 |
+
imagesLoaded.makeJQueryPlugin( $ );
|
263 |
+
// now use .imagesLoaded() jQuery plugin
|
264 |
+
$('#container').imagesLoaded( function() {...});
|
265 |
+
```
|
266 |
+
|
267 |
+
## Webpack
|
268 |
+
|
269 |
+
Install imagesLoaded with npm.
|
270 |
+
|
271 |
+
``` bash
|
272 |
+
npm install imagesloaded
|
273 |
+
```
|
274 |
+
|
275 |
+
You can then `require('imagesloaded')`.
|
276 |
+
|
277 |
+
``` js
|
278 |
+
// main.js
|
279 |
+
var imagesLoaded = require('imagesloaded');
|
280 |
+
|
281 |
+
imagesLoaded( '#container', function() {
|
282 |
+
// images have loaded
|
283 |
+
});
|
284 |
+
```
|
285 |
+
|
286 |
+
Use `.makeJQueryPlugin` to make `.imagesLoaded()` jQuery plugin.
|
287 |
+
|
288 |
+
``` js
|
289 |
+
// main.js
|
290 |
+
var imagesLoaded = require('imagesloaded');
|
291 |
+
var $ = require('jquery');
|
292 |
+
|
293 |
+
// provide jQuery argument
|
294 |
+
imagesLoaded.makeJQueryPlugin( $ );
|
295 |
+
// now use .imagesLoaded() jQuery plugin
|
296 |
+
$('#container').imagesLoaded( function() {...});
|
297 |
+
```
|
298 |
+
|
299 |
+
Run webpack.
|
300 |
+
|
301 |
+
``` bash
|
302 |
+
webpack main.js bundle.js
|
303 |
+
```
|
304 |
+
|
305 |
+
## RequireJS
|
306 |
+
|
307 |
+
imagesLoaded works with [RequireJS](http://requirejs.org).
|
308 |
+
|
309 |
+
You can require [imagesloaded.pkgd.js](http://imagesloaded.desandro.com/imagesloaded.pkgd.js).
|
310 |
+
|
311 |
+
``` js
|
312 |
+
requirejs( [
|
313 |
+
'path/to/imagesloaded.pkgd.js',
|
314 |
+
], function( imagesLoaded ) {
|
315 |
+
imagesLoaded( '#container', function() { ... });
|
316 |
+
});
|
317 |
+
```
|
318 |
+
|
319 |
+
Use `.makeJQueryPlugin` to make `.imagesLoaded()` jQuery plugin.
|
320 |
+
|
321 |
+
``` js
|
322 |
+
requirejs( [
|
323 |
+
'jquery',
|
324 |
+
'path/to/imagesloaded.pkgd.js',
|
325 |
+
], function( $, imagesLoaded ) {
|
326 |
+
// provide jQuery argument
|
327 |
+
imagesLoaded.makeJQueryPlugin( $ );
|
328 |
+
// now use .imagesLoaded() jQuery plugin
|
329 |
+
$('#container').imagesLoaded( function() {...});
|
330 |
+
});
|
331 |
+
```
|
332 |
+
|
333 |
+
You can manage dependencies with [Bower](http://bower.io). Set `baseUrl` to `bower_components` and set a path config for all your application code.
|
334 |
+
|
335 |
+
``` js
|
336 |
+
requirejs.config({
|
337 |
+
baseUrl: 'bower_components/',
|
338 |
+
paths: { // path to your app
|
339 |
+
app: '../'
|
340 |
+
}
|
341 |
+
});
|
342 |
+
|
343 |
+
requirejs( [
|
344 |
+
'imagesloaded/imagesloaded',
|
345 |
+
'app/my-component.js'
|
346 |
+
], function( imagesLoaded, myComp ) {
|
347 |
+
imagesLoaded( '#container', function() { ... });
|
348 |
+
});
|
349 |
+
```
|
350 |
+
|
351 |
+
## Browser support
|
352 |
+
|
353 |
+
+ IE9+
|
354 |
+
+ Android 2.3+
|
355 |
+
+ iOS Safari 4+
|
356 |
+
+ All other modern browsers
|
357 |
+
|
358 |
+
Use [imagesLoaded v3](http://imagesloaded.desandro.com/v3/) for IE8 support.
|
359 |
+
|
360 |
+
## MIT License
|
361 |
+
|
362 |
+
imagesLoaded is released under the [MIT License](http://desandro.mit-license.org/). Have at it.
|
assets/infinitescroll/LICENSE
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The open source license is designed for you to use Infinite Scroll to build
|
2 |
+
open source and personal projects. The Infinite Scroll open source license is
|
3 |
+
GPLv3. The GPLv3 has many terms, but the most important is how it is sticky
|
4 |
+
when you distribute your work publicly. From the GPL FAQ:
|
5 |
+
|
6 |
+
If you release the modified version to the public in some way, the GPL
|
7 |
+
requires you to make the modified source code available to the program's
|
8 |
+
users, under the GPL.
|
9 |
+
|
10 |
+
Releasing your project that uses Infinite Scroll under the GPLv3, in turn,
|
11 |
+
requires your project to be licensed under the GPLv3. If you are okay with
|
12 |
+
this, feel free to use Infinite Scroll under the GPLv3, without purchasing
|
13 |
+
a commercial license.
|
assets/infinitescroll/README.md
ADDED
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Infinite Scroll
|
2 |
+
|
3 |
+
_Automatically add next page_
|
4 |
+
|
5 |
+
See [infinite-scroll.com](https://infinite-scroll.com) for complete docs and demos.
|
6 |
+
|
7 |
+
## Install
|
8 |
+
|
9 |
+
### Download
|
10 |
+
|
11 |
+
- [infinite-scroll.pkgd.min.js](https://unpkg.com/infinite-scroll@4/dist/infinite-scroll.pkgd.min.js) minified, or
|
12 |
+
- [infinite-scroll.pkgd.js](https://unpkg.com/infinite-scroll@4/dist/infinite-scroll.pkgd.js) un-minified
|
13 |
+
|
14 |
+
### CDN
|
15 |
+
|
16 |
+
Link directly to Infinite Scroll files on [unpkg](https://unpkg.com).
|
17 |
+
|
18 |
+
``` html
|
19 |
+
<script src="https://unpkg.com/infinite-scroll@4/dist/infinite-scroll.pkgd.min.js"></script>
|
20 |
+
<!-- or -->
|
21 |
+
<script src="https://unpkg.com/infinite-scroll@4/dist/infinite-scroll.pkgd.js"></script>
|
22 |
+
```
|
23 |
+
|
24 |
+
### Package managers
|
25 |
+
|
26 |
+
npm: `npm install infinite-scroll`
|
27 |
+
|
28 |
+
Yarn: `yarn add infinite-scroll`
|
29 |
+
|
30 |
+
## License
|
31 |
+
|
32 |
+
### Commercial license
|
33 |
+
|
34 |
+
If you want to use Infinite Scroll to develop commercial sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary. Purchase an Infinite Scroll Commercial License at [infinite-scroll.com](https://infinite-scroll.com/#commercial-license)
|
35 |
+
|
36 |
+
### Open source license
|
37 |
+
|
38 |
+
If you are creating an open source application under a license compatible with the [GNU GPL license v3](https://www.gnu.org/licenses/gpl-3.0.html), you may use Infinite Scroll under the terms of the GPLv3.
|
39 |
+
|
40 |
+
[Read more about Infinite Scroll's license](https://infinite-scroll.com/license.html).
|
41 |
+
|
42 |
+
## Usage
|
43 |
+
|
44 |
+
Infinite Scroll works on a container element with its child item elements
|
45 |
+
|
46 |
+
``` html
|
47 |
+
<div class="container">
|
48 |
+
<article class="post">...</article>
|
49 |
+
<article class="post">...</article>
|
50 |
+
<article class="post">...</article>
|
51 |
+
...
|
52 |
+
</div>
|
53 |
+
```
|
54 |
+
|
55 |
+
### Options
|
56 |
+
|
57 |
+
``` js
|
58 |
+
let infScroll = new InfiniteScroll( '.container', {
|
59 |
+
// defaults listed
|
60 |
+
|
61 |
+
path: undefined,
|
62 |
+
// REQUIRED. Determines the URL for the next page
|
63 |
+
// Set to selector string to use the href of the next page's link
|
64 |
+
// path: '.pagination__next'
|
65 |
+
// Or set with {{#}} in place of the page number in the url
|
66 |
+
// path: '/blog/page/{{#}}'
|
67 |
+
// or set with function
|
68 |
+
// path: function() {
|
69 |
+
// return return '/articles/P' + ( ( this.loadCount + 1 ) * 10 );
|
70 |
+
// }
|
71 |
+
|
72 |
+
append: undefined,
|
73 |
+
// REQUIRED for appending content
|
74 |
+
// Appends selected elements from loaded page to the container
|
75 |
+
|
76 |
+
checkLastPage: true,
|
77 |
+
// Checks if page has path selector element
|
78 |
+
// Set to string if path is not set as selector string:
|
79 |
+
// checkLastPage: '.pagination__next'
|
80 |
+
|
81 |
+
prefill: false,
|
82 |
+
// Loads and appends pages on intialization until scroll requirement is met.
|
83 |
+
|
84 |
+
responseBody: 'text',
|
85 |
+
// Sets the method used on the response.
|
86 |
+
// Set to 'json' to load JSON.
|
87 |
+
|
88 |
+
domParseResponse: true,
|
89 |
+
// enables parsing response body into a DOM
|
90 |
+
// disable to load flat text
|
91 |
+
|
92 |
+
fetchOptions: undefined,
|
93 |
+
// sets custom settings for the fetch() request
|
94 |
+
// for setting headers, cors, or POST method
|
95 |
+
// can be set to an object, or a function that returns an object
|
96 |
+
|
97 |
+
outlayer: false,
|
98 |
+
// Integrates Masonry, Isotope or Packery
|
99 |
+
// Appended items will be added to the layout
|
100 |
+
|
101 |
+
scrollThreshold: 400,
|
102 |
+
// Sets the distance between the viewport to scroll area
|
103 |
+
// for scrollThreshold event to be triggered.
|
104 |
+
|
105 |
+
elementScroll: false,
|
106 |
+
// Sets scroller to an element for overflow element scrolling
|
107 |
+
|
108 |
+
loadOnScroll: true,
|
109 |
+
// Loads next page when scroll crosses over scrollThreshold
|
110 |
+
|
111 |
+
history: 'replace',
|
112 |
+
// Changes the browser history and URL.
|
113 |
+
// Set to 'push' to use history.pushState()
|
114 |
+
// to create new history entries for each page change.
|
115 |
+
|
116 |
+
historyTitle: true,
|
117 |
+
// Updates the window title. Requires history enabled.
|
118 |
+
|
119 |
+
hideNav: undefined,
|
120 |
+
// Hides navigation element
|
121 |
+
|
122 |
+
status: undefined,
|
123 |
+
// Displays status elements indicating state of page loading:
|
124 |
+
// .infinite-scroll-request, .infinite-scroll-load, .infinite-scroll-error
|
125 |
+
// status: '.page-load-status'
|
126 |
+
|
127 |
+
button: undefined,
|
128 |
+
// Enables a button to load pages on click
|
129 |
+
// button: '.load-next-button'
|
130 |
+
|
131 |
+
onInit: undefined,
|
132 |
+
// called on initialization
|
133 |
+
// useful for binding events on init
|
134 |
+
// onInit: function() {
|
135 |
+
// this.on( 'append', function() {...})
|
136 |
+
// }
|
137 |
+
|
138 |
+
debug: false,
|
139 |
+
// Logs events and state changes to the console.
|
140 |
+
})
|
141 |
+
```
|
142 |
+
|
143 |
+
## Browser support
|
144 |
+
|
145 |
+
Infinite Scroll v4 supports Chrome 60+, Edge 79+, Firefox 55+, Safari 11+.
|
146 |
+
|
147 |
+
For IE10 and Android 4 support, try [Infinite Scroll v3](https://v3.infinite-scroll.com/).
|
148 |
+
|
149 |
+
## Development
|
150 |
+
|
151 |
+
This package is developed with Node.js v14 and npm v6. Manage Node and npm version with [nvm](https://github.com/nvm-sh/nvm).
|
152 |
+
|
153 |
+
``` sh
|
154 |
+
nvm use
|
155 |
+
```
|
156 |
+
|
157 |
+
Install dependencies
|
158 |
+
|
159 |
+
``` sh
|
160 |
+
npm install
|
161 |
+
```
|
162 |
+
|
163 |
+
Lint
|
164 |
+
|
165 |
+
``` sh
|
166 |
+
npm run lint
|
167 |
+
```
|
168 |
+
|
169 |
+
Run tests
|
170 |
+
|
171 |
+
``` sh
|
172 |
+
npm test
|
173 |
+
```
|
174 |
+
|
175 |
+
---
|
176 |
+
|
177 |
+
By [Metafizzy 🌈🐻](https://metafizzy.co)
|
assets/infinitescroll/infinite-scroll.pkgd.js
CHANGED
@@ -1,55 +1,44 @@
|
|
1 |
/*!
|
2 |
-
* Infinite Scroll PACKAGED
|
3 |
* Automatically add next page
|
4 |
*
|
5 |
* Licensed GPLv3 for open source use
|
6 |
* or Infinite Scroll Commercial License for commercial use
|
7 |
*
|
8 |
* https://infinite-scroll.com
|
9 |
-
* Copyright 2018 Metafizzy
|
10 |
*/
|
11 |
|
12 |
/**
|
13 |
* Bridget makes jQuery widgets
|
14 |
-
*
|
15 |
* MIT license
|
16 |
*/
|
17 |
|
18 |
-
/* jshint browser: true, strict: true, undef: true, unused: true */
|
19 |
-
|
20 |
( function( window, factory ) {
|
21 |
-
//
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
// browser global
|
36 |
-
window.jQueryBridget = factory(
|
37 |
-
window,
|
38 |
-
window.jQuery
|
39 |
-
);
|
40 |
-
}
|
41 |
|
42 |
}( window, function factory( window, jQuery ) {
|
43 |
-
'use strict';
|
44 |
|
45 |
// ----- utils ----- //
|
46 |
|
47 |
-
var arraySlice = Array.prototype.slice;
|
48 |
-
|
49 |
// helper function for logging errors
|
50 |
// $.error breaks jQuery chaining
|
51 |
-
|
52 |
-
|
53 |
function( message ) {
|
54 |
console.error( message );
|
55 |
};
|
@@ -66,20 +55,16 @@ function jQueryBridget( namespace, PluginClass, $ ) {
|
|
66 |
if ( !PluginClass.prototype.option ) {
|
67 |
// option setter
|
68 |
PluginClass.prototype.option = function( opts ) {
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
}
|
73 |
-
this.options = $.extend( true, this.options, opts );
|
74 |
};
|
75 |
}
|
76 |
|
77 |
// make jQuery plugin
|
78 |
-
$.fn[ namespace ] = function( arg0
|
79 |
if ( typeof arg0 == 'string' ) {
|
80 |
// method call $().plugin( 'methodName', { options } )
|
81 |
-
// shift arguments by 1
|
82 |
-
var args = arraySlice.call( arguments, 1 );
|
83 |
return methodCall( this, arg0, args );
|
84 |
}
|
85 |
// just $().plugin({ options })
|
@@ -89,36 +74,36 @@ function jQueryBridget( namespace, PluginClass, $ ) {
|
|
89 |
|
90 |
// $().plugin('methodName')
|
91 |
function methodCall( $elems, methodName, args ) {
|
92 |
-
|
93 |
-
|
94 |
|
95 |
$elems.each( function( i, elem ) {
|
96 |
// get instance
|
97 |
-
|
98 |
if ( !instance ) {
|
99 |
-
logError( namespace
|
100 |
-
pluginMethodStr );
|
101 |
return;
|
102 |
}
|
103 |
|
104 |
-
|
105 |
-
if ( !method || methodName.charAt(0) == '_' ) {
|
106 |
-
logError(
|
107 |
return;
|
108 |
}
|
109 |
|
110 |
// apply method, get return value
|
111 |
-
|
112 |
// set return value if value is returned, use only first value
|
113 |
returnValue = returnValue === undefined ? value : returnValue;
|
114 |
-
});
|
115 |
|
116 |
return returnValue !== undefined ? returnValue : $elems;
|
117 |
}
|
118 |
|
119 |
function plainCall( $elems, options ) {
|
120 |
$elems.each( function( i, elem ) {
|
121 |
-
|
122 |
if ( instance ) {
|
123 |
// set options & init
|
124 |
instance.option( options );
|
@@ -128,46 +113,25 @@ function jQueryBridget( namespace, PluginClass, $ ) {
|
|
128 |
instance = new PluginClass( elem, options );
|
129 |
$.data( elem, namespace, instance );
|
130 |
}
|
131 |
-
});
|
132 |
}
|
133 |
|
134 |
-
updateJQuery( $ );
|
135 |
-
|
136 |
}
|
137 |
|
138 |
-
// ----- updateJQuery ----- //
|
139 |
-
|
140 |
-
// set $.bridget for v1 backwards compatibility
|
141 |
-
function updateJQuery( $ ) {
|
142 |
-
if ( !$ || ( $ && $.bridget ) ) {
|
143 |
-
return;
|
144 |
-
}
|
145 |
-
$.bridget = jQueryBridget;
|
146 |
-
}
|
147 |
-
|
148 |
-
updateJQuery( jQuery || window.jQuery );
|
149 |
-
|
150 |
// ----- ----- //
|
151 |
|
152 |
return jQueryBridget;
|
153 |
|
154 |
-
}));
|
155 |
-
|
156 |
/**
|
157 |
-
* EvEmitter
|
158 |
* Lil' event emitter
|
159 |
* MIT License
|
160 |
*/
|
161 |
|
162 |
-
/* jshint unused: true, undef: true, strict: true */
|
163 |
-
|
164 |
( function( global, factory ) {
|
165 |
// universal module definition
|
166 |
-
|
167 |
-
if ( typeof define == 'function' && define.amd ) {
|
168 |
-
// AMD - RequireJS
|
169 |
-
define( 'ev-emitter/ev-emitter',factory );
|
170 |
-
} else if ( typeof module == 'object' && module.exports ) {
|
171 |
// CommonJS - Browserify, Webpack
|
172 |
module.exports = factory();
|
173 |
} else {
|
@@ -177,22 +141,19 @@ return jQueryBridget;
|
|
177 |
|
178 |
}( typeof window != 'undefined' ? window : this, function() {
|
179 |
|
180 |
-
|
181 |
-
|
182 |
function EvEmitter() {}
|
183 |
|
184 |
-
|
185 |
|
186 |
proto.on = function( eventName, listener ) {
|
187 |
-
if ( !eventName || !listener )
|
188 |
-
|
189 |
-
}
|
190 |
// set events hash
|
191 |
-
|
192 |
// set listeners array
|
193 |
-
|
194 |
// only add once
|
195 |
-
if ( listeners.
|
196 |
listeners.push( listener );
|
197 |
}
|
198 |
|
@@ -200,16 +161,15 @@ proto.on = function( eventName, listener ) {
|
|
200 |
};
|
201 |
|
202 |
proto.once = function( eventName, listener ) {
|
203 |
-
if ( !eventName || !listener )
|
204 |
-
|
205 |
-
}
|
206 |
// add event
|
207 |
this.on( eventName, listener );
|
208 |
// set once flag
|
209 |
// set onceEvents hash
|
210 |
-
|
211 |
// set onceListeners object
|
212 |
-
|
213 |
// set flag
|
214 |
onceListeners[ listener ] = true;
|
215 |
|
@@ -217,11 +177,10 @@ proto.once = function( eventName, listener ) {
|
|
217 |
};
|
218 |
|
219 |
proto.off = function( eventName, listener ) {
|
220 |
-
|
221 |
-
if ( !listeners || !listeners.length )
|
222 |
-
|
223 |
-
|
224 |
-
var index = listeners.indexOf( listener );
|
225 |
if ( index != -1 ) {
|
226 |
listeners.splice( index, 1 );
|
227 |
}
|
@@ -230,19 +189,17 @@ proto.off = function( eventName, listener ) {
|
|
230 |
};
|
231 |
|
232 |
proto.emitEvent = function( eventName, args ) {
|
233 |
-
|
234 |
-
if ( !listeners || !listeners.length )
|
235 |
-
|
236 |
-
}
|
237 |
// copy over to avoid interference if .off() in listener
|
238 |
-
listeners = listeners.slice(0);
|
239 |
args = args || [];
|
240 |
// once stuff
|
241 |
-
|
242 |
|
243 |
-
for (
|
244 |
-
|
245 |
-
var isOnce = onceListeners && onceListeners[ listener ];
|
246 |
if ( isOnce ) {
|
247 |
// remove listener
|
248 |
// remove before trigger to prevent recursion
|
@@ -260,112 +217,36 @@ proto.emitEvent = function( eventName, args ) {
|
|
260 |
proto.allOff = function() {
|
261 |
delete this._events;
|
262 |
delete this._onceEvents;
|
|
|
263 |
};
|
264 |
|
265 |
return EvEmitter;
|
266 |
|
267 |
-
}));
|
268 |
-
|
269 |
/**
|
270 |
-
*
|
271 |
-
* matchesSelector( element, '.selector' )
|
272 |
* MIT license
|
273 |
*/
|
274 |
|
275 |
-
|
276 |
-
|
277 |
-
( function( window, factory ) {
|
278 |
-
/*global define: false, module: false */
|
279 |
-
'use strict';
|
280 |
// universal module definition
|
281 |
-
if ( typeof
|
282 |
-
// AMD
|
283 |
-
define( 'desandro-matches-selector/matches-selector',factory );
|
284 |
-
} else if ( typeof module == 'object' && module.exports ) {
|
285 |
// CommonJS
|
286 |
-
module.exports = factory();
|
287 |
} else {
|
288 |
// browser global
|
289 |
-
|
290 |
}
|
291 |
|
292 |
-
}(
|
293 |
-
'use strict';
|
294 |
-
|
295 |
-
var matchesMethod = ( function() {
|
296 |
-
var ElemProto = window.Element.prototype;
|
297 |
-
// check for the standard method name first
|
298 |
-
if ( ElemProto.matches ) {
|
299 |
-
return 'matches';
|
300 |
-
}
|
301 |
-
// check un-prefixed
|
302 |
-
if ( ElemProto.matchesSelector ) {
|
303 |
-
return 'matchesSelector';
|
304 |
-
}
|
305 |
-
// check vendor prefixes
|
306 |
-
var prefixes = [ 'webkit', 'moz', 'ms', 'o' ];
|
307 |
-
|
308 |
-
for ( var i=0; i < prefixes.length; i++ ) {
|
309 |
-
var prefix = prefixes[i];
|
310 |
-
var method = prefix + 'MatchesSelector';
|
311 |
-
if ( ElemProto[ method ] ) {
|
312 |
-
return method;
|
313 |
-
}
|
314 |
-
}
|
315 |
-
})();
|
316 |
-
|
317 |
-
return function matchesSelector( elem, selector ) {
|
318 |
-
return elem[ matchesMethod ]( selector );
|
319 |
-
};
|
320 |
|
321 |
-
}
|
322 |
-
|
323 |
-
/**
|
324 |
-
* Fizzy UI utils v2.0.7
|
325 |
-
* MIT license
|
326 |
-
*/
|
327 |
-
|
328 |
-
/*jshint browser: true, undef: true, unused: true, strict: true */
|
329 |
-
|
330 |
-
( function( window, factory ) {
|
331 |
-
// universal module definition
|
332 |
-
/*jshint strict: false */ /*globals define, module, require */
|
333 |
-
|
334 |
-
if ( typeof define == 'function' && define.amd ) {
|
335 |
-
// AMD
|
336 |
-
define( 'fizzy-ui-utils/utils',[
|
337 |
-
'desandro-matches-selector/matches-selector'
|
338 |
-
], function( matchesSelector ) {
|
339 |
-
return factory( window, matchesSelector );
|
340 |
-
});
|
341 |
-
} else if ( typeof module == 'object' && module.exports ) {
|
342 |
-
// CommonJS
|
343 |
-
module.exports = factory(
|
344 |
-
window,
|
345 |
-
require('desandro-matches-selector')
|
346 |
-
);
|
347 |
-
} else {
|
348 |
-
// browser global
|
349 |
-
window.fizzyUIUtils = factory(
|
350 |
-
window,
|
351 |
-
window.matchesSelector
|
352 |
-
);
|
353 |
-
}
|
354 |
-
|
355 |
-
}( window, function factory( window, matchesSelector ) {
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
var utils = {};
|
360 |
|
361 |
// ----- extend ----- //
|
362 |
|
363 |
// extends objects
|
364 |
utils.extend = function( a, b ) {
|
365 |
-
|
366 |
-
a[ prop ] = b[ prop ];
|
367 |
-
}
|
368 |
-
return a;
|
369 |
};
|
370 |
|
371 |
// ----- modulo ----- //
|
@@ -376,24 +257,17 @@ utils.modulo = function( num, div ) {
|
|
376 |
|
377 |
// ----- makeArray ----- //
|
378 |
|
379 |
-
var arraySlice = Array.prototype.slice;
|
380 |
-
|
381 |
// turn element or nodeList into an array
|
382 |
utils.makeArray = function( obj ) {
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
}
|
387 |
// return empty array if undefined or null. #6
|
388 |
-
if ( obj === null || obj === undefined )
|
389 |
-
return [];
|
390 |
-
}
|
391 |
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
return arraySlice.call( obj );
|
396 |
-
}
|
397 |
|
398 |
// array of single index
|
399 |
return [ obj ];
|
@@ -402,7 +276,7 @@ utils.makeArray = function( obj ) {
|
|
402 |
// ----- removeFrom ----- //
|
403 |
|
404 |
utils.removeFrom = function( ary, obj ) {
|
405 |
-
|
406 |
if ( index != -1 ) {
|
407 |
ary.splice( index, 1 );
|
408 |
}
|
@@ -413,9 +287,7 @@ utils.removeFrom = function( ary, obj ) {
|
|
413 |
utils.getParent = function( elem, selector ) {
|
414 |
while ( elem.parentNode && elem != document.body ) {
|
415 |
elem = elem.parentNode;
|
416 |
-
if (
|
417 |
-
return elem;
|
418 |
-
}
|
419 |
}
|
420 |
};
|
421 |
|
@@ -433,7 +305,7 @@ utils.getQueryElement = function( elem ) {
|
|
433 |
|
434 |
// enable .ontype to trigger from .addEventListener( elem, 'type' )
|
435 |
utils.handleEvent = function( event ) {
|
436 |
-
|
437 |
if ( this[ method ] ) {
|
438 |
this[ method ]( event );
|
439 |
}
|
@@ -444,32 +316,27 @@ utils.handleEvent = function( event ) {
|
|
444 |
utils.filterFindElements = function( elems, selector ) {
|
445 |
// make array of elems
|
446 |
elems = utils.makeArray( elems );
|
447 |
-
var ffElems = [];
|
448 |
|
449 |
-
elems
|
450 |
// check that elem is an actual element
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
}
|
470 |
-
});
|
471 |
-
|
472 |
-
return ffElems;
|
473 |
};
|
474 |
|
475 |
// ----- debounceMethod ----- //
|
@@ -477,127 +344,108 @@ utils.filterFindElements = function( elems, selector ) {
|
|
477 |
utils.debounceMethod = function( _class, methodName, threshold ) {
|
478 |
threshold = threshold || 100;
|
479 |
// original method
|
480 |
-
|
481 |
-
|
482 |
|
483 |
_class.prototype[ methodName ] = function() {
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
method.apply( _this, args );
|
491 |
-
delete _this[ timeoutName ];
|
492 |
}, threshold );
|
493 |
};
|
494 |
};
|
495 |
|
496 |
// ----- docReady ----- //
|
497 |
|
498 |
-
utils.docReady = function(
|
499 |
-
|
500 |
if ( readyState == 'complete' || readyState == 'interactive' ) {
|
501 |
// do async to allow for other scripts to run. metafizzy/flickity#441
|
502 |
-
setTimeout(
|
503 |
} else {
|
504 |
-
document.addEventListener( 'DOMContentLoaded',
|
505 |
}
|
506 |
};
|
507 |
|
508 |
// ----- htmlInit ----- //
|
509 |
|
510 |
-
// http://
|
511 |
utils.toDashed = function( str ) {
|
512 |
return str.replace( /(.)([A-Z])/g, function( match, $1, $2 ) {
|
513 |
return $1 + '-' + $2;
|
514 |
-
}).toLowerCase();
|
515 |
};
|
516 |
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
*/
|
523 |
utils.htmlInit = function( WidgetClass, namespace ) {
|
524 |
utils.docReady( function() {
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
elems.forEach( function( elem ) {
|
535 |
-
var attr = elem.getAttribute( dataAttr ) ||
|
536 |
-
elem.getAttribute( dataOptionsAttr );
|
537 |
-
var options;
|
538 |
try {
|
539 |
options = attr && JSON.parse( attr );
|
540 |
} catch ( error ) {
|
541 |
// log error, do not initialize
|
542 |
if ( console ) {
|
543 |
-
console.error(
|
544 |
-
': ' + error );
|
545 |
}
|
546 |
return;
|
547 |
}
|
548 |
// initialize
|
549 |
-
|
550 |
// make available via $().data('namespace')
|
551 |
if ( jQuery ) {
|
552 |
jQuery.data( elem, namespace, instance );
|
553 |
}
|
554 |
-
});
|
555 |
|
556 |
-
});
|
557 |
};
|
558 |
|
559 |
// ----- ----- //
|
560 |
|
561 |
return utils;
|
562 |
|
563 |
-
}));
|
564 |
-
|
565 |
// core
|
566 |
( function( window, factory ) {
|
567 |
// universal module definition
|
568 |
-
|
569 |
-
if ( typeof define == 'function' && define.amd ) {
|
570 |
-
// AMD
|
571 |
-
define( 'infinite-scroll/js/core',[
|
572 |
-
'ev-emitter/ev-emitter',
|
573 |
-
'fizzy-ui-utils/utils',
|
574 |
-
], function( EvEmitter, utils) {
|
575 |
-
return factory( window, EvEmitter, utils );
|
576 |
-
});
|
577 |
-
} else if ( typeof module == 'object' && module.exports ) {
|
578 |
// CommonJS
|
579 |
module.exports = factory(
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
);
|
584 |
} else {
|
585 |
// browser global
|
586 |
window.InfiniteScroll = factory(
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
);
|
591 |
}
|
592 |
|
593 |
}( window, function factory( window, EvEmitter, utils ) {
|
594 |
|
595 |
-
|
596 |
// internal store of all InfiniteScroll intances
|
597 |
-
|
598 |
|
599 |
function InfiniteScroll( element, options ) {
|
600 |
-
|
601 |
|
602 |
if ( !queryElem ) {
|
603 |
console.error( 'Bad element for InfiniteScroll: ' + ( queryElem || element ) );
|
@@ -606,14 +454,14 @@ function InfiniteScroll( element, options ) {
|
|
606 |
element = queryElem;
|
607 |
// do not initialize twice on same element
|
608 |
if ( element.infiniteScrollGUID ) {
|
609 |
-
|
610 |
instance.option( options );
|
611 |
return instance;
|
612 |
}
|
613 |
|
614 |
this.element = element;
|
615 |
// options
|
616 |
-
this.options =
|
617 |
this.option( options );
|
618 |
// add jQuery
|
619 |
if ( jQuery ) {
|
@@ -634,19 +482,19 @@ InfiniteScroll.defaults = {
|
|
634 |
InfiniteScroll.create = {};
|
635 |
InfiniteScroll.destroy = {};
|
636 |
|
637 |
-
|
638 |
// inherit EvEmitter
|
639 |
-
|
640 |
|
641 |
// -------------------------- -------------------------- //
|
642 |
|
643 |
// globally unique identifiers
|
644 |
-
|
645 |
|
646 |
proto.create = function() {
|
647 |
// create core
|
648 |
// add id for InfiniteScroll.data
|
649 |
-
|
650 |
this.element.infiniteScrollGUID = id; // expando
|
651 |
instances[ id ] = this; // associate via id
|
652 |
// properties
|
@@ -654,7 +502,7 @@ proto.create = function() {
|
|
654 |
this.loadCount = 0;
|
655 |
this.updateGetPath();
|
656 |
// bail if getPath not set, or returns falsey #776
|
657 |
-
|
658 |
if ( !hasPath ) {
|
659 |
console.error('Disabling InfiniteScroll');
|
660 |
return;
|
@@ -663,18 +511,18 @@ proto.create = function() {
|
|
663 |
this.log( 'initialized', [ this.element.className ] );
|
664 |
this.callOnInit();
|
665 |
// create features
|
666 |
-
for (
|
667 |
InfiniteScroll.create[ method ].call( this );
|
668 |
}
|
669 |
};
|
670 |
|
671 |
proto.option = function( opts ) {
|
672 |
-
|
673 |
};
|
674 |
|
675 |
// call onInit option, used for binding events on init
|
676 |
proto.callOnInit = function() {
|
677 |
-
|
678 |
if ( onInit ) {
|
679 |
onInit.call( this, this );
|
680 |
}
|
@@ -684,7 +532,7 @@ proto.callOnInit = function() {
|
|
684 |
|
685 |
proto.dispatchEvent = function( type, event, args ) {
|
686 |
this.log( type, args );
|
687 |
-
|
688 |
this.emitEvent( type, emitArgs );
|
689 |
// trigger jQuery event
|
690 |
if ( !jQuery || !this.$element ) {
|
@@ -692,53 +540,37 @@ proto.dispatchEvent = function( type, event, args ) {
|
|
692 |
}
|
693 |
// namespace jQuery event
|
694 |
type += '.infiniteScroll';
|
695 |
-
|
696 |
if ( event ) {
|
697 |
// create jQuery event
|
698 |
-
|
|
|
699 |
jQEvent.type = type;
|
700 |
$event = jQEvent;
|
701 |
}
|
702 |
this.$element.trigger( $event, args );
|
703 |
};
|
704 |
|
705 |
-
|
706 |
-
initialized:
|
707 |
-
|
708 |
-
}
|
709 |
-
|
710 |
-
|
711 |
-
}
|
712 |
-
|
713 |
-
return ( response.title || '' ) + '. URL: ' + path;
|
714 |
-
},
|
715 |
-
error: function( error, path ) {
|
716 |
-
return error + '. URL: ' + path;
|
717 |
-
},
|
718 |
-
append: function( response, path, items ) {
|
719 |
-
return items.length + ' items. URL: ' + path;
|
720 |
-
},
|
721 |
-
last: function( response, path ) {
|
722 |
-
return 'URL: ' + path;
|
723 |
-
},
|
724 |
-
history: function( title, path ) {
|
725 |
-
return 'URL: ' + path;
|
726 |
-
},
|
727 |
pageIndex: function( index, origin ) {
|
728 |
-
return
|
729 |
},
|
730 |
};
|
731 |
|
732 |
// log events
|
733 |
proto.log = function( type, args ) {
|
734 |
-
if ( !this.options.debug )
|
735 |
-
|
736 |
-
}
|
737 |
-
|
738 |
-
|
739 |
-
if ( logger ) {
|
740 |
-
message += '. ' + logger.apply( this, args );
|
741 |
-
}
|
742 |
console.log( message );
|
743 |
};
|
744 |
|
@@ -746,12 +578,12 @@ proto.log = function( type, args ) {
|
|
746 |
|
747 |
proto.updateMeasurements = function() {
|
748 |
this.windowHeight = window.innerHeight;
|
749 |
-
|
750 |
-
this.top = rect.top + window.
|
751 |
};
|
752 |
|
753 |
proto.updateScroller = function() {
|
754 |
-
|
755 |
if ( !elementScroll ) {
|
756 |
// default, use window
|
757 |
this.scroller = window;
|
@@ -761,26 +593,26 @@ proto.updateScroller = function() {
|
|
761 |
this.scroller = elementScroll === true ? this.element :
|
762 |
utils.getQueryElement( elementScroll );
|
763 |
if ( !this.scroller ) {
|
764 |
-
throw
|
765 |
}
|
766 |
};
|
767 |
|
768 |
// -------------------------- page path -------------------------- //
|
769 |
|
770 |
proto.updateGetPath = function() {
|
771 |
-
|
772 |
if ( !optPath ) {
|
773 |
-
console.error(
|
774 |
return;
|
775 |
}
|
776 |
// function
|
777 |
-
|
778 |
if ( type == 'function' ) {
|
779 |
this.getPath = optPath;
|
780 |
return;
|
781 |
}
|
782 |
// template string: '/pages/{{#}}.html'
|
783 |
-
|
784 |
if ( templateMatch ) {
|
785 |
this.updateGetPathTemplate( optPath );
|
786 |
return;
|
@@ -791,18 +623,18 @@ proto.updateGetPath = function() {
|
|
791 |
|
792 |
proto.updateGetPathTemplate = function( optPath ) {
|
793 |
// set getPath with template string
|
794 |
-
this.getPath =
|
795 |
-
|
796 |
return optPath.replace( '{{#}}', nextIndex );
|
797 |
-
}
|
798 |
// get pageIndex from location
|
799 |
// convert path option into regex to look for pattern in location
|
800 |
-
// escape query (?) in url, allows for parsing GET parameters
|
801 |
-
|
802 |
.replace( /(\\\?|\?)/, '\\?' )
|
803 |
.replace( '{{#}}', '(\\d\\d?\\d?)' );
|
804 |
-
|
805 |
-
|
806 |
|
807 |
if ( match ) {
|
808 |
this.pageIndex = parseInt( match[1], 10 );
|
@@ -810,7 +642,7 @@ proto.updateGetPathTemplate = function( optPath ) {
|
|
810 |
}
|
811 |
};
|
812 |
|
813 |
-
|
814 |
// WordPress & Tumblr - example.com/page/2
|
815 |
// Jekyll - example.com/page2
|
816 |
/^(.*?\/?page\/?)(\d\d?\d?)(.*?$)/,
|
@@ -820,81 +652,73 @@ var pathRegexes = [
|
|
820 |
/(.*?)(\d\d?\d?)(?!.*\d)(.*?$)/,
|
821 |
];
|
822 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
823 |
proto.updateGetPathSelector = function( optPath ) {
|
824 |
// parse href of link: '.next-page-link'
|
825 |
-
|
826 |
if ( !hrefElem ) {
|
827 |
-
console.error(
|
828 |
-
optPath );
|
829 |
return;
|
830 |
}
|
831 |
-
|
832 |
-
|
833 |
-
|
834 |
-
for ( var i=0; href && i < pathRegexes.length; i++ ) {
|
835 |
-
regex = pathRegexes[i];
|
836 |
-
var match = href.match( regex );
|
837 |
-
if ( match ) {
|
838 |
-
pathParts = match.slice(1); // remove first part
|
839 |
-
break;
|
840 |
-
}
|
841 |
-
}
|
842 |
if ( !pathParts ) {
|
843 |
-
console.error(
|
844 |
return;
|
845 |
}
|
|
|
|
|
846 |
this.isPathSelector = true; // flag for checkLastPage()
|
847 |
-
this.getPath =
|
848 |
-
var nextIndex = this.pageIndex + 1;
|
849 |
-
return pathParts[0] + nextIndex + pathParts[2];
|
850 |
-
}.bind( this );
|
851 |
// get pageIndex from href
|
852 |
-
this.pageIndex = parseInt(
|
853 |
this.log( 'pageIndex', [ this.pageIndex, 'next link' ] );
|
854 |
};
|
855 |
|
856 |
proto.updateGetAbsolutePath = function() {
|
857 |
-
|
858 |
// path doesn't start with http or /
|
859 |
-
|
860 |
if ( isAbsolute ) {
|
861 |
this.getAbsolutePath = this.getPath;
|
862 |
return;
|
863 |
}
|
864 |
|
865 |
-
|
866 |
// query parameter #829. example.com/?pg=2
|
867 |
-
|
868 |
-
if ( isQuery ) {
|
869 |
-
this.getAbsolutePath = function() {
|
870 |
-
return pathname + this.getPath();
|
871 |
-
};
|
872 |
-
return;
|
873 |
-
}
|
874 |
-
|
875 |
// /foo/bar/index.html => /foo/bar
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
};
|
881 |
|
882 |
// -------------------------- nav -------------------------- //
|
883 |
|
884 |
// hide navigation
|
885 |
InfiniteScroll.create.hideNav = function() {
|
886 |
-
|
887 |
-
if ( !nav )
|
888 |
-
|
889 |
-
}
|
890 |
nav.style.display = 'none';
|
891 |
this.nav = nav;
|
892 |
};
|
893 |
|
894 |
InfiniteScroll.destroy.hideNav = function() {
|
895 |
-
if ( this.nav )
|
896 |
-
this.nav.style.display = '';
|
897 |
-
}
|
898 |
};
|
899 |
|
900 |
// -------------------------- destroy -------------------------- //
|
@@ -902,7 +726,7 @@ InfiniteScroll.destroy.hideNav = function() {
|
|
902 |
proto.destroy = function() {
|
903 |
this.allOff(); // remove all event listeners
|
904 |
// call destroy methods
|
905 |
-
for (
|
906 |
InfiniteScroll.destroy[ method ].call( this );
|
907 |
}
|
908 |
|
@@ -919,15 +743,15 @@ proto.destroy = function() {
|
|
919 |
// https://remysharp.com/2010/07/21/throttling-function-calls
|
920 |
InfiniteScroll.throttle = function( fn, threshold ) {
|
921 |
threshold = threshold || 200;
|
922 |
-
|
923 |
|
924 |
return function() {
|
925 |
-
|
926 |
-
|
927 |
-
|
928 |
last = now;
|
929 |
fn.apply( this, args );
|
930 |
-
}
|
931 |
if ( last && now < last + threshold ) {
|
932 |
// hold on to it
|
933 |
clearTimeout( timeout );
|
@@ -940,13 +764,13 @@ InfiniteScroll.throttle = function( fn, threshold ) {
|
|
940 |
|
941 |
InfiniteScroll.data = function( elem ) {
|
942 |
elem = utils.getQueryElement( elem );
|
943 |
-
|
944 |
return id && instances[ id ];
|
945 |
};
|
946 |
|
947 |
// set internal jQuery, for Webpack + jQuery v3
|
948 |
-
InfiniteScroll.setJQuery = function(
|
949 |
-
jQuery =
|
950 |
};
|
951 |
|
952 |
// -------------------------- setup -------------------------- //
|
@@ -956,51 +780,46 @@ utils.htmlInit( InfiniteScroll, 'infinite-scroll' );
|
|
956 |
// add noop _init method for jQuery Bridget. #768
|
957 |
proto._init = function() {};
|
958 |
|
959 |
-
|
960 |
-
|
|
|
961 |
}
|
962 |
|
963 |
// -------------------------- -------------------------- //
|
964 |
|
965 |
return InfiniteScroll;
|
966 |
|
967 |
-
}));
|
968 |
-
|
969 |
// page-load
|
970 |
( function( window, factory ) {
|
971 |
// universal module definition
|
972 |
-
|
973 |
-
if ( typeof define == 'function' && define.amd ) {
|
974 |
-
// AMD
|
975 |
-
define( 'infinite-scroll/js/page-load',[
|
976 |
-
'./core',
|
977 |
-
], function( InfiniteScroll ) {
|
978 |
-
return factory( window, InfiniteScroll );
|
979 |
-
});
|
980 |
-
} else if ( typeof module == 'object' && module.exports ) {
|
981 |
// CommonJS
|
982 |
module.exports = factory(
|
983 |
-
|
984 |
-
|
985 |
);
|
986 |
} else {
|
987 |
// browser global
|
988 |
factory(
|
989 |
-
|
990 |
-
|
991 |
);
|
992 |
}
|
993 |
|
994 |
}( window, function factory( window, InfiniteScroll ) {
|
995 |
|
996 |
-
|
997 |
|
998 |
-
|
999 |
-
|
1000 |
-
|
1001 |
-
|
1002 |
-
|
1003 |
-
|
|
|
|
|
|
|
1004 |
|
1005 |
InfiniteScroll.create.pageLoad = function() {
|
1006 |
this.canLoad = true;
|
@@ -1012,75 +831,93 @@ InfiniteScroll.create.pageLoad = function() {
|
|
1012 |
};
|
1013 |
|
1014 |
proto.onScrollThresholdLoad = function() {
|
1015 |
-
if ( this.options.loadOnScroll )
|
1016 |
-
this.loadNextPage();
|
1017 |
-
}
|
1018 |
};
|
1019 |
|
|
|
|
|
1020 |
proto.loadNextPage = function() {
|
1021 |
-
if ( this.isLoading || !this.canLoad )
|
1022 |
-
return;
|
1023 |
-
}
|
1024 |
|
1025 |
-
|
|
|
1026 |
this.isLoading = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1027 |
|
1028 |
-
|
1029 |
-
|
1030 |
-
|
1031 |
-
|
1032 |
-
|
1033 |
-
|
1034 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1035 |
|
1036 |
-
|
1037 |
-
this.lastPageReached( response, path );
|
1038 |
-
}.bind( this );
|
1039 |
|
1040 |
-
|
1041 |
-
this.dispatchEvent( 'request', null, [ path ] );
|
1042 |
};
|
1043 |
|
1044 |
-
proto.onPageLoad = function(
|
1045 |
// done loading if not appending
|
1046 |
if ( !this.options.append ) {
|
1047 |
this.isLoading = false;
|
1048 |
}
|
1049 |
this.pageIndex++;
|
1050 |
this.loadCount++;
|
1051 |
-
this.dispatchEvent( 'load', null, [
|
1052 |
-
this.appendNextPage(
|
1053 |
-
return response;
|
1054 |
};
|
1055 |
|
1056 |
-
proto.appendNextPage = function(
|
1057 |
-
|
1058 |
// do not append json
|
1059 |
-
|
1060 |
-
if ( !isDocument || !
|
1061 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1062 |
}
|
1063 |
|
1064 |
-
|
1065 |
-
|
1066 |
-
var appendReady = function () {
|
1067 |
this.appendItems( items, fragment );
|
1068 |
this.isLoading = false;
|
1069 |
-
this.dispatchEvent( 'append', null, [
|
1070 |
-
|
|
|
1071 |
|
1072 |
// TODO add hook for option to trigger appendReady
|
1073 |
if ( this.options.outlayer ) {
|
1074 |
-
this.appendOutlayerItems( fragment, appendReady );
|
1075 |
} else {
|
1076 |
-
appendReady();
|
1077 |
}
|
1078 |
};
|
1079 |
|
1080 |
proto.appendItems = function( items, fragment ) {
|
1081 |
-
if ( !items || !items.length )
|
1082 |
-
|
1083 |
-
}
|
1084 |
// get fragment if not provided
|
1085 |
fragment = fragment || getItemsFragment( items );
|
1086 |
refreshScripts( fragment );
|
@@ -1089,10 +926,8 @@ proto.appendItems = function( items, fragment ) {
|
|
1089 |
|
1090 |
function getItemsFragment( items ) {
|
1091 |
// add items to fragment
|
1092 |
-
|
1093 |
-
|
1094 |
-
fragment.appendChild( items[i] );
|
1095 |
-
}
|
1096 |
return fragment;
|
1097 |
}
|
1098 |
|
@@ -1100,36 +935,36 @@ function getItemsFragment( items ) {
|
|
1100 |
// <script>s added by InfiniteScroll will not load
|
1101 |
// similar to https://stackoverflow.com/questions/610995
|
1102 |
function refreshScripts( fragment ) {
|
1103 |
-
|
1104 |
-
for (
|
1105 |
-
|
1106 |
-
|
1107 |
-
|
|
|
|
|
|
|
1108 |
// copy inner script code. #718, #782
|
1109 |
freshScript.innerHTML = script.innerHTML;
|
1110 |
script.parentNode.replaceChild( freshScript, script );
|
1111 |
}
|
1112 |
}
|
1113 |
|
1114 |
-
function copyAttributes( fromNode, toNode ) {
|
1115 |
-
var attrs = fromNode.attributes;
|
1116 |
-
for ( var i=0; i < attrs.length; i++ ) {
|
1117 |
-
var attr = attrs[i];
|
1118 |
-
toNode.setAttribute( attr.name, attr.value );
|
1119 |
-
}
|
1120 |
-
}
|
1121 |
-
|
1122 |
// ----- outlayer ----- //
|
1123 |
|
1124 |
proto.appendOutlayerItems = function( fragment, appendReady ) {
|
1125 |
-
|
1126 |
if ( !imagesLoaded ) {
|
1127 |
console.error('[InfiniteScroll] imagesLoaded required for outlayer option');
|
1128 |
this.isLoading = false;
|
1129 |
return;
|
1130 |
}
|
1131 |
// append once images loaded
|
1132 |
-
|
|
|
|
|
|
|
|
|
|
|
1133 |
};
|
1134 |
|
1135 |
proto.onAppendOutlayer = function( response, path, items ) {
|
@@ -1139,23 +974,20 @@ proto.onAppendOutlayer = function( response, path, items ) {
|
|
1139 |
// ----- checkLastPage ----- //
|
1140 |
|
1141 |
// check response for next element
|
1142 |
-
proto.checkLastPage = function(
|
1143 |
-
|
1144 |
-
if ( !checkLastPage )
|
1145 |
-
return;
|
1146 |
-
}
|
1147 |
|
1148 |
-
var pathOpt = this.options.path;
|
1149 |
// if path is function, check if next path is truthy
|
1150 |
if ( typeof pathOpt == 'function' ) {
|
1151 |
-
|
1152 |
if ( !nextPath ) {
|
1153 |
-
this.lastPageReached(
|
1154 |
return;
|
1155 |
}
|
1156 |
}
|
1157 |
// get selector from checkLastPage or path option
|
1158 |
-
|
1159 |
if ( typeof checkLastPage == 'string' ) {
|
1160 |
selector = checkLastPage;
|
1161 |
} else if ( this.isPathSelector ) {
|
@@ -1164,39 +996,35 @@ proto.checkLastPage = function( response, path ) {
|
|
1164 |
}
|
1165 |
// check last page for selector
|
1166 |
// bail if no selector or not document response
|
1167 |
-
if ( !selector || !
|
1168 |
-
|
1169 |
-
}
|
1170 |
// check if response has selector
|
1171 |
-
|
1172 |
-
if ( !nextElem )
|
1173 |
-
this.lastPageReached( response, path );
|
1174 |
-
}
|
1175 |
};
|
1176 |
|
1177 |
-
proto.lastPageReached = function(
|
1178 |
this.canLoad = false;
|
1179 |
-
this.dispatchEvent( 'last', null, [
|
1180 |
};
|
1181 |
|
1182 |
// ----- error ----- //
|
1183 |
|
1184 |
-
proto.onPageError = function( error, path ) {
|
1185 |
this.isLoading = false;
|
1186 |
this.canLoad = false;
|
1187 |
-
this.dispatchEvent( 'error', null, [ error, path ] );
|
1188 |
return error;
|
1189 |
};
|
1190 |
|
1191 |
// -------------------------- prefill -------------------------- //
|
1192 |
|
1193 |
InfiniteScroll.create.prefill = function() {
|
1194 |
-
if ( !this.options.prefill )
|
1195 |
-
|
1196 |
-
|
1197 |
-
var append = this.options.append;
|
1198 |
if ( !append ) {
|
1199 |
-
console.error(
|
1200 |
return;
|
1201 |
}
|
1202 |
this.updateMeasurements();
|
@@ -1209,7 +1037,7 @@ InfiniteScroll.create.prefill = function() {
|
|
1209 |
};
|
1210 |
|
1211 |
proto.prefill = function() {
|
1212 |
-
|
1213 |
this.isPrefilling = distance >= 0;
|
1214 |
if ( this.isPrefilling ) {
|
1215 |
this.log('prefill');
|
@@ -1233,90 +1061,48 @@ proto.stopPrefill = function() {
|
|
1233 |
this.off( 'append', this.prefill );
|
1234 |
};
|
1235 |
|
1236 |
-
// -------------------------- request -------------------------- //
|
1237 |
-
|
1238 |
-
function request( url, responseType, onLoad, onError, onLast ) {
|
1239 |
-
var req = new XMLHttpRequest();
|
1240 |
-
req.open( 'GET', url, true );
|
1241 |
-
// set responseType document to return DOM
|
1242 |
-
req.responseType = responseType || '';
|
1243 |
-
|
1244 |
-
// set X-Requested-With header to check that is ajax request
|
1245 |
-
req.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
|
1246 |
-
|
1247 |
-
req.onload = function() {
|
1248 |
-
if ( req.status == 200 ) {
|
1249 |
-
onLoad( req.response );
|
1250 |
-
} else if ( req.status == 204 ) {
|
1251 |
-
onLast( req.response );
|
1252 |
-
} else {
|
1253 |
-
// not 200 OK, error
|
1254 |
-
var error = new Error( req.statusText );
|
1255 |
-
onError( error );
|
1256 |
-
}
|
1257 |
-
};
|
1258 |
-
|
1259 |
-
// Handle network errors
|
1260 |
-
req.onerror = function() {
|
1261 |
-
var error = new Error( 'Network error requesting ' + url );
|
1262 |
-
onError( error );
|
1263 |
-
};
|
1264 |
-
|
1265 |
-
req.send();
|
1266 |
-
}
|
1267 |
-
|
1268 |
// -------------------------- -------------------------- //
|
1269 |
|
1270 |
return InfiniteScroll;
|
1271 |
|
1272 |
-
}));
|
1273 |
-
|
1274 |
// scroll-watch
|
1275 |
( function( window, factory ) {
|
1276 |
// universal module definition
|
1277 |
-
|
1278 |
-
if ( typeof define == 'function' && define.amd ) {
|
1279 |
-
// AMD
|
1280 |
-
define( 'infinite-scroll/js/scroll-watch',[
|
1281 |
-
'./core',
|
1282 |
-
'fizzy-ui-utils/utils',
|
1283 |
-
], function( InfiniteScroll, utils ) {
|
1284 |
-
return factory( window, InfiniteScroll, utils );
|
1285 |
-
});
|
1286 |
-
} else if ( typeof module == 'object' && module.exports ) {
|
1287 |
// CommonJS
|
1288 |
module.exports = factory(
|
1289 |
-
|
1290 |
-
|
1291 |
-
|
1292 |
);
|
1293 |
} else {
|
1294 |
// browser global
|
1295 |
factory(
|
1296 |
-
|
1297 |
-
|
1298 |
-
|
1299 |
);
|
1300 |
}
|
1301 |
|
1302 |
}( window, function factory( window, InfiniteScroll, utils ) {
|
1303 |
|
1304 |
-
|
1305 |
|
1306 |
// default options
|
1307 |
-
InfiniteScroll.defaults
|
1308 |
-
|
|
|
|
|
1309 |
|
1310 |
InfiniteScroll.create.scrollWatch = function() {
|
1311 |
// events
|
1312 |
this.pageScrollHandler = this.onPageScroll.bind( this );
|
1313 |
this.resizeHandler = this.onResize.bind( this );
|
1314 |
|
1315 |
-
|
1316 |
-
|
1317 |
-
if ( isEnable )
|
1318 |
-
this.enableScrollWatch();
|
1319 |
-
}
|
1320 |
};
|
1321 |
|
1322 |
InfiniteScroll.destroy.scrollWatch = function() {
|
@@ -1324,9 +1110,8 @@ InfiniteScroll.destroy.scrollWatch = function() {
|
|
1324 |
};
|
1325 |
|
1326 |
proto.enableScrollWatch = function() {
|
1327 |
-
if ( this.isScrollWatching )
|
1328 |
-
|
1329 |
-
}
|
1330 |
this.isScrollWatching = true;
|
1331 |
this.updateMeasurements();
|
1332 |
this.updateScroller();
|
@@ -1336,43 +1121,34 @@ proto.enableScrollWatch = function() {
|
|
1336 |
};
|
1337 |
|
1338 |
proto.disableScrollWatch = function() {
|
1339 |
-
if ( !this.isScrollWatching )
|
1340 |
-
|
1341 |
-
}
|
1342 |
this.bindScrollWatchEvents( false );
|
1343 |
delete this.isScrollWatching;
|
1344 |
};
|
1345 |
|
1346 |
proto.bindScrollWatchEvents = function( isBind ) {
|
1347 |
-
|
1348 |
this.scroller[ addRemove ]( 'scroll', this.pageScrollHandler );
|
1349 |
window[ addRemove ]( 'resize', this.resizeHandler );
|
1350 |
};
|
1351 |
|
1352 |
proto.onPageScroll = InfiniteScroll.throttle( function() {
|
1353 |
-
|
1354 |
if ( distance <= this.options.scrollThreshold ) {
|
1355 |
this.dispatchEvent('scrollThreshold');
|
1356 |
}
|
1357 |
-
});
|
1358 |
|
1359 |
proto.getBottomDistance = function() {
|
|
|
1360 |
if ( this.options.elementScroll ) {
|
1361 |
-
|
|
|
1362 |
} else {
|
1363 |
-
|
|
|
1364 |
}
|
1365 |
-
};
|
1366 |
-
|
1367 |
-
proto.getWindowBottomDistance = function() {
|
1368 |
-
var bottom = this.top + this.element.clientHeight;
|
1369 |
-
var scrollY = window.pageYOffset + this.windowHeight;
|
1370 |
-
return bottom - scrollY;
|
1371 |
-
};
|
1372 |
-
|
1373 |
-
proto.getElementBottomDistance = function() {
|
1374 |
-
var bottom = this.scroller.scrollHeight;
|
1375 |
-
var scrollY = this.scroller.scrollTop + this.scroller.clientHeight;
|
1376 |
return bottom - scrollY;
|
1377 |
};
|
1378 |
|
@@ -1386,60 +1162,51 @@ utils.debounceMethod( InfiniteScroll, 'onResize', 150 );
|
|
1386 |
|
1387 |
return InfiniteScroll;
|
1388 |
|
1389 |
-
}));
|
1390 |
-
|
1391 |
// history
|
1392 |
( function( window, factory ) {
|
1393 |
// universal module definition
|
1394 |
-
|
1395 |
-
if ( typeof define == 'function' && define.amd ) {
|
1396 |
-
// AMD
|
1397 |
-
define( 'infinite-scroll/js/history',[
|
1398 |
-
'./core',
|
1399 |
-
'fizzy-ui-utils/utils',
|
1400 |
-
], function( InfiniteScroll, utils ) {
|
1401 |
-
return factory( window, InfiniteScroll, utils );
|
1402 |
-
});
|
1403 |
-
} else if ( typeof module == 'object' && module.exports ) {
|
1404 |
// CommonJS
|
1405 |
module.exports = factory(
|
1406 |
-
|
1407 |
-
|
1408 |
-
|
1409 |
);
|
1410 |
} else {
|
1411 |
// browser global
|
1412 |
factory(
|
1413 |
-
|
1414 |
-
|
1415 |
-
|
1416 |
);
|
1417 |
}
|
1418 |
|
1419 |
}( window, function factory( window, InfiniteScroll, utils ) {
|
1420 |
|
1421 |
-
|
1422 |
|
1423 |
-
InfiniteScroll.defaults
|
1424 |
-
|
|
|
|
|
1425 |
|
1426 |
-
|
1427 |
|
1428 |
// ----- create/destroy ----- //
|
1429 |
|
1430 |
InfiniteScroll.create.history = function() {
|
1431 |
-
if ( !this.options.history )
|
1432 |
-
|
1433 |
-
}
|
1434 |
// check for same origin
|
1435 |
link.href = this.getAbsolutePath();
|
1436 |
-
// MS Edge does not have origin on link
|
1437 |
-
|
1438 |
-
|
|
|
1439 |
if ( !isSameOrigin ) {
|
1440 |
console.error( '[InfiniteScroll] cannot set history with different origin: ' +
|
1441 |
-
link.origin
|
1442 |
-
' . History behavior disabled.' );
|
1443 |
return;
|
1444 |
}
|
1445 |
|
@@ -1456,14 +1223,14 @@ proto.createHistoryAppend = function() {
|
|
1456 |
this.updateScroller();
|
1457 |
// array of scroll positions of appended pages
|
1458 |
this.scrollPages = [
|
|
|
1459 |
{
|
1460 |
-
// first page
|
1461 |
top: 0,
|
1462 |
path: location.href,
|
1463 |
title: document.title,
|
1464 |
-
}
|
1465 |
];
|
1466 |
-
this.
|
1467 |
// events
|
1468 |
this.scrollHistoryHandler = this.onScrollHistory.bind( this );
|
1469 |
this.unloadHandler = this.onUnload.bind( this );
|
@@ -1473,7 +1240,7 @@ proto.createHistoryAppend = function() {
|
|
1473 |
};
|
1474 |
|
1475 |
proto.bindHistoryAppendEvents = function( isBind ) {
|
1476 |
-
|
1477 |
this.scroller[ addRemove ]( 'scroll', this.scrollHistoryHandler );
|
1478 |
window[ addRemove ]( 'unload', this.unloadHandler );
|
1479 |
};
|
@@ -1484,7 +1251,7 @@ proto.createHistoryPageLoad = function() {
|
|
1484 |
|
1485 |
InfiniteScroll.destroy.history =
|
1486 |
proto.destroyHistory = function() {
|
1487 |
-
|
1488 |
if ( isHistoryAppend ) {
|
1489 |
this.bindHistoryAppendEvents( false );
|
1490 |
}
|
@@ -1494,11 +1261,10 @@ proto.destroyHistory = function() {
|
|
1494 |
|
1495 |
proto.onAppendHistory = function( response, path, items ) {
|
1496 |
// do not proceed if no items. #779
|
1497 |
-
if ( !items || !items.length )
|
1498 |
-
|
1499 |
-
|
1500 |
-
|
1501 |
-
var elemScrollY = this.getElementScrollY( firstItem );
|
1502 |
// resolve path
|
1503 |
link.href = path;
|
1504 |
// add page data to hash
|
@@ -1511,77 +1277,59 @@ proto.onAppendHistory = function( response, path, items ) {
|
|
1511 |
|
1512 |
proto.getElementScrollY = function( elem ) {
|
1513 |
if ( this.options.elementScroll ) {
|
1514 |
-
return
|
1515 |
} else {
|
1516 |
-
|
|
|
1517 |
}
|
1518 |
};
|
1519 |
|
1520 |
-
proto.getElementWindowScrollY = function( elem ) {
|
1521 |
-
var rect = elem.getBoundingClientRect();
|
1522 |
-
return rect.top + window.pageYOffset;
|
1523 |
-
};
|
1524 |
-
|
1525 |
-
// wow, stupid name
|
1526 |
-
proto.getElementElementScrollY = function( elem ) {
|
1527 |
-
return elem.offsetTop - this.top;
|
1528 |
-
};
|
1529 |
-
|
1530 |
proto.onScrollHistory = function() {
|
1531 |
// cycle through positions, find biggest without going over
|
1532 |
-
|
1533 |
-
var pageIndex, page;
|
1534 |
-
for ( var i=0; i < this.scrollPages.length; i++ ) {
|
1535 |
-
var scrollPage = this.scrollPages[i];
|
1536 |
-
if ( scrollPage.top >= scrollViewY ) {
|
1537 |
-
break;
|
1538 |
-
}
|
1539 |
-
pageIndex = i;
|
1540 |
-
page = scrollPage;
|
1541 |
-
}
|
1542 |
// set history if changed
|
1543 |
-
if (
|
1544 |
-
this.
|
1545 |
-
this.setHistory(
|
1546 |
}
|
1547 |
};
|
1548 |
|
1549 |
utils.debounceMethod( InfiniteScroll, 'onScrollHistory', 150 );
|
1550 |
|
1551 |
-
proto.
|
|
|
1552 |
if ( this.options.elementScroll ) {
|
1553 |
-
|
1554 |
} else {
|
1555 |
-
|
1556 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1557 |
};
|
1558 |
|
1559 |
proto.setHistory = function( title, path ) {
|
1560 |
-
|
1561 |
-
|
1562 |
-
if ( !historyMethod )
|
1563 |
-
return;
|
1564 |
-
}
|
1565 |
|
1566 |
history[ optHistory + 'State' ]( null, title, path );
|
1567 |
-
|
1568 |
-
if ( this.options.historyTitle ) {
|
1569 |
-
document.title = title;
|
1570 |
-
}
|
1571 |
-
|
1572 |
this.dispatchEvent( 'history', null, [ title, path ] );
|
1573 |
};
|
1574 |
|
1575 |
// scroll to top to prevent initial scroll-reset after page refresh
|
1576 |
// https://stackoverflow.com/a/18633915/182183
|
1577 |
proto.onUnload = function() {
|
1578 |
-
|
1579 |
-
|
1580 |
-
return;
|
1581 |
-
}
|
1582 |
// calculate where scroll position would be on refresh
|
1583 |
-
|
1584 |
-
var scrollY = window.pageYOffset - scrollPage.top + this.top;
|
1585 |
// disable scroll event before setting scroll #679
|
1586 |
this.destroyHistory();
|
1587 |
scrollTo( 0, scrollY );
|
@@ -1598,87 +1346,79 @@ proto.onPageLoadHistory = function( response, path ) {
|
|
1598 |
|
1599 |
return InfiniteScroll;
|
1600 |
|
1601 |
-
}));
|
1602 |
-
|
1603 |
// button
|
1604 |
( function( window, factory ) {
|
1605 |
// universal module definition
|
1606 |
-
|
1607 |
-
if ( typeof define == 'function' && define.amd ) {
|
1608 |
-
// AMD
|
1609 |
-
define( 'infinite-scroll/js/button',[
|
1610 |
-
'./core',
|
1611 |
-
'fizzy-ui-utils/utils',
|
1612 |
-
], function( InfiniteScroll, utils ) {
|
1613 |
-
return factory( window, InfiniteScroll, utils );
|
1614 |
-
});
|
1615 |
-
} else if ( typeof module == 'object' && module.exports ) {
|
1616 |
// CommonJS
|
1617 |
module.exports = factory(
|
1618 |
-
|
1619 |
-
|
1620 |
-
|
1621 |
);
|
1622 |
} else {
|
1623 |
// browser global
|
1624 |
factory(
|
1625 |
-
|
1626 |
-
|
1627 |
-
|
1628 |
);
|
1629 |
}
|
1630 |
|
1631 |
}( window, function factory( window, InfiniteScroll, utils ) {
|
1632 |
|
1633 |
-
//
|
1634 |
|
1635 |
-
|
1636 |
-
|
1637 |
-
|
1638 |
-
this.
|
1639 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1640 |
}
|
1641 |
-
};
|
1642 |
|
1643 |
-
|
1644 |
-
|
1645 |
-
this.
|
1646 |
}
|
1647 |
-
};
|
1648 |
|
1649 |
-
|
|
|
|
|
1650 |
|
1651 |
-
|
1652 |
-
|
1653 |
-
|
1654 |
-
// events
|
1655 |
-
this.clickHandler = this.onClick.bind( this );
|
1656 |
-
this.element.addEventListener( 'click', this.clickHandler );
|
1657 |
-
infScroll.on( 'request', this.disable.bind( this ) );
|
1658 |
-
infScroll.on( 'load', this.enable.bind( this ) );
|
1659 |
-
infScroll.on( 'error', this.hide.bind( this ) );
|
1660 |
-
infScroll.on( 'last', this.hide.bind( this ) );
|
1661 |
-
}
|
1662 |
|
1663 |
-
|
1664 |
-
|
1665 |
-
|
1666 |
-
};
|
1667 |
|
1668 |
-
|
1669 |
-
|
1670 |
-
}
|
1671 |
|
1672 |
-
|
1673 |
-
|
1674 |
-
|
1675 |
|
1676 |
-
|
1677 |
-
|
|
|
|
|
|
|
|
|
|
|
1678 |
};
|
1679 |
|
1680 |
-
|
1681 |
-
this.
|
1682 |
};
|
1683 |
|
1684 |
// -------------------------- -------------------------- //
|
@@ -1687,47 +1427,36 @@ InfiniteScroll.Button = InfiniteScrollButton;
|
|
1687 |
|
1688 |
return InfiniteScroll;
|
1689 |
|
1690 |
-
}));
|
1691 |
-
|
1692 |
// status
|
1693 |
( function( window, factory ) {
|
1694 |
// universal module definition
|
1695 |
-
|
1696 |
-
if ( typeof define == 'function' && define.amd ) {
|
1697 |
-
// AMD
|
1698 |
-
define( 'infinite-scroll/js/status',[
|
1699 |
-
'./core',
|
1700 |
-
'fizzy-ui-utils/utils',
|
1701 |
-
], function( InfiniteScroll, utils ) {
|
1702 |
-
return factory( window, InfiniteScroll, utils );
|
1703 |
-
});
|
1704 |
-
} else if ( typeof module == 'object' && module.exports ) {
|
1705 |
// CommonJS
|
1706 |
module.exports = factory(
|
1707 |
-
|
1708 |
-
|
1709 |
-
|
1710 |
);
|
1711 |
} else {
|
1712 |
// browser global
|
1713 |
factory(
|
1714 |
-
|
1715 |
-
|
1716 |
-
|
1717 |
);
|
1718 |
}
|
1719 |
|
1720 |
-
}( window, function factory( window, InfiniteScroll, utils ) {
|
1721 |
|
1722 |
-
|
1723 |
|
1724 |
// InfiniteScroll.defaults.status = null;
|
1725 |
|
1726 |
InfiniteScroll.create.status = function() {
|
1727 |
-
|
1728 |
-
if ( !statusElem )
|
1729 |
-
|
1730 |
-
}
|
1731 |
// elements
|
1732 |
this.statusElement = statusElem;
|
1733 |
this.statusEventElements = {
|
@@ -1743,7 +1472,7 @@ InfiniteScroll.create.status = function() {
|
|
1743 |
};
|
1744 |
|
1745 |
proto.bindHideStatus = function( bindMethod ) {
|
1746 |
-
|
1747 |
this[ bindMethod ]( hideEvent, this.hideAllStatus );
|
1748 |
};
|
1749 |
|
@@ -1764,7 +1493,7 @@ proto.showLastStatus = function() {
|
|
1764 |
proto.showStatus = function( eventName ) {
|
1765 |
show( this.statusElement );
|
1766 |
this.hideStatusEventElements();
|
1767 |
-
|
1768 |
show( eventElem );
|
1769 |
};
|
1770 |
|
@@ -1774,8 +1503,8 @@ proto.hideAllStatus = function() {
|
|
1774 |
};
|
1775 |
|
1776 |
proto.hideStatusEventElements = function() {
|
1777 |
-
for (
|
1778 |
-
|
1779 |
hide( eventElem );
|
1780 |
}
|
1781 |
};
|
@@ -1800,48 +1529,7 @@ function setDisplay( elem, value ) {
|
|
1800 |
|
1801 |
return InfiniteScroll;
|
1802 |
|
1803 |
-
}));
|
1804 |
-
|
1805 |
-
/*!
|
1806 |
-
* Infinite Scroll v3.0.6
|
1807 |
-
* Automatically add next page
|
1808 |
-
*
|
1809 |
-
* Licensed GPLv3 for open source use
|
1810 |
-
* or Infinite Scroll Commercial License for commercial use
|
1811 |
-
*
|
1812 |
-
* https://infinite-scroll.com
|
1813 |
-
* Copyright 2018 Metafizzy
|
1814 |
-
*/
|
1815 |
-
|
1816 |
-
( function( window, factory ) {
|
1817 |
-
// universal module definition
|
1818 |
-
/* globals define, module, require */
|
1819 |
-
if ( typeof define == 'function' && define.amd ) {
|
1820 |
-
// AMD
|
1821 |
-
define( [
|
1822 |
-
'infinite-scroll/js/core',
|
1823 |
-
'infinite-scroll/js/page-load',
|
1824 |
-
'infinite-scroll/js/scroll-watch',
|
1825 |
-
'infinite-scroll/js/history',
|
1826 |
-
'infinite-scroll/js/button',
|
1827 |
-
'infinite-scroll/js/status',
|
1828 |
-
], factory );
|
1829 |
-
} else if ( typeof module == 'object' && module.exports ) {
|
1830 |
-
// CommonJS
|
1831 |
-
module.exports = factory(
|
1832 |
-
require('./core'),
|
1833 |
-
require('./page-load'),
|
1834 |
-
require('./scroll-watch'),
|
1835 |
-
require('./history'),
|
1836 |
-
require('./button'),
|
1837 |
-
require('./status')
|
1838 |
-
);
|
1839 |
-
}
|
1840 |
-
|
1841 |
-
})( window, function factory( InfiniteScroll ) {
|
1842 |
-
return InfiniteScroll;
|
1843 |
-
});
|
1844 |
-
|
1845 |
/*!
|
1846 |
* imagesLoaded v4.1.4
|
1847 |
* JavaScript is all like "You images are done yet or what?"
|
@@ -1855,7 +1543,7 @@ return InfiniteScroll;
|
|
1855 |
|
1856 |
if ( typeof define == 'function' && define.amd ) {
|
1857 |
// AMD
|
1858 |
-
define(
|
1859 |
'ev-emitter/ev-emitter'
|
1860 |
], function( EvEmitter ) {
|
1861 |
return factory( window, EvEmitter );
|
@@ -1880,7 +1568,7 @@ return InfiniteScroll;
|
|
1880 |
|
1881 |
function factory( window, EvEmitter ) {
|
1882 |
|
1883 |
-
|
1884 |
|
1885 |
var $ = window.jQuery;
|
1886 |
var console = window.console;
|
@@ -2219,4 +1907,3 @@ ImagesLoaded.makeJQueryPlugin();
|
|
2219 |
return ImagesLoaded;
|
2220 |
|
2221 |
});
|
2222 |
-
|
1 |
/*!
|
2 |
+
* Infinite Scroll PACKAGED v4.0.1
|
3 |
* Automatically add next page
|
4 |
*
|
5 |
* Licensed GPLv3 for open source use
|
6 |
* or Infinite Scroll Commercial License for commercial use
|
7 |
*
|
8 |
* https://infinite-scroll.com
|
9 |
+
* Copyright 2018-2020 Metafizzy
|
10 |
*/
|
11 |
|
12 |
/**
|
13 |
* Bridget makes jQuery widgets
|
14 |
+
* v3.0.0
|
15 |
* MIT license
|
16 |
*/
|
17 |
|
|
|
|
|
18 |
( function( window, factory ) {
|
19 |
+
// module definition
|
20 |
+
if ( typeof module == 'object' && module.exports ) {
|
21 |
+
// CommonJS
|
22 |
+
module.exports = factory(
|
23 |
+
window,
|
24 |
+
require('jquery'),
|
25 |
+
);
|
26 |
+
} else {
|
27 |
+
// browser global
|
28 |
+
window.jQueryBridget = factory(
|
29 |
+
window,
|
30 |
+
window.jQuery,
|
31 |
+
);
|
32 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
|
34 |
}( window, function factory( window, jQuery ) {
|
|
|
35 |
|
36 |
// ----- utils ----- //
|
37 |
|
|
|
|
|
38 |
// helper function for logging errors
|
39 |
// $.error breaks jQuery chaining
|
40 |
+
let console = window.console;
|
41 |
+
let logError = typeof console == 'undefined' ? function() {} :
|
42 |
function( message ) {
|
43 |
console.error( message );
|
44 |
};
|
55 |
if ( !PluginClass.prototype.option ) {
|
56 |
// option setter
|
57 |
PluginClass.prototype.option = function( opts ) {
|
58 |
+
if ( !opts ) return;
|
59 |
+
|
60 |
+
this.options = Object.assign( this.options || {}, opts );
|
|
|
|
|
61 |
};
|
62 |
}
|
63 |
|
64 |
// make jQuery plugin
|
65 |
+
$.fn[ namespace ] = function( arg0, ...args ) {
|
66 |
if ( typeof arg0 == 'string' ) {
|
67 |
// method call $().plugin( 'methodName', { options } )
|
|
|
|
|
68 |
return methodCall( this, arg0, args );
|
69 |
}
|
70 |
// just $().plugin({ options })
|
74 |
|
75 |
// $().plugin('methodName')
|
76 |
function methodCall( $elems, methodName, args ) {
|
77 |
+
let returnValue;
|
78 |
+
let pluginMethodStr = `$().${namespace}("${methodName}")`;
|
79 |
|
80 |
$elems.each( function( i, elem ) {
|
81 |
// get instance
|
82 |
+
let instance = $.data( elem, namespace );
|
83 |
if ( !instance ) {
|
84 |
+
logError( `${namespace} not initialized.` +
|
85 |
+
` Cannot call method ${pluginMethodStr}` );
|
86 |
return;
|
87 |
}
|
88 |
|
89 |
+
let method = instance[ methodName ];
|
90 |
+
if ( !method || methodName.charAt( 0 ) == '_' ) {
|
91 |
+
logError(`${pluginMethodStr} is not a valid method`);
|
92 |
return;
|
93 |
}
|
94 |
|
95 |
// apply method, get return value
|
96 |
+
let value = method.apply( instance, args );
|
97 |
// set return value if value is returned, use only first value
|
98 |
returnValue = returnValue === undefined ? value : returnValue;
|
99 |
+
} );
|
100 |
|
101 |
return returnValue !== undefined ? returnValue : $elems;
|
102 |
}
|
103 |
|
104 |
function plainCall( $elems, options ) {
|
105 |
$elems.each( function( i, elem ) {
|
106 |
+
let instance = $.data( elem, namespace );
|
107 |
if ( instance ) {
|
108 |
// set options & init
|
109 |
instance.option( options );
|
113 |
instance = new PluginClass( elem, options );
|
114 |
$.data( elem, namespace, instance );
|
115 |
}
|
116 |
+
} );
|
117 |
}
|
118 |
|
|
|
|
|
119 |
}
|
120 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
// ----- ----- //
|
122 |
|
123 |
return jQueryBridget;
|
124 |
|
125 |
+
} ) );
|
|
|
126 |
/**
|
127 |
+
* EvEmitter v2.0.0
|
128 |
* Lil' event emitter
|
129 |
* MIT License
|
130 |
*/
|
131 |
|
|
|
|
|
132 |
( function( global, factory ) {
|
133 |
// universal module definition
|
134 |
+
if ( typeof module == 'object' && module.exports ) {
|
|
|
|
|
|
|
|
|
135 |
// CommonJS - Browserify, Webpack
|
136 |
module.exports = factory();
|
137 |
} else {
|
141 |
|
142 |
}( typeof window != 'undefined' ? window : this, function() {
|
143 |
|
|
|
|
|
144 |
function EvEmitter() {}
|
145 |
|
146 |
+
let proto = EvEmitter.prototype;
|
147 |
|
148 |
proto.on = function( eventName, listener ) {
|
149 |
+
if ( !eventName || !listener ) return this;
|
150 |
+
|
|
|
151 |
// set events hash
|
152 |
+
let events = this._events = this._events || {};
|
153 |
// set listeners array
|
154 |
+
let listeners = events[ eventName ] = events[ eventName ] || [];
|
155 |
// only add once
|
156 |
+
if ( !listeners.includes( listener ) ) {
|
157 |
listeners.push( listener );
|
158 |
}
|
159 |
|
161 |
};
|
162 |
|
163 |
proto.once = function( eventName, listener ) {
|
164 |
+
if ( !eventName || !listener ) return this;
|
165 |
+
|
|
|
166 |
// add event
|
167 |
this.on( eventName, listener );
|
168 |
// set once flag
|
169 |
// set onceEvents hash
|
170 |
+
let onceEvents = this._onceEvents = this._onceEvents || {};
|
171 |
// set onceListeners object
|
172 |
+
let onceListeners = onceEvents[ eventName ] = onceEvents[ eventName ] || {};
|
173 |
// set flag
|
174 |
onceListeners[ listener ] = true;
|
175 |
|
177 |
};
|
178 |
|
179 |
proto.off = function( eventName, listener ) {
|
180 |
+
let listeners = this._events && this._events[ eventName ];
|
181 |
+
if ( !listeners || !listeners.length ) return this;
|
182 |
+
|
183 |
+
let index = listeners.indexOf( listener );
|
|
|
184 |
if ( index != -1 ) {
|
185 |
listeners.splice( index, 1 );
|
186 |
}
|
189 |
};
|
190 |
|
191 |
proto.emitEvent = function( eventName, args ) {
|
192 |
+
let listeners = this._events && this._events[ eventName ];
|
193 |
+
if ( !listeners || !listeners.length ) return this;
|
194 |
+
|
|
|
195 |
// copy over to avoid interference if .off() in listener
|
196 |
+
listeners = listeners.slice( 0 );
|
197 |
args = args || [];
|
198 |
// once stuff
|
199 |
+
let onceListeners = this._onceEvents && this._onceEvents[ eventName ];
|
200 |
|
201 |
+
for ( let listener of listeners ) {
|
202 |
+
let isOnce = onceListeners && onceListeners[ listener ];
|
|
|
203 |
if ( isOnce ) {
|
204 |
// remove listener
|
205 |
// remove before trigger to prevent recursion
|
217 |
proto.allOff = function() {
|
218 |
delete this._events;
|
219 |
delete this._onceEvents;
|
220 |
+
return this;
|
221 |
};
|
222 |
|
223 |
return EvEmitter;
|
224 |
|
225 |
+
} ) );
|
|
|
226 |
/**
|
227 |
+
* Fizzy UI utils v3.0.0
|
|
|
228 |
* MIT license
|
229 |
*/
|
230 |
|
231 |
+
( function( global, factory ) {
|
|
|
|
|
|
|
|
|
232 |
// universal module definition
|
233 |
+
if ( typeof module == 'object' && module.exports ) {
|
|
|
|
|
|
|
234 |
// CommonJS
|
235 |
+
module.exports = factory( global );
|
236 |
} else {
|
237 |
// browser global
|
238 |
+
global.fizzyUIUtils = factory( global );
|
239 |
}
|
240 |
|
241 |
+
}( this, function factory( global ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
242 |
|
243 |
+
let utils = {};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
244 |
|
245 |
// ----- extend ----- //
|
246 |
|
247 |
// extends objects
|
248 |
utils.extend = function( a, b ) {
|
249 |
+
return Object.assign( a, b );
|
|
|
|
|
|
|
250 |
};
|
251 |
|
252 |
// ----- modulo ----- //
|
257 |
|
258 |
// ----- makeArray ----- //
|
259 |
|
|
|
|
|
260 |
// turn element or nodeList into an array
|
261 |
utils.makeArray = function( obj ) {
|
262 |
+
// use object if already an array
|
263 |
+
if ( Array.isArray( obj ) ) return obj;
|
264 |
+
|
|
|
265 |
// return empty array if undefined or null. #6
|
266 |
+
if ( obj === null || obj === undefined ) return [];
|
|
|
|
|
267 |
|
268 |
+
let isArrayLike = typeof obj == 'object' && typeof obj.length == 'number';
|
269 |
+
// convert nodeList to array
|
270 |
+
if ( isArrayLike ) return [ ...obj ];
|
|
|
|
|
271 |
|
272 |
// array of single index
|
273 |
return [ obj ];
|
276 |
// ----- removeFrom ----- //
|
277 |
|
278 |
utils.removeFrom = function( ary, obj ) {
|
279 |
+
let index = ary.indexOf( obj );
|
280 |
if ( index != -1 ) {
|
281 |
ary.splice( index, 1 );
|
282 |
}
|
287 |
utils.getParent = function( elem, selector ) {
|
288 |
while ( elem.parentNode && elem != document.body ) {
|
289 |
elem = elem.parentNode;
|
290 |
+
if ( elem.matches( selector ) ) return elem;
|
|
|
|
|
291 |
}
|
292 |
};
|
293 |
|
305 |
|
306 |
// enable .ontype to trigger from .addEventListener( elem, 'type' )
|
307 |
utils.handleEvent = function( event ) {
|
308 |
+
let method = 'on' + event.type;
|
309 |
if ( this[ method ] ) {
|
310 |
this[ method ]( event );
|
311 |
}
|
316 |
utils.filterFindElements = function( elems, selector ) {
|
317 |
// make array of elems
|
318 |
elems = utils.makeArray( elems );
|
|
|
319 |
|
320 |
+
return elems
|
321 |
// check that elem is an actual element
|
322 |
+
.filter( ( elem ) => elem instanceof HTMLElement )
|
323 |
+
.reduce( ( ffElems, elem ) => {
|
324 |
+
// add elem if no selector
|
325 |
+
if ( !selector ) {
|
326 |
+
ffElems.push( elem );
|
327 |
+
return ffElems;
|
328 |
+
}
|
329 |
+
// filter & find items if we have a selector
|
330 |
+
// filter
|
331 |
+
if ( elem.matches( selector ) ) {
|
332 |
+
ffElems.push( elem );
|
333 |
+
}
|
334 |
+
// find children
|
335 |
+
let childElems = elem.querySelectorAll( selector );
|
336 |
+
// concat childElems to filterFound array
|
337 |
+
ffElems = ffElems.concat( ...childElems );
|
338 |
+
return ffElems;
|
339 |
+
}, [] );
|
|
|
|
|
|
|
|
|
340 |
};
|
341 |
|
342 |
// ----- debounceMethod ----- //
|
344 |
utils.debounceMethod = function( _class, methodName, threshold ) {
|
345 |
threshold = threshold || 100;
|
346 |
// original method
|
347 |
+
let method = _class.prototype[ methodName ];
|
348 |
+
let timeoutName = methodName + 'Timeout';
|
349 |
|
350 |
_class.prototype[ methodName ] = function() {
|
351 |
+
clearTimeout( this[ timeoutName ] );
|
352 |
+
|
353 |
+
let args = arguments;
|
354 |
+
this[ timeoutName ] = setTimeout( () => {
|
355 |
+
method.apply( this, args );
|
356 |
+
delete this[ timeoutName ];
|
|
|
|
|
357 |
}, threshold );
|
358 |
};
|
359 |
};
|
360 |
|
361 |
// ----- docReady ----- //
|
362 |
|
363 |
+
utils.docReady = function( onDocReady ) {
|
364 |
+
let readyState = document.readyState;
|
365 |
if ( readyState == 'complete' || readyState == 'interactive' ) {
|
366 |
// do async to allow for other scripts to run. metafizzy/flickity#441
|
367 |
+
setTimeout( onDocReady );
|
368 |
} else {
|
369 |
+
document.addEventListener( 'DOMContentLoaded', onDocReady );
|
370 |
}
|
371 |
};
|
372 |
|
373 |
// ----- htmlInit ----- //
|
374 |
|
375 |
+
// http://bit.ly/3oYLusc
|
376 |
utils.toDashed = function( str ) {
|
377 |
return str.replace( /(.)([A-Z])/g, function( match, $1, $2 ) {
|
378 |
return $1 + '-' + $2;
|
379 |
+
} ).toLowerCase();
|
380 |
};
|
381 |
|
382 |
+
let console = global.console;
|
383 |
+
|
384 |
+
// allow user to initialize classes via [data-namespace] or .js-namespace class
|
385 |
+
// htmlInit( Widget, 'widgetName' )
|
386 |
+
// options are parsed from data-namespace-options
|
|
|
387 |
utils.htmlInit = function( WidgetClass, namespace ) {
|
388 |
utils.docReady( function() {
|
389 |
+
let dashedNamespace = utils.toDashed( namespace );
|
390 |
+
let dataAttr = 'data-' + dashedNamespace;
|
391 |
+
let dataAttrElems = document.querySelectorAll( `[${dataAttr}]` );
|
392 |
+
let jQuery = global.jQuery;
|
393 |
+
|
394 |
+
[ ...dataAttrElems ].forEach( ( elem ) => {
|
395 |
+
let attr = elem.getAttribute( dataAttr );
|
396 |
+
let options;
|
|
|
|
|
|
|
|
|
|
|
397 |
try {
|
398 |
options = attr && JSON.parse( attr );
|
399 |
} catch ( error ) {
|
400 |
// log error, do not initialize
|
401 |
if ( console ) {
|
402 |
+
console.error( `Error parsing ${dataAttr} on ${elem.className}: ${error}` );
|
|
|
403 |
}
|
404 |
return;
|
405 |
}
|
406 |
// initialize
|
407 |
+
let instance = new WidgetClass( elem, options );
|
408 |
// make available via $().data('namespace')
|
409 |
if ( jQuery ) {
|
410 |
jQuery.data( elem, namespace, instance );
|
411 |
}
|
412 |
+
} );
|
413 |
|
414 |
+
} );
|
415 |
};
|
416 |
|
417 |
// ----- ----- //
|
418 |
|
419 |
return utils;
|
420 |
|
421 |
+
} ) );
|
|
|
422 |
// core
|
423 |
( function( window, factory ) {
|
424 |
// universal module definition
|
425 |
+
if ( typeof module == 'object' && module.exports ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
426 |
// CommonJS
|
427 |
module.exports = factory(
|
428 |
+
window,
|
429 |
+
require('ev-emitter'),
|
430 |
+
require('fizzy-ui-utils'),
|
431 |
);
|
432 |
} else {
|
433 |
// browser global
|
434 |
window.InfiniteScroll = factory(
|
435 |
+
window,
|
436 |
+
window.EvEmitter,
|
437 |
+
window.fizzyUIUtils,
|
438 |
);
|
439 |
}
|
440 |
|
441 |
}( window, function factory( window, EvEmitter, utils ) {
|
442 |
|
443 |
+
let jQuery = window.jQuery;
|
444 |
// internal store of all InfiniteScroll intances
|
445 |
+
let instances = {};
|
446 |
|
447 |
function InfiniteScroll( element, options ) {
|
448 |
+
let queryElem = utils.getQueryElement( element );
|
449 |
|
450 |
if ( !queryElem ) {
|
451 |
console.error( 'Bad element for InfiniteScroll: ' + ( queryElem || element ) );
|
454 |
element = queryElem;
|
455 |
// do not initialize twice on same element
|
456 |
if ( element.infiniteScrollGUID ) {
|
457 |
+
let instance = instances[ element.infiniteScrollGUID ];
|
458 |
instance.option( options );
|
459 |
return instance;
|
460 |
}
|
461 |
|
462 |
this.element = element;
|
463 |
// options
|
464 |
+
this.options = { ...InfiniteScroll.defaults };
|
465 |
this.option( options );
|
466 |
// add jQuery
|
467 |
if ( jQuery ) {
|
482 |
InfiniteScroll.create = {};
|
483 |
InfiniteScroll.destroy = {};
|
484 |
|
485 |
+
let proto = InfiniteScroll.prototype;
|
486 |
// inherit EvEmitter
|
487 |
+
Object.assign( proto, EvEmitter.prototype );
|
488 |
|
489 |
// -------------------------- -------------------------- //
|
490 |
|
491 |
// globally unique identifiers
|
492 |
+
let GUID = 0;
|
493 |
|
494 |
proto.create = function() {
|
495 |
// create core
|
496 |
// add id for InfiniteScroll.data
|
497 |
+
let id = this.guid = ++GUID;
|
498 |
this.element.infiniteScrollGUID = id; // expando
|
499 |
instances[ id ] = this; // associate via id
|
500 |
// properties
|
502 |
this.loadCount = 0;
|
503 |
this.updateGetPath();
|
504 |
// bail if getPath not set, or returns falsey #776
|
505 |
+
let hasPath = this.getPath && this.getPath();
|
506 |
if ( !hasPath ) {
|
507 |
console.error('Disabling InfiniteScroll');
|
508 |
return;
|
511 |
this.log( 'initialized', [ this.element.className ] );
|
512 |
this.callOnInit();
|
513 |
// create features
|
514 |
+
for ( let method in InfiniteScroll.create ) {
|
515 |
InfiniteScroll.create[ method ].call( this );
|
516 |
}
|
517 |
};
|
518 |
|
519 |
proto.option = function( opts ) {
|
520 |
+
Object.assign( this.options, opts );
|
521 |
};
|
522 |
|
523 |
// call onInit option, used for binding events on init
|
524 |
proto.callOnInit = function() {
|
525 |
+
let onInit = this.options.onInit;
|
526 |
if ( onInit ) {
|
527 |
onInit.call( this, this );
|
528 |
}
|
532 |
|
533 |
proto.dispatchEvent = function( type, event, args ) {
|
534 |
this.log( type, args );
|
535 |
+
let emitArgs = event ? [ event ].concat( args ) : args;
|
536 |
this.emitEvent( type, emitArgs );
|
537 |
// trigger jQuery event
|
538 |
if ( !jQuery || !this.$element ) {
|
540 |
}
|
541 |
// namespace jQuery event
|
542 |
type += '.infiniteScroll';
|
543 |
+
let $event = type;
|
544 |
if ( event ) {
|
545 |
// create jQuery event
|
546 |
+
/* eslint-disable-next-line new-cap */
|
547 |
+
let jQEvent = jQuery.Event( event );
|
548 |
jQEvent.type = type;
|
549 |
$event = jQEvent;
|
550 |
}
|
551 |
this.$element.trigger( $event, args );
|
552 |
};
|
553 |
|
554 |
+
let loggers = {
|
555 |
+
initialized: ( className ) => `on ${className}`,
|
556 |
+
request: ( path ) => `URL: ${path}`,
|
557 |
+
load: ( response, path ) => `${response.title || ''}. URL: ${path}`,
|
558 |
+
error: ( error, path ) => `${error}. URL: ${path}`,
|
559 |
+
append: ( response, path, items ) => `${items.length} items. URL: ${path}`,
|
560 |
+
last: ( response, path ) => `URL: ${path}`,
|
561 |
+
history: ( title, path ) => `URL: ${path}`,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
562 |
pageIndex: function( index, origin ) {
|
563 |
+
return `current page determined to be: ${index} from ${origin}`;
|
564 |
},
|
565 |
};
|
566 |
|
567 |
// log events
|
568 |
proto.log = function( type, args ) {
|
569 |
+
if ( !this.options.debug ) return;
|
570 |
+
|
571 |
+
let message = `[InfiniteScroll] ${type}`;
|
572 |
+
let logger = loggers[ type ];
|
573 |
+
if ( logger ) message += '. ' + logger.apply( this, args );
|
|
|
|
|
|
|
574 |
console.log( message );
|
575 |
};
|
576 |
|
578 |
|
579 |
proto.updateMeasurements = function() {
|
580 |
this.windowHeight = window.innerHeight;
|
581 |
+
let rect = this.element.getBoundingClientRect();
|
582 |
+
this.top = rect.top + window.scrollY;
|
583 |
};
|
584 |
|
585 |
proto.updateScroller = function() {
|
586 |
+
let elementScroll = this.options.elementScroll;
|
587 |
if ( !elementScroll ) {
|
588 |
// default, use window
|
589 |
this.scroller = window;
|
593 |
this.scroller = elementScroll === true ? this.element :
|
594 |
utils.getQueryElement( elementScroll );
|
595 |
if ( !this.scroller ) {
|
596 |
+
throw new Error(`Unable to find elementScroll: ${elementScroll}`);
|
597 |
}
|
598 |
};
|
599 |
|
600 |
// -------------------------- page path -------------------------- //
|
601 |
|
602 |
proto.updateGetPath = function() {
|
603 |
+
let optPath = this.options.path;
|
604 |
if ( !optPath ) {
|
605 |
+
console.error(`InfiniteScroll path option required. Set as: ${optPath}`);
|
606 |
return;
|
607 |
}
|
608 |
// function
|
609 |
+
let type = typeof optPath;
|
610 |
if ( type == 'function' ) {
|
611 |
this.getPath = optPath;
|
612 |
return;
|
613 |
}
|
614 |
// template string: '/pages/{{#}}.html'
|
615 |
+
let templateMatch = type == 'string' && optPath.match('{{#}}');
|
616 |
if ( templateMatch ) {
|
617 |
this.updateGetPathTemplate( optPath );
|
618 |
return;
|
623 |
|
624 |
proto.updateGetPathTemplate = function( optPath ) {
|
625 |
// set getPath with template string
|
626 |
+
this.getPath = () => {
|
627 |
+
let nextIndex = this.pageIndex + 1;
|
628 |
return optPath.replace( '{{#}}', nextIndex );
|
629 |
+
};
|
630 |
// get pageIndex from location
|
631 |
// convert path option into regex to look for pattern in location
|
632 |
+
// escape query (?) in url, allows for parsing GET parameters
|
633 |
+
let regexString = optPath
|
634 |
.replace( /(\\\?|\?)/, '\\?' )
|
635 |
.replace( '{{#}}', '(\\d\\d?\\d?)' );
|
636 |
+
let templateRe = new RegExp( regexString );
|
637 |
+
let match = location.href.match( templateRe );
|
638 |
|
639 |
if ( match ) {
|
640 |
this.pageIndex = parseInt( match[1], 10 );
|
642 |
}
|
643 |
};
|
644 |
|
645 |
+
let pathRegexes = [
|
646 |
// WordPress & Tumblr - example.com/page/2
|
647 |
// Jekyll - example.com/page2
|
648 |
/^(.*?\/?page\/?)(\d\d?\d?)(.*?$)/,
|
652 |
/(.*?)(\d\d?\d?)(?!.*\d)(.*?$)/,
|
653 |
];
|
654 |
|
655 |
+
// try matching href to pathRegexes patterns
|
656 |
+
let getPathParts = InfiniteScroll.getPathParts = function( href ) {
|
657 |
+
if ( !href ) return;
|
658 |
+
for ( let regex of pathRegexes ) {
|
659 |
+
let match = href.match( regex );
|
660 |
+
if ( match ) {
|
661 |
+
let [ , begin, index, end ] = match;
|
662 |
+
return { begin, index, end };
|
663 |
+
}
|
664 |
+
}
|
665 |
+
};
|
666 |
+
|
667 |
proto.updateGetPathSelector = function( optPath ) {
|
668 |
// parse href of link: '.next-page-link'
|
669 |
+
let hrefElem = document.querySelector( optPath );
|
670 |
if ( !hrefElem ) {
|
671 |
+
console.error(`Bad InfiniteScroll path option. Next link not found: ${optPath}`);
|
|
|
672 |
return;
|
673 |
}
|
674 |
+
|
675 |
+
let href = hrefElem.getAttribute('href');
|
676 |
+
let pathParts = getPathParts( href );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
677 |
if ( !pathParts ) {
|
678 |
+
console.error(`InfiniteScroll unable to parse next link href: ${href}`);
|
679 |
return;
|
680 |
}
|
681 |
+
|
682 |
+
let { begin, index, end } = pathParts;
|
683 |
this.isPathSelector = true; // flag for checkLastPage()
|
684 |
+
this.getPath = () => begin + ( this.pageIndex + 1 ) + end;
|
|
|
|
|
|
|
685 |
// get pageIndex from href
|
686 |
+
this.pageIndex = parseInt( index, 10 ) - 1;
|
687 |
this.log( 'pageIndex', [ this.pageIndex, 'next link' ] );
|
688 |
};
|
689 |
|
690 |
proto.updateGetAbsolutePath = function() {
|
691 |
+
let path = this.getPath();
|
692 |
// path doesn't start with http or /
|
693 |
+
let isAbsolute = path.match( /^http/ ) || path.match( /^\// );
|
694 |
if ( isAbsolute ) {
|
695 |
this.getAbsolutePath = this.getPath;
|
696 |
return;
|
697 |
}
|
698 |
|
699 |
+
let { pathname } = location;
|
700 |
// query parameter #829. example.com/?pg=2
|
701 |
+
let isQuery = path.match( /^\?/ );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
702 |
// /foo/bar/index.html => /foo/bar
|
703 |
+
let directory = pathname.substring( 0, pathname.lastIndexOf('/') );
|
704 |
+
let pathStart = isQuery ? pathname : directory + '/';
|
705 |
+
|
706 |
+
this.getAbsolutePath = () => pathStart + this.getPath();
|
707 |
};
|
708 |
|
709 |
// -------------------------- nav -------------------------- //
|
710 |
|
711 |
// hide navigation
|
712 |
InfiniteScroll.create.hideNav = function() {
|
713 |
+
let nav = utils.getQueryElement( this.options.hideNav );
|
714 |
+
if ( !nav ) return;
|
715 |
+
|
|
|
716 |
nav.style.display = 'none';
|
717 |
this.nav = nav;
|
718 |
};
|
719 |
|
720 |
InfiniteScroll.destroy.hideNav = function() {
|
721 |
+
if ( this.nav ) this.nav.style.display = '';
|
|
|
|
|
722 |
};
|
723 |
|
724 |
// -------------------------- destroy -------------------------- //
|
726 |
proto.destroy = function() {
|
727 |
this.allOff(); // remove all event listeners
|
728 |
// call destroy methods
|
729 |
+
for ( let method in InfiniteScroll.destroy ) {
|
730 |
InfiniteScroll.destroy[ method ].call( this );
|
731 |
}
|
732 |
|
743 |
// https://remysharp.com/2010/07/21/throttling-function-calls
|
744 |
InfiniteScroll.throttle = function( fn, threshold ) {
|
745 |
threshold = threshold || 200;
|
746 |
+
let last, timeout;
|
747 |
|
748 |
return function() {
|
749 |
+
let now = +new Date();
|
750 |
+
let args = arguments;
|
751 |
+
let trigger = () => {
|
752 |
last = now;
|
753 |
fn.apply( this, args );
|
754 |
+
};
|
755 |
if ( last && now < last + threshold ) {
|
756 |
// hold on to it
|
757 |
clearTimeout( timeout );
|
764 |
|
765 |
InfiniteScroll.data = function( elem ) {
|
766 |
elem = utils.getQueryElement( elem );
|
767 |
+
let id = elem && elem.infiniteScrollGUID;
|
768 |
return id && instances[ id ];
|
769 |
};
|
770 |
|
771 |
// set internal jQuery, for Webpack + jQuery v3
|
772 |
+
InfiniteScroll.setJQuery = function( jqry ) {
|
773 |
+
jQuery = jqry;
|
774 |
};
|
775 |
|
776 |
// -------------------------- setup -------------------------- //
|
780 |
// add noop _init method for jQuery Bridget. #768
|
781 |
proto._init = function() {};
|
782 |
|
783 |
+
let { jQueryBridget } = window;
|
784 |
+
if ( jQuery && jQueryBridget ) {
|
785 |
+
jQueryBridget( 'infiniteScroll', InfiniteScroll, jQuery );
|
786 |
}
|
787 |
|
788 |
// -------------------------- -------------------------- //
|
789 |
|
790 |
return InfiniteScroll;
|
791 |
|
792 |
+
} ) );
|
|
|
793 |
// page-load
|
794 |
( function( window, factory ) {
|
795 |
// universal module definition
|
796 |
+
if ( typeof module == 'object' && module.exports ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
797 |
// CommonJS
|
798 |
module.exports = factory(
|
799 |
+
window,
|
800 |
+
require('./core'),
|
801 |
);
|
802 |
} else {
|
803 |
// browser global
|
804 |
factory(
|
805 |
+
window,
|
806 |
+
window.InfiniteScroll,
|
807 |
);
|
808 |
}
|
809 |
|
810 |
}( window, function factory( window, InfiniteScroll ) {
|
811 |
|
812 |
+
let proto = InfiniteScroll.prototype;
|
813 |
|
814 |
+
Object.assign( InfiniteScroll.defaults, {
|
815 |
+
// append: false,
|
816 |
+
loadOnScroll: true,
|
817 |
+
checkLastPage: true,
|
818 |
+
responseBody: 'text',
|
819 |
+
domParseResponse: true,
|
820 |
+
// prefill: false,
|
821 |
+
// outlayer: null,
|
822 |
+
} );
|
823 |
|
824 |
InfiniteScroll.create.pageLoad = function() {
|
825 |
this.canLoad = true;
|
831 |
};
|
832 |
|
833 |
proto.onScrollThresholdLoad = function() {
|
834 |
+
if ( this.options.loadOnScroll ) this.loadNextPage();
|
|
|
|
|
835 |
};
|
836 |
|
837 |
+
let domParser = new DOMParser();
|
838 |
+
|
839 |
proto.loadNextPage = function() {
|
840 |
+
if ( this.isLoading || !this.canLoad ) return;
|
|
|
|
|
841 |
|
842 |
+
let { responseBody, domParseResponse, fetchOptions } = this.options;
|
843 |
+
let path = this.getAbsolutePath();
|
844 |
this.isLoading = true;
|
845 |
+
if ( typeof fetchOptions == 'function' ) fetchOptions = fetchOptions();
|
846 |
+
|
847 |
+
let fetchPromise = fetch( path, fetchOptions )
|
848 |
+
.then( ( response ) => {
|
849 |
+
if ( !response.ok ) {
|
850 |
+
let error = new Error( response.statusText );
|
851 |
+
this.onPageError( error, path, response );
|
852 |
+
return { response };
|
853 |
+
}
|
854 |
|
855 |
+
return response[ responseBody ]().then( ( body ) => {
|
856 |
+
let canDomParse = responseBody == 'text' && domParseResponse;
|
857 |
+
if ( canDomParse ) {
|
858 |
+
body = domParser.parseFromString( body, 'text/html' );
|
859 |
+
}
|
860 |
+
if ( response.status == 204 ) {
|
861 |
+
this.lastPageReached( body, path );
|
862 |
+
return { body, response };
|
863 |
+
} else {
|
864 |
+
return this.onPageLoad( body, path, response );
|
865 |
+
}
|
866 |
+
} );
|
867 |
+
} )
|
868 |
+
.catch( ( error ) => {
|
869 |
+
this.onPageError( error, path );
|
870 |
+
} );
|
871 |
|
872 |
+
this.dispatchEvent( 'request', null, [ path, fetchPromise ] );
|
|
|
|
|
873 |
|
874 |
+
return fetchPromise;
|
|
|
875 |
};
|
876 |
|
877 |
+
proto.onPageLoad = function( body, path, response ) {
|
878 |
// done loading if not appending
|
879 |
if ( !this.options.append ) {
|
880 |
this.isLoading = false;
|
881 |
}
|
882 |
this.pageIndex++;
|
883 |
this.loadCount++;
|
884 |
+
this.dispatchEvent( 'load', null, [ body, path, response ] );
|
885 |
+
return this.appendNextPage( body, path, response );
|
|
|
886 |
};
|
887 |
|
888 |
+
proto.appendNextPage = function( body, path, response ) {
|
889 |
+
let { append, responseBody, domParseResponse } = this.options;
|
890 |
// do not append json
|
891 |
+
let isDocument = responseBody == 'text' && domParseResponse;
|
892 |
+
if ( !isDocument || !append ) return { body, response };
|
893 |
+
|
894 |
+
let items = body.querySelectorAll( append );
|
895 |
+
let promiseValue = { body, response, items };
|
896 |
+
// last page hit if no items. #840
|
897 |
+
if ( !items || !items.length ) {
|
898 |
+
this.lastPageReached( body, path );
|
899 |
+
return promiseValue;
|
900 |
}
|
901 |
|
902 |
+
let fragment = getItemsFragment( items );
|
903 |
+
let appendReady = () => {
|
|
|
904 |
this.appendItems( items, fragment );
|
905 |
this.isLoading = false;
|
906 |
+
this.dispatchEvent( 'append', null, [ body, path, items, response ] );
|
907 |
+
return promiseValue;
|
908 |
+
};
|
909 |
|
910 |
// TODO add hook for option to trigger appendReady
|
911 |
if ( this.options.outlayer ) {
|
912 |
+
return this.appendOutlayerItems( fragment, appendReady );
|
913 |
} else {
|
914 |
+
return appendReady();
|
915 |
}
|
916 |
};
|
917 |
|
918 |
proto.appendItems = function( items, fragment ) {
|
919 |
+
if ( !items || !items.length ) return;
|
920 |
+
|
|
|
921 |
// get fragment if not provided
|
922 |
fragment = fragment || getItemsFragment( items );
|
923 |
refreshScripts( fragment );
|
926 |
|
927 |
function getItemsFragment( items ) {
|
928 |
// add items to fragment
|
929 |
+
let fragment = document.createDocumentFragment();
|
930 |
+
if ( items ) fragment.append( ...items );
|
|
|
|
|
931 |
return fragment;
|
932 |
}
|
933 |
|
935 |
// <script>s added by InfiniteScroll will not load
|
936 |
// similar to https://stackoverflow.com/questions/610995
|
937 |
function refreshScripts( fragment ) {
|
938 |
+
let scripts = fragment.querySelectorAll('script');
|
939 |
+
for ( let script of scripts ) {
|
940 |
+
let freshScript = document.createElement('script');
|
941 |
+
// copy attributes
|
942 |
+
let attrs = script.attributes;
|
943 |
+
for ( let attr of attrs ) {
|
944 |
+
freshScript.setAttribute( attr.name, attr.value );
|
945 |
+
}
|
946 |
// copy inner script code. #718, #782
|
947 |
freshScript.innerHTML = script.innerHTML;
|
948 |
script.parentNode.replaceChild( freshScript, script );
|
949 |
}
|
950 |
}
|
951 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
952 |
// ----- outlayer ----- //
|
953 |
|
954 |
proto.appendOutlayerItems = function( fragment, appendReady ) {
|
955 |
+
let imagesLoaded = InfiniteScroll.imagesLoaded || window.imagesLoaded;
|
956 |
if ( !imagesLoaded ) {
|
957 |
console.error('[InfiniteScroll] imagesLoaded required for outlayer option');
|
958 |
this.isLoading = false;
|
959 |
return;
|
960 |
}
|
961 |
// append once images loaded
|
962 |
+
return new Promise( function( resolve ) {
|
963 |
+
imagesLoaded( fragment, function() {
|
964 |
+
let bodyResponse = appendReady();
|
965 |
+
resolve( bodyResponse );
|
966 |
+
} );
|
967 |
+
} );
|
968 |
};
|
969 |
|
970 |
proto.onAppendOutlayer = function( response, path, items ) {
|
974 |
// ----- checkLastPage ----- //
|
975 |
|
976 |
// check response for next element
|
977 |
+
proto.checkLastPage = function( body, path ) {
|
978 |
+
let { checkLastPage, path: pathOpt } = this.options;
|
979 |
+
if ( !checkLastPage ) return;
|
|
|
|
|
980 |
|
|
|
981 |
// if path is function, check if next path is truthy
|
982 |
if ( typeof pathOpt == 'function' ) {
|
983 |
+
let nextPath = this.getPath();
|
984 |
if ( !nextPath ) {
|
985 |
+
this.lastPageReached( body, path );
|
986 |
return;
|
987 |
}
|
988 |
}
|
989 |
// get selector from checkLastPage or path option
|
990 |
+
let selector;
|
991 |
if ( typeof checkLastPage == 'string' ) {
|
992 |
selector = checkLastPage;
|
993 |
} else if ( this.isPathSelector ) {
|
996 |
}
|
997 |
// check last page for selector
|
998 |
// bail if no selector or not document response
|
999 |
+
if ( !selector || !body.querySelector ) return;
|
1000 |
+
|
|
|
1001 |
// check if response has selector
|
1002 |
+
let nextElem = body.querySelector( selector );
|
1003 |
+
if ( !nextElem ) this.lastPageReached( body, path );
|
|
|
|
|
1004 |
};
|
1005 |
|
1006 |
+
proto.lastPageReached = function( body, path ) {
|
1007 |
this.canLoad = false;
|
1008 |
+
this.dispatchEvent( 'last', null, [ body, path ] );
|
1009 |
};
|
1010 |
|
1011 |
// ----- error ----- //
|
1012 |
|
1013 |
+
proto.onPageError = function( error, path, response ) {
|
1014 |
this.isLoading = false;
|
1015 |
this.canLoad = false;
|
1016 |
+
this.dispatchEvent( 'error', null, [ error, path, response ] );
|
1017 |
return error;
|
1018 |
};
|
1019 |
|
1020 |
// -------------------------- prefill -------------------------- //
|
1021 |
|
1022 |
InfiniteScroll.create.prefill = function() {
|
1023 |
+
if ( !this.options.prefill ) return;
|
1024 |
+
|
1025 |
+
let append = this.options.append;
|
|
|
1026 |
if ( !append ) {
|
1027 |
+
console.error(`append option required for prefill. Set as :${append}`);
|
1028 |
return;
|
1029 |
}
|
1030 |
this.updateMeasurements();
|
1037 |
};
|
1038 |
|
1039 |
proto.prefill = function() {
|
1040 |
+
let distance = this.getPrefillDistance();
|
1041 |
this.isPrefilling = distance >= 0;
|
1042 |
if ( this.isPrefilling ) {
|
1043 |
this.log('prefill');
|
1061 |
this.off( 'append', this.prefill );
|
1062 |
};
|
1063 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1064 |
// -------------------------- -------------------------- //
|
1065 |
|
1066 |
return InfiniteScroll;
|
1067 |
|
1068 |
+
} ) );
|
|
|
1069 |
// scroll-watch
|
1070 |
( function( window, factory ) {
|
1071 |
// universal module definition
|
1072 |
+
if ( typeof module == 'object' && module.exports ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1073 |
// CommonJS
|
1074 |
module.exports = factory(
|
1075 |
+
window,
|
1076 |
+
require('./core'),
|
1077 |
+
require('fizzy-ui-utils'),
|
1078 |
);
|
1079 |
} else {
|
1080 |
// browser global
|
1081 |
factory(
|
1082 |
+
window,
|
1083 |
+
window.InfiniteScroll,
|
1084 |
+
window.fizzyUIUtils,
|
1085 |
);
|
1086 |
}
|
1087 |
|
1088 |
}( window, function factory( window, InfiniteScroll, utils ) {
|
1089 |
|
1090 |
+
let proto = InfiniteScroll.prototype;
|
1091 |
|
1092 |
// default options
|
1093 |
+
Object.assign( InfiniteScroll.defaults, {
|
1094 |
+
scrollThreshold: 400,
|
1095 |
+
// elementScroll: null,
|
1096 |
+
} );
|
1097 |
|
1098 |
InfiniteScroll.create.scrollWatch = function() {
|
1099 |
// events
|
1100 |
this.pageScrollHandler = this.onPageScroll.bind( this );
|
1101 |
this.resizeHandler = this.onResize.bind( this );
|
1102 |
|
1103 |
+
let scrollThreshold = this.options.scrollThreshold;
|
1104 |
+
let isEnable = scrollThreshold || scrollThreshold === 0;
|
1105 |
+
if ( isEnable ) this.enableScrollWatch();
|
|
|
|
|
1106 |
};
|
1107 |
|
1108 |
InfiniteScroll.destroy.scrollWatch = function() {
|
1110 |
};
|
1111 |
|
1112 |
proto.enableScrollWatch = function() {
|
1113 |
+
if ( this.isScrollWatching ) return;
|
1114 |
+
|
|
|
1115 |
this.isScrollWatching = true;
|
1116 |
this.updateMeasurements();
|
1117 |
this.updateScroller();
|
1121 |
};
|
1122 |
|
1123 |
proto.disableScrollWatch = function() {
|
1124 |
+
if ( !this.isScrollWatching ) return;
|
1125 |
+
|
|
|
1126 |
this.bindScrollWatchEvents( false );
|
1127 |
delete this.isScrollWatching;
|
1128 |
};
|
1129 |
|
1130 |
proto.bindScrollWatchEvents = function( isBind ) {
|
1131 |
+
let addRemove = isBind ? 'addEventListener' : 'removeEventListener';
|
1132 |
this.scroller[ addRemove ]( 'scroll', this.pageScrollHandler );
|
1133 |
window[ addRemove ]( 'resize', this.resizeHandler );
|
1134 |
};
|
1135 |
|
1136 |
proto.onPageScroll = InfiniteScroll.throttle( function() {
|
1137 |
+
let distance = this.getBottomDistance();
|
1138 |
if ( distance <= this.options.scrollThreshold ) {
|
1139 |
this.dispatchEvent('scrollThreshold');
|
1140 |
}
|
1141 |
+
} );
|
1142 |
|
1143 |
proto.getBottomDistance = function() {
|
1144 |
+
let bottom, scrollY;
|
1145 |
if ( this.options.elementScroll ) {
|
1146 |
+
bottom = this.scroller.scrollHeight;
|
1147 |
+
scrollY = this.scroller.scrollTop + this.scroller.clientHeight;
|
1148 |
} else {
|
1149 |
+
bottom = this.top + this.element.clientHeight;
|
1150 |
+
scrollY = window.scrollY + this.windowHeight;
|
1151 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1152 |
return bottom - scrollY;
|
1153 |
};
|
1154 |
|
1162 |
|
1163 |
return InfiniteScroll;
|
1164 |
|
1165 |
+
} ) );
|
|
|
1166 |
// history
|
1167 |
( function( window, factory ) {
|
1168 |
// universal module definition
|
1169 |
+
if ( typeof module == 'object' && module.exports ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1170 |
// CommonJS
|
1171 |
module.exports = factory(
|
1172 |
+
window,
|
1173 |
+
require('./core'),
|
1174 |
+
require('fizzy-ui-utils'),
|
1175 |
);
|
1176 |
} else {
|
1177 |
// browser global
|
1178 |
factory(
|
1179 |
+
window,
|
1180 |
+
window.InfiniteScroll,
|
1181 |
+
window.fizzyUIUtils,
|
1182 |
);
|
1183 |
}
|
1184 |
|
1185 |
}( window, function factory( window, InfiniteScroll, utils ) {
|
1186 |
|
1187 |
+
let proto = InfiniteScroll.prototype;
|
1188 |
|
1189 |
+
Object.assign( InfiniteScroll.defaults, {
|
1190 |
+
history: 'replace',
|
1191 |
+
// historyTitle: false,
|
1192 |
+
} );
|
1193 |
|
1194 |
+
let link = document.createElement('a');
|
1195 |
|
1196 |
// ----- create/destroy ----- //
|
1197 |
|
1198 |
InfiniteScroll.create.history = function() {
|
1199 |
+
if ( !this.options.history ) return;
|
1200 |
+
|
|
|
1201 |
// check for same origin
|
1202 |
link.href = this.getAbsolutePath();
|
1203 |
+
// MS Edge does not have origin on link
|
1204 |
+
// https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/12236493/
|
1205 |
+
let linkOrigin = link.origin || link.protocol + '//' + link.host;
|
1206 |
+
let isSameOrigin = linkOrigin == location.origin;
|
1207 |
if ( !isSameOrigin ) {
|
1208 |
console.error( '[InfiniteScroll] cannot set history with different origin: ' +
|
1209 |
+
`${link.origin} on ${location.origin} . History behavior disabled.` );
|
|
|
1210 |
return;
|
1211 |
}
|
1212 |
|
1223 |
this.updateScroller();
|
1224 |
// array of scroll positions of appended pages
|
1225 |
this.scrollPages = [
|
1226 |
+
// first page
|
1227 |
{
|
|
|
1228 |
top: 0,
|
1229 |
path: location.href,
|
1230 |
title: document.title,
|
1231 |
+
},
|
1232 |
];
|
1233 |
+
this.scrollPage = this.scrollPages[0];
|
1234 |
// events
|
1235 |
this.scrollHistoryHandler = this.onScrollHistory.bind( this );
|
1236 |
this.unloadHandler = this.onUnload.bind( this );
|
1240 |
};
|
1241 |
|
1242 |
proto.bindHistoryAppendEvents = function( isBind ) {
|
1243 |
+
let addRemove = isBind ? 'addEventListener' : 'removeEventListener';
|
1244 |
this.scroller[ addRemove ]( 'scroll', this.scrollHistoryHandler );
|
1245 |
window[ addRemove ]( 'unload', this.unloadHandler );
|
1246 |
};
|
1251 |
|
1252 |
InfiniteScroll.destroy.history =
|
1253 |
proto.destroyHistory = function() {
|
1254 |
+
let isHistoryAppend = this.options.history && this.options.append;
|
1255 |
if ( isHistoryAppend ) {
|
1256 |
this.bindHistoryAppendEvents( false );
|
1257 |
}
|
1261 |
|
1262 |
proto.onAppendHistory = function( response, path, items ) {
|
1263 |
// do not proceed if no items. #779
|
1264 |
+
if ( !items || !items.length ) return;
|
1265 |
+
|
1266 |
+
let firstItem = items[0];
|
1267 |
+
let elemScrollY = this.getElementScrollY( firstItem );
|
|
|
1268 |
// resolve path
|
1269 |
link.href = path;
|
1270 |
// add page data to hash
|
1277 |
|
1278 |
proto.getElementScrollY = function( elem ) {
|
1279 |
if ( this.options.elementScroll ) {
|
1280 |
+
return elem.offsetTop - this.top;
|
1281 |
} else {
|
1282 |
+
let rect = elem.getBoundingClientRect();
|
1283 |
+
return rect.top + window.scrollY;
|
1284 |
}
|
1285 |
};
|
1286 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1287 |
proto.onScrollHistory = function() {
|
1288 |
// cycle through positions, find biggest without going over
|
1289 |
+
let scrollPage = this.getClosestScrollPage();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1290 |
// set history if changed
|
1291 |
+
if ( scrollPage != this.scrollPage ) {
|
1292 |
+
this.scrollPage = scrollPage;
|
1293 |
+
this.setHistory( scrollPage.title, scrollPage.path );
|
1294 |
}
|
1295 |
};
|
1296 |
|
1297 |
utils.debounceMethod( InfiniteScroll, 'onScrollHistory', 150 );
|
1298 |
|
1299 |
+
proto.getClosestScrollPage = function() {
|
1300 |
+
let scrollViewY;
|
1301 |
if ( this.options.elementScroll ) {
|
1302 |
+
scrollViewY = this.scroller.scrollTop + this.scroller.clientHeight / 2;
|
1303 |
} else {
|
1304 |
+
scrollViewY = window.scrollY + this.windowHeight / 2;
|
1305 |
}
|
1306 |
+
|
1307 |
+
let scrollPage;
|
1308 |
+
for ( let page of this.scrollPages ) {
|
1309 |
+
if ( page.top >= scrollViewY ) break;
|
1310 |
+
|
1311 |
+
scrollPage = page;
|
1312 |
+
}
|
1313 |
+
return scrollPage;
|
1314 |
};
|
1315 |
|
1316 |
proto.setHistory = function( title, path ) {
|
1317 |
+
let optHistory = this.options.history;
|
1318 |
+
let historyMethod = optHistory && history[ optHistory + 'State' ];
|
1319 |
+
if ( !historyMethod ) return;
|
|
|
|
|
1320 |
|
1321 |
history[ optHistory + 'State' ]( null, title, path );
|
1322 |
+
if ( this.options.historyTitle ) document.title = title;
|
|
|
|
|
|
|
|
|
1323 |
this.dispatchEvent( 'history', null, [ title, path ] );
|
1324 |
};
|
1325 |
|
1326 |
// scroll to top to prevent initial scroll-reset after page refresh
|
1327 |
// https://stackoverflow.com/a/18633915/182183
|
1328 |
proto.onUnload = function() {
|
1329 |
+
if ( this.scrollPage.top === 0 ) return;
|
1330 |
+
|
|
|
|
|
1331 |
// calculate where scroll position would be on refresh
|
1332 |
+
let scrollY = window.scrollY - this.scrollPage.top + this.top;
|
|
|
1333 |
// disable scroll event before setting scroll #679
|
1334 |
this.destroyHistory();
|
1335 |
scrollTo( 0, scrollY );
|
1346 |
|
1347 |
return InfiniteScroll;
|
1348 |
|
1349 |
+
} ) );
|
|
|
1350 |
// button
|
1351 |
( function( window, factory ) {
|
1352 |
// universal module definition
|
1353 |
+
if ( typeof module == 'object' && module.exports ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1354 |
// CommonJS
|
1355 |
module.exports = factory(
|
1356 |
+
window,
|
1357 |
+
require('./core'),
|
1358 |
+
require('fizzy-ui-utils'),
|
1359 |
);
|
1360 |
} else {
|
1361 |
// browser global
|
1362 |
factory(
|
1363 |
+
window,
|
1364 |
+
window.InfiniteScroll,
|
1365 |
+
window.fizzyUIUtils,
|
1366 |
);
|
1367 |
}
|
1368 |
|
1369 |
}( window, function factory( window, InfiniteScroll, utils ) {
|
1370 |
|
1371 |
+
// -------------------------- InfiniteScrollButton -------------------------- //
|
1372 |
|
1373 |
+
class InfiniteScrollButton {
|
1374 |
+
constructor( element, infScroll ) {
|
1375 |
+
this.element = element;
|
1376 |
+
this.infScroll = infScroll;
|
1377 |
+
// events
|
1378 |
+
this.clickHandler = this.onClick.bind( this );
|
1379 |
+
this.element.addEventListener( 'click', this.clickHandler );
|
1380 |
+
infScroll.on( 'request', this.disable.bind( this ) );
|
1381 |
+
infScroll.on( 'load', this.enable.bind( this ) );
|
1382 |
+
infScroll.on( 'error', this.hide.bind( this ) );
|
1383 |
+
infScroll.on( 'last', this.hide.bind( this ) );
|
1384 |
}
|
|
|
1385 |
|
1386 |
+
onClick( event ) {
|
1387 |
+
event.preventDefault();
|
1388 |
+
this.infScroll.loadNextPage();
|
1389 |
}
|
|
|
1390 |
|
1391 |
+
enable() {
|
1392 |
+
this.element.removeAttribute('disabled');
|
1393 |
+
}
|
1394 |
|
1395 |
+
disable() {
|
1396 |
+
this.element.disabled = 'disabled';
|
1397 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1398 |
|
1399 |
+
hide() {
|
1400 |
+
this.element.style.display = 'none';
|
1401 |
+
}
|
|
|
1402 |
|
1403 |
+
destroy() {
|
1404 |
+
this.element.removeEventListener( 'click', this.clickHandler );
|
1405 |
+
}
|
1406 |
|
1407 |
+
}
|
1408 |
+
|
1409 |
+
// -------------------------- InfiniteScroll methods -------------------------- //
|
1410 |
|
1411 |
+
// InfiniteScroll.defaults.button = null;
|
1412 |
+
|
1413 |
+
InfiniteScroll.create.button = function() {
|
1414 |
+
let buttonElem = utils.getQueryElement( this.options.button );
|
1415 |
+
if ( buttonElem ) {
|
1416 |
+
this.button = new InfiniteScrollButton( buttonElem, this );
|
1417 |
+
}
|
1418 |
};
|
1419 |
|
1420 |
+
InfiniteScroll.destroy.button = function() {
|
1421 |
+
if ( this.button ) this.button.destroy();
|
1422 |
};
|
1423 |
|
1424 |
// -------------------------- -------------------------- //
|
1427 |
|
1428 |
return InfiniteScroll;
|
1429 |
|
1430 |
+
} ) );
|
|
|
1431 |
// status
|
1432 |
( function( window, factory ) {
|
1433 |
// universal module definition
|
1434 |
+
if ( typeof module == 'object' && module.exports ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1435 |
// CommonJS
|
1436 |
module.exports = factory(
|
1437 |
+
window,
|
1438 |
+
require('./core'),
|
1439 |
+
require('fizzy-ui-utils'),
|
1440 |
);
|
1441 |
} else {
|
1442 |
// browser global
|
1443 |
factory(
|
1444 |
+
window,
|
1445 |
+
window.InfiniteScroll,
|
1446 |
+
window.fizzyUIUtils,
|
1447 |
);
|
1448 |
}
|
1449 |
|
1450 |
+
}( window, function factory( window, InfiniteScroll, utils ) {
|
1451 |
|
1452 |
+
let proto = InfiniteScroll.prototype;
|
1453 |
|
1454 |
// InfiniteScroll.defaults.status = null;
|
1455 |
|
1456 |
InfiniteScroll.create.status = function() {
|
1457 |
+
let statusElem = utils.getQueryElement( this.options.status );
|
1458 |
+
if ( !statusElem ) return;
|
1459 |
+
|
|
|
1460 |
// elements
|
1461 |
this.statusElement = statusElem;
|
1462 |
this.statusEventElements = {
|
1472 |
};
|
1473 |
|
1474 |
proto.bindHideStatus = function( bindMethod ) {
|
1475 |
+
let hideEvent = this.options.append ? 'append' : 'load';
|
1476 |
this[ bindMethod ]( hideEvent, this.hideAllStatus );
|
1477 |
};
|
1478 |
|
1493 |
proto.showStatus = function( eventName ) {
|
1494 |
show( this.statusElement );
|
1495 |
this.hideStatusEventElements();
|
1496 |
+
let eventElem = this.statusEventElements[ eventName ];
|
1497 |
show( eventElem );
|
1498 |
};
|
1499 |
|
1503 |
};
|
1504 |
|
1505 |
proto.hideStatusEventElements = function() {
|
1506 |
+
for ( let type in this.statusEventElements ) {
|
1507 |
+
let eventElem = this.statusEventElements[ type ];
|
1508 |
hide( eventElem );
|
1509 |
}
|
1510 |
};
|
1529 |
|
1530 |
return InfiniteScroll;
|
1531 |
|
1532 |
+
} ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1533 |
/*!
|
1534 |
* imagesLoaded v4.1.4
|
1535 |
* JavaScript is all like "You images are done yet or what?"
|
1543 |
|
1544 |
if ( typeof define == 'function' && define.amd ) {
|
1545 |
// AMD
|
1546 |
+
define( [
|
1547 |
'ev-emitter/ev-emitter'
|
1548 |
], function( EvEmitter ) {
|
1549 |
return factory( window, EvEmitter );
|
1568 |
|
1569 |
function factory( window, EvEmitter ) {
|
1570 |
|
1571 |
+
'use strict';
|
1572 |
|
1573 |
var $ = window.jQuery;
|
1574 |
var console = window.console;
|
1907 |
return ImagesLoaded;
|
1908 |
|
1909 |
});
|
|
assets/infinitescroll/infinite-scroll.pkgd.min.js
CHANGED
@@ -1,12 +1,17 @@
|
|
1 |
/*!
|
2 |
-
* Infinite Scroll PACKAGED
|
3 |
* Automatically add next page
|
4 |
*
|
5 |
* Licensed GPLv3 for open source use
|
6 |
* or Infinite Scroll Commercial License for commercial use
|
7 |
*
|
8 |
* https://infinite-scroll.com
|
9 |
-
* Copyright 2018 Metafizzy
|
10 |
*/
|
11 |
-
|
12 |
-
!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,r,l){function a(t,e,n){var o,r="$()."+i+'("'+e+'")';return t.each(function(t,a){var h=l.data(a,i);if(!h)return void s(i+" not initialized. Cannot call methods, i.e. "+r);var c=h[e];if(!c||"_"==e.charAt(0))return void s(r+" is not a valid method");var u=c.apply(h,n);o=void 0===o?u:o}),void 0!==o?o:t}function h(t,e){t.each(function(t,n){var o=l.data(n,i);o?(o.option(e),o._init()):(o=new r(n,e),l.data(n,i,o))})}l=l||e||t.jQuery,l&&(r.prototype.option||(r.prototype.option=function(t){l.isPlainObject(t)&&(this.options=l.extend(!0,this.options,t))}),l.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return a(this,t,e)}return h(this,t),this},n(l))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,r=t.console,s="undefined"==typeof r?function(){}:function(t){r.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return n.indexOf(e)==-1&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return n!=-1&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var r=i[o],s=n&&n[r];s&&(this.off(t,r),delete n[r]),r.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i],o=n+"MatchesSelector";if(t[o])return o}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e};var n=Array.prototype.slice;i.makeArray=function(t){if(Array.isArray(t))return t;if(null===t||void 0===t)return[];var e="object"==typeof t&&"number"==typeof t.length;return e?n.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);i!=-1&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void o.push(t);e(t,n)&&o.push(t);for(var i=t.querySelectorAll(n),r=0;r<i.length;r++)o.push(i[r])}}),o},i.debounceMethod=function(t,e,i){i=i||100;var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];clearTimeout(t);var e=arguments,r=this;this[o]=setTimeout(function(){n.apply(r,e),delete r[o]},i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var o=t.console;return i.htmlInit=function(e,n){i.docReady(function(){var r=i.toDashed(n),s="data-"+r,l=document.querySelectorAll("["+s+"]"),a=document.querySelectorAll(".js-"+r),h=i.makeArray(l).concat(i.makeArray(a)),c=s+"-options",u=t.jQuery;h.forEach(function(t){var i,r=t.getAttribute(s)||t.getAttribute(c);try{i=r&&JSON.parse(r)}catch(l){return void(o&&o.error("Error parsing "+s+" on "+t.className+": "+l))}var a=new e(t,i);u&&u.data(t,n,a)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/core",["ev-emitter/ev-emitter","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("fizzy-ui-utils")):t.InfiniteScroll=e(t,t.EvEmitter,t.fizzyUIUtils)}(window,function(t,e,i){function n(t,e){var s=i.getQueryElement(t);if(!s)return void console.error("Bad element for InfiniteScroll: "+(s||t));if(t=s,t.infiniteScrollGUID){var l=r[t.infiniteScrollGUID];return l.option(e),l}this.element=t,this.options=i.extend({},n.defaults),this.option(e),o&&(this.$element=o(this.element)),this.create()}var o=t.jQuery,r={};n.defaults={},n.create={},n.destroy={};var s=n.prototype;i.extend(s,e.prototype);var l=0;s.create=function(){var t=this.guid=++l;this.element.infiniteScrollGUID=t,r[t]=this,this.pageIndex=1,this.loadCount=0,this.updateGetPath();var e=this.getPath&&this.getPath();if(!e)return void console.error("Disabling InfiniteScroll");this.updateGetAbsolutePath(),this.log("initialized",[this.element.className]),this.callOnInit();for(var i in n.create)n.create[i].call(this)},s.option=function(t){i.extend(this.options,t)},s.callOnInit=function(){var t=this.options.onInit;t&&t.call(this,this)},s.dispatchEvent=function(t,e,i){this.log(t,i);var n=e?[e].concat(i):i;if(this.emitEvent(t,n),o&&this.$element){t+=".infiniteScroll";var r=t;if(e){var s=o.Event(e);s.type=t,r=s}this.$element.trigger(r,i)}};var a={initialized:function(t){return"on "+t},request:function(t){return"URL: "+t},load:function(t,e){return(t.title||"")+". URL: "+e},error:function(t,e){return t+". URL: "+e},append:function(t,e,i){return i.length+" items. URL: "+e},last:function(t,e){return"URL: "+e},history:function(t,e){return"URL: "+e},pageIndex:function(t,e){return"current page determined to be: "+t+" from "+e}};s.log=function(t,e){if(this.options.debug){var i="[InfiniteScroll] "+t,n=a[t];n&&(i+=". "+n.apply(this,e)),console.log(i)}},s.updateMeasurements=function(){this.windowHeight=t.innerHeight;var e=this.element.getBoundingClientRect();this.top=e.top+t.pageYOffset},s.updateScroller=function(){var e=this.options.elementScroll;if(!e)return void(this.scroller=t);if(this.scroller=e===!0?this.element:i.getQueryElement(e),!this.scroller)throw"Unable to find elementScroll: "+e},s.updateGetPath=function(){var t=this.options.path;if(!t)return void console.error("InfiniteScroll path option required. Set as: "+t);var e=typeof t;if("function"==e)return void(this.getPath=t);var i="string"==e&&t.match("{{#}}");return i?void this.updateGetPathTemplate(t):void this.updateGetPathSelector(t)},s.updateGetPathTemplate=function(t){this.getPath=function(){var e=this.pageIndex+1;return t.replace("{{#}}",e)}.bind(this);var e=t.replace(/(\\\?|\?)/,"\\?").replace("{{#}}","(\\d\\d?\\d?)"),i=new RegExp(e),n=location.href.match(i);n&&(this.pageIndex=parseInt(n[1],10),this.log("pageIndex",[this.pageIndex,"template string"]))};var h=[/^(.*?\/?page\/?)(\d\d?\d?)(.*?$)/,/^(.*?\/?\?page=)(\d\d?\d?)(.*?$)/,/(.*?)(\d\d?\d?)(?!.*\d)(.*?$)/];return s.updateGetPathSelector=function(t){var e=document.querySelector(t);if(!e)return void console.error("Bad InfiniteScroll path option. Next link not found: "+t);for(var i,n,o=e.getAttribute("href"),r=0;o&&r<h.length;r++){n=h[r];var s=o.match(n);if(s){i=s.slice(1);break}}return i?(this.isPathSelector=!0,this.getPath=function(){var t=this.pageIndex+1;return i[0]+t+i[2]}.bind(this),this.pageIndex=parseInt(i[1],10)-1,void this.log("pageIndex",[this.pageIndex,"next link"])):void console.error("InfiniteScroll unable to parse next link href: "+o)},s.updateGetAbsolutePath=function(){var t=this.getPath(),e=t.match(/^http/)||t.match(/^\//);if(e)return void(this.getAbsolutePath=this.getPath);var i=location.pathname,n=t.match(/^\?/);if(n)return void(this.getAbsolutePath=function(){return i+this.getPath()});var o=i.substring(0,i.lastIndexOf("/"));this.getAbsolutePath=function(){return o+"/"+this.getPath()}},n.create.hideNav=function(){var t=i.getQueryElement(this.options.hideNav);t&&(t.style.display="none",this.nav=t)},n.destroy.hideNav=function(){this.nav&&(this.nav.style.display="")},s.destroy=function(){this.allOff();for(var t in n.destroy)n.destroy[t].call(this);delete this.element.infiniteScrollGUID,delete r[this.guid],o&&this.$element&&o.removeData(this.element,"infiniteScroll")},n.throttle=function(t,e){e=e||200;var i,n;return function(){var o=+new Date,r=arguments,s=function(){i=o,t.apply(this,r)}.bind(this);i&&o<i+e?(clearTimeout(n),n=setTimeout(s,e)):s()}},n.data=function(t){t=i.getQueryElement(t);var e=t&&t.infiniteScrollGUID;return e&&r[e]},n.setJQuery=function(t){o=t},i.htmlInit(n,"infinite-scroll"),s._init=function(){},o&&o.bridget&&o.bridget("infiniteScroll",n),n}),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/page-load",["./core"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./core")):e(t,t.InfiniteScroll)}(window,function(t,e){function i(t){for(var e=document.createDocumentFragment(),i=0;t&&i<t.length;i++)e.appendChild(t[i]);return e}function n(t){for(var e=t.querySelectorAll("script"),i=0;i<e.length;i++){var n=e[i],r=document.createElement("script");o(n,r),r.innerHTML=n.innerHTML,n.parentNode.replaceChild(r,n)}}function o(t,e){for(var i=t.attributes,n=0;n<i.length;n++){var o=i[n];e.setAttribute(o.name,o.value)}}function r(t,e,i,n,o){var r=new XMLHttpRequest;r.open("GET",t,!0),r.responseType=e||"",r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.onload=function(){if(200==r.status)i(r.response);else if(204==r.status)o(r.response);else{var t=new Error(r.statusText);n(t)}},r.onerror=function(){var e=new Error("Network error requesting "+t);n(e)},r.send()}var s=e.prototype;return e.defaults.loadOnScroll=!0,e.defaults.checkLastPage=!0,e.defaults.responseType="document",e.create.pageLoad=function(){this.canLoad=!0,this.on("scrollThreshold",this.onScrollThresholdLoad),this.on("load",this.checkLastPage),this.options.outlayer&&this.on("append",this.onAppendOutlayer)},s.onScrollThresholdLoad=function(){this.options.loadOnScroll&&this.loadNextPage()},s.loadNextPage=function(){if(!this.isLoading&&this.canLoad){var t=this.getAbsolutePath();this.isLoading=!0;var e=function(e){this.onPageLoad(e,t)}.bind(this),i=function(e){this.onPageError(e,t)}.bind(this),n=function(e){this.lastPageReached(e,t)}.bind(this);r(t,this.options.responseType,e,i,n),this.dispatchEvent("request",null,[t])}},s.onPageLoad=function(t,e){return this.options.append||(this.isLoading=!1),this.pageIndex++,this.loadCount++,this.dispatchEvent("load",null,[t,e]),this.appendNextPage(t,e),t},s.appendNextPage=function(t,e){var n=this.options.append,o="document"==this.options.responseType;if(o&&n){var r=t.querySelectorAll(n),s=i(r),l=function(){this.appendItems(r,s),this.isLoading=!1,this.dispatchEvent("append",null,[t,e,r])}.bind(this);this.options.outlayer?this.appendOutlayerItems(s,l):l()}},s.appendItems=function(t,e){t&&t.length&&(e=e||i(t),n(e),this.element.appendChild(e))},s.appendOutlayerItems=function(i,n){var o=e.imagesLoaded||t.imagesLoaded;return o?void o(i,n):(console.error("[InfiniteScroll] imagesLoaded required for outlayer option"),void(this.isLoading=!1))},s.onAppendOutlayer=function(t,e,i){this.options.outlayer.appended(i)},s.checkLastPage=function(t,e){var i=this.options.checkLastPage;if(i){var n=this.options.path;if("function"==typeof n){var o=this.getPath();if(!o)return void this.lastPageReached(t,e)}var r;if("string"==typeof i?r=i:this.isPathSelector&&(r=n),r&&t.querySelector){var s=t.querySelector(r);s||this.lastPageReached(t,e)}}},s.lastPageReached=function(t,e){this.canLoad=!1,this.dispatchEvent("last",null,[t,e])},s.onPageError=function(t,e){return this.isLoading=!1,this.canLoad=!1,this.dispatchEvent("error",null,[t,e]),t},e.create.prefill=function(){if(this.options.prefill){var t=this.options.append;if(!t)return void console.error("append option required for prefill. Set as :"+t);this.updateMeasurements(),this.updateScroller(),this.isPrefilling=!0,this.on("append",this.prefill),this.once("error",this.stopPrefill),this.once("last",this.stopPrefill),this.prefill()}},s.prefill=function(){var t=this.getPrefillDistance();this.isPrefilling=t>=0,this.isPrefilling?(this.log("prefill"),this.loadNextPage()):this.stopPrefill()},s.getPrefillDistance=function(){return this.options.elementScroll?this.scroller.clientHeight-this.scroller.scrollHeight:this.windowHeight-this.element.clientHeight},s.stopPrefill=function(){this.log("stopPrefill"),this.off("append",this.prefill)},e}),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/scroll-watch",["./core","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,function(t,e,i){var n=e.prototype;return e.defaults.scrollThreshold=400,e.create.scrollWatch=function(){this.pageScrollHandler=this.onPageScroll.bind(this),this.resizeHandler=this.onResize.bind(this);var t=this.options.scrollThreshold,e=t||0===t;e&&this.enableScrollWatch()},e.destroy.scrollWatch=function(){this.disableScrollWatch()},n.enableScrollWatch=function(){this.isScrollWatching||(this.isScrollWatching=!0,this.updateMeasurements(),this.updateScroller(),this.on("last",this.disableScrollWatch),this.bindScrollWatchEvents(!0))},n.disableScrollWatch=function(){this.isScrollWatching&&(this.bindScrollWatchEvents(!1),delete this.isScrollWatching)},n.bindScrollWatchEvents=function(e){var i=e?"addEventListener":"removeEventListener";this.scroller[i]("scroll",this.pageScrollHandler),t[i]("resize",this.resizeHandler)},n.onPageScroll=e.throttle(function(){var t=this.getBottomDistance();t<=this.options.scrollThreshold&&this.dispatchEvent("scrollThreshold")}),n.getBottomDistance=function(){return this.options.elementScroll?this.getElementBottomDistance():this.getWindowBottomDistance()},n.getWindowBottomDistance=function(){var e=this.top+this.element.clientHeight,i=t.pageYOffset+this.windowHeight;return e-i},n.getElementBottomDistance=function(){var t=this.scroller.scrollHeight,e=this.scroller.scrollTop+this.scroller.clientHeight;return t-e},n.onResize=function(){this.updateMeasurements()},i.debounceMethod(e,"onResize",150),e}),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/history",["./core","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,function(t,e,i){var n=e.prototype;e.defaults.history="replace";var o=document.createElement("a");return e.create.history=function(){if(this.options.history){o.href=this.getAbsolutePath();var t=o.origin||o.protocol+"//"+o.host,e=t==location.origin;return e?void(this.options.append?this.createHistoryAppend():this.createHistoryPageLoad()):void console.error("[InfiniteScroll] cannot set history with different origin: "+o.origin+" on "+location.origin+" . History behavior disabled.")}},n.createHistoryAppend=function(){this.updateMeasurements(),this.updateScroller(),this.scrollPages=[{top:0,path:location.href,title:document.title}],this.scrollPageIndex=0,this.scrollHistoryHandler=this.onScrollHistory.bind(this),this.unloadHandler=this.onUnload.bind(this),this.scroller.addEventListener("scroll",this.scrollHistoryHandler),this.on("append",this.onAppendHistory),this.bindHistoryAppendEvents(!0)},n.bindHistoryAppendEvents=function(e){var i=e?"addEventListener":"removeEventListener";this.scroller[i]("scroll",this.scrollHistoryHandler),t[i]("unload",this.unloadHandler)},n.createHistoryPageLoad=function(){this.on("load",this.onPageLoadHistory)},e.destroy.history=n.destroyHistory=function(){var t=this.options.history&&this.options.append;t&&this.bindHistoryAppendEvents(!1)},n.onAppendHistory=function(t,e,i){if(i&&i.length){var n=i[0],r=this.getElementScrollY(n);o.href=e,this.scrollPages.push({top:r,path:o.href,title:t.title})}},n.getElementScrollY=function(t){return this.options.elementScroll?this.getElementElementScrollY(t):this.getElementWindowScrollY(t)},n.getElementWindowScrollY=function(e){var i=e.getBoundingClientRect();return i.top+t.pageYOffset},n.getElementElementScrollY=function(t){return t.offsetTop-this.top},n.onScrollHistory=function(){for(var t,e,i=this.getScrollViewY(),n=0;n<this.scrollPages.length;n++){var o=this.scrollPages[n];if(o.top>=i)break;t=n,e=o}t!=this.scrollPageIndex&&(this.scrollPageIndex=t,this.setHistory(e.title,e.path))},i.debounceMethod(e,"onScrollHistory",150),n.getScrollViewY=function(){return this.options.elementScroll?this.scroller.scrollTop+this.scroller.clientHeight/2:t.pageYOffset+this.windowHeight/2},n.setHistory=function(t,e){var i=this.options.history,n=i&&history[i+"State"];n&&(history[i+"State"](null,t,e),this.options.historyTitle&&(document.title=t),this.dispatchEvent("history",null,[t,e]))},n.onUnload=function(){var e=this.scrollPageIndex;if(0!==e){var i=this.scrollPages[e],n=t.pageYOffset-i.top+this.top;this.destroyHistory(),scrollTo(0,n)}},n.onPageLoadHistory=function(t,e){this.setHistory(t.title,e)},e}),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/button",["./core","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,function(t,e,i){function n(t,e){this.element=t,this.infScroll=e,this.clickHandler=this.onClick.bind(this),this.element.addEventListener("click",this.clickHandler),e.on("request",this.disable.bind(this)),e.on("load",this.enable.bind(this)),e.on("error",this.hide.bind(this)),e.on("last",this.hide.bind(this))}return e.create.button=function(){var t=i.getQueryElement(this.options.button);if(t)return void(this.button=new n(t,this))},e.destroy.button=function(){this.button&&this.button.destroy()},n.prototype.onClick=function(t){t.preventDefault(),this.infScroll.loadNextPage()},n.prototype.enable=function(){this.element.removeAttribute("disabled")},n.prototype.disable=function(){this.element.disabled="disabled"},n.prototype.hide=function(){this.element.style.display="none"},n.prototype.destroy=function(){this.element.removeEventListener("click",this.clickHandler)},e.Button=n,e}),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/status",["./core","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,function(t,e,i){function n(t){r(t,"none")}function o(t){r(t,"block")}function r(t,e){t&&(t.style.display=e)}var s=e.prototype;return e.create.status=function(){var t=i.getQueryElement(this.options.status);t&&(this.statusElement=t,this.statusEventElements={request:t.querySelector(".infinite-scroll-request"),error:t.querySelector(".infinite-scroll-error"),last:t.querySelector(".infinite-scroll-last")},this.on("request",this.showRequestStatus),this.on("error",this.showErrorStatus),this.on("last",this.showLastStatus),this.bindHideStatus("on"))},s.bindHideStatus=function(t){var e=this.options.append?"append":"load";this[t](e,this.hideAllStatus)},s.showRequestStatus=function(){this.showStatus("request")},s.showErrorStatus=function(){this.showStatus("error")},s.showLastStatus=function(){this.showStatus("last"),this.bindHideStatus("off")},s.showStatus=function(t){o(this.statusElement),this.hideStatusEventElements();var e=this.statusEventElements[t];o(e)},s.hideAllStatus=function(){n(this.statusElement),this.hideStatusEventElements()},s.hideStatusEventElements=function(){for(var t in this.statusEventElements){var e=this.statusEventElements[t];n(e)}},e}),function(t,e){"function"==typeof define&&define.amd?define(["infinite-scroll/js/core","infinite-scroll/js/page-load","infinite-scroll/js/scroll-watch","infinite-scroll/js/history","infinite-scroll/js/button","infinite-scroll/js/status"],e):"object"==typeof module&&module.exports&&(module.exports=e(require("./core"),require("./page-load"),require("./scroll-watch"),require("./history"),require("./button"),require("./status")))}(window,function(t){return t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,function(t,e){function i(t,e){for(var i in e)t[i]=e[i];return t}function n(t){if(Array.isArray(t))return t;var e="object"==typeof t&&"number"==typeof t.length;return e?h.call(t):[t]}function o(t,e,r){if(!(this instanceof o))return new o(t,e,r);var s=t;return"string"==typeof t&&(s=document.querySelectorAll(t)),s?(this.elements=n(s),this.options=i({},this.options),"function"==typeof e?r=e:i(this.options,e),r&&this.on("always",r),this.getImages(),l&&(this.jqDeferred=new l.Deferred),void setTimeout(this.check.bind(this))):void a.error("Bad element for imagesLoaded "+(s||t))}function r(t){this.img=t}function s(t,e){this.url=t,this.element=e,this.img=new Image}var l=t.jQuery,a=t.console,h=Array.prototype.slice;o.prototype=Object.create(e.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),this.options.background===!0&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&c[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background){var r=t.querySelectorAll(this.options.background);for(n=0;n<r.length;n++){var s=r[n];this.addElementBackgroundImages(s)}}}};var c={1:!0,9:!0,11:!0};return o.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,t),n=i.exec(e.backgroundImage)}},o.prototype.addImage=function(t){var e=new r(t);this.images.push(e)},o.prototype.addBackground=function(t,e){var i=new s(t,e);this.images.push(i)},o.prototype.check=function(){function t(t,i,n){setTimeout(function(){e.progress(t,i,n)})}var e=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(e){e.once("progress",t),e.check()}):void this.complete()},o.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+i,t,e)},o.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},r.prototype=Object.create(e.prototype),r.prototype.check=function(){var t=this.getIsImageComplete();return t?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},r.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},r.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},r.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype=Object.create(r.prototype),s.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var t=this.getIsImageComplete();t&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},o.makeJQueryPlugin=function(e){e=e||t.jQuery,e&&(l=e,l.fn.imagesLoaded=function(t,e){var i=new o(this,t,e);return i.jqDeferred.promise(l(this))})},o.makeJQueryPlugin(),o});
|
|
|
|
|
|
|
|
|
|
1 |
/*!
|
2 |
+
* Infinite Scroll PACKAGED v4.0.1
|
3 |
* Automatically add next page
|
4 |
*
|
5 |
* Licensed GPLv3 for open source use
|
6 |
* or Infinite Scroll Commercial License for commercial use
|
7 |
*
|
8 |
* https://infinite-scroll.com
|
9 |
+
* Copyright 2018-2020 Metafizzy
|
10 |
*/
|
11 |
+
!function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,(function(t,e){let i=t.console,n=void 0===i?function(){}:function(t){i.error(t)};return function(i,o,s){(s=s||e||t.jQuery)&&(o.prototype.option||(o.prototype.option=function(t){t&&(this.options=Object.assign(this.options||{},t))}),s.fn[i]=function(t,...e){return"string"==typeof t?function(t,e,o){let r,l=`$().${i}("${e}")`;return t.each((function(t,h){let a=s.data(h,i);if(!a)return void n(`${i} not initialized. Cannot call method ${l}`);let c=a[e];if(!c||"_"==e.charAt(0))return void n(`${l} is not a valid method`);let u=c.apply(a,o);r=void 0===r?u:r})),void 0!==r?r:t}(this,t,e):(r=t,this.each((function(t,e){let n=s.data(e,i);n?(n.option(r),n._init()):(n=new o(e,r),s.data(e,i,n))})),this);var r})}})),function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},n=i[t]=i[t]||[];return n.includes(e)||n.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let n=i.indexOf(e);return-1!=n&&i.splice(n,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let n=this._onceEvents&&this._onceEvents[t];for(let o of i){n&&n[o]&&(this.off(t,o),delete n[o]),o.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t):t.fizzyUIUtils=e(t)}(this,(function(t){let e={extend:function(t,e){return Object.assign(t,e)},modulo:function(t,e){return(t%e+e)%e},makeArray:function(t){if(Array.isArray(t))return t;if(null==t)return[];return"object"==typeof t&&"number"==typeof t.length?[...t]:[t]},removeFrom:function(t,e){let i=t.indexOf(e);-1!=i&&t.splice(i,1)},getParent:function(t,e){for(;t.parentNode&&t!=document.body;)if((t=t.parentNode).matches(e))return t},getQueryElement:function(t){return"string"==typeof t?document.querySelector(t):t},handleEvent:function(t){let e="on"+t.type;this[e]&&this[e](t)},filterFindElements:function(t,i){return(t=e.makeArray(t)).filter((t=>t instanceof HTMLElement)).reduce(((t,e)=>{if(!i)return t.push(e),t;e.matches(i)&&t.push(e);let n=e.querySelectorAll(i);return t=t.concat(...n)}),[])},debounceMethod:function(t,e,i){i=i||100;let n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){clearTimeout(this[o]);let t=arguments;this[o]=setTimeout((()=>{n.apply(this,t),delete this[o]}),i)}},docReady:function(t){let e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},toDashed:function(t){return t.replace(/(.)([A-Z])/g,(function(t,e,i){return e+"-"+i})).toLowerCase()}},i=t.console;return e.htmlInit=function(n,o){e.docReady((function(){let s="data-"+e.toDashed(o),r=document.querySelectorAll(`[${s}]`),l=t.jQuery;[...r].forEach((t=>{let e,r=t.getAttribute(s);try{e=r&&JSON.parse(r)}catch(e){return void(i&&i.error(`Error parsing ${s} on ${t.className}: ${e}`))}let h=new n(t,e);l&&l.data(t,o,h)}))}))},e})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("fizzy-ui-utils")):t.InfiniteScroll=e(t,t.EvEmitter,t.fizzyUIUtils)}(window,(function(t,e,i){let n=t.jQuery,o={};function s(t,e){let r=i.getQueryElement(t);if(r){if((t=r).infiniteScrollGUID){let i=o[t.infiniteScrollGUID];return i.option(e),i}this.element=t,this.options={...s.defaults},this.option(e),n&&(this.$element=n(this.element)),this.create()}else console.error("Bad element for InfiniteScroll: "+(r||t))}s.defaults={},s.create={},s.destroy={};let r=s.prototype;Object.assign(r,e.prototype);let l=0;r.create=function(){let t=this.guid=++l;if(this.element.infiniteScrollGUID=t,o[t]=this,this.pageIndex=1,this.loadCount=0,this.updateGetPath(),this.getPath&&this.getPath()){this.updateGetAbsolutePath(),this.log("initialized",[this.element.className]),this.callOnInit();for(let t in s.create)s.create[t].call(this)}else console.error("Disabling InfiniteScroll")},r.option=function(t){Object.assign(this.options,t)},r.callOnInit=function(){let t=this.options.onInit;t&&t.call(this,this)},r.dispatchEvent=function(t,e,i){this.log(t,i);let o=e?[e].concat(i):i;if(this.emitEvent(t,o),!n||!this.$element)return;let s=t+=".infiniteScroll";if(e){let i=n.Event(e);i.type=t,s=i}this.$element.trigger(s,i)};let h={initialized:t=>`on ${t}`,request:t=>`URL: ${t}`,load:(t,e)=>`${t.title||""}. URL: ${e}`,error:(t,e)=>`${t}. URL: ${e}`,append:(t,e,i)=>`${i.length} items. URL: ${e}`,last:(t,e)=>`URL: ${e}`,history:(t,e)=>`URL: ${e}`,pageIndex:function(t,e){return`current page determined to be: ${t} from ${e}`}};r.log=function(t,e){if(!this.options.debug)return;let i=`[InfiniteScroll] ${t}`,n=h[t];n&&(i+=". "+n.apply(this,e)),console.log(i)},r.updateMeasurements=function(){this.windowHeight=t.innerHeight;let e=this.element.getBoundingClientRect();this.top=e.top+t.scrollY},r.updateScroller=function(){let e=this.options.elementScroll;if(e){if(this.scroller=!0===e?this.element:i.getQueryElement(e),!this.scroller)throw new Error(`Unable to find elementScroll: ${e}`)}else this.scroller=t},r.updateGetPath=function(){let t=this.options.path;if(!t)return void console.error(`InfiniteScroll path option required. Set as: ${t}`);let e=typeof t;"function"!=e?"string"==e&&t.match("{{#}}")?this.updateGetPathTemplate(t):this.updateGetPathSelector(t):this.getPath=t},r.updateGetPathTemplate=function(t){this.getPath=()=>{let e=this.pageIndex+1;return t.replace("{{#}}",e)};let e=t.replace(/(\\\?|\?)/,"\\?").replace("{{#}}","(\\d\\d?\\d?)"),i=new RegExp(e),n=location.href.match(i);n&&(this.pageIndex=parseInt(n[1],10),this.log("pageIndex",[this.pageIndex,"template string"]))};let a=[/^(.*?\/?page\/?)(\d\d?\d?)(.*?$)/,/^(.*?\/?\?page=)(\d\d?\d?)(.*?$)/,/(.*?)(\d\d?\d?)(?!.*\d)(.*?$)/],c=s.getPathParts=function(t){if(t)for(let e of a){let i=t.match(e);if(i){let[,t,e,n]=i;return{begin:t,index:e,end:n}}}};r.updateGetPathSelector=function(t){let e=document.querySelector(t);if(!e)return void console.error(`Bad InfiniteScroll path option. Next link not found: ${t}`);let i=e.getAttribute("href"),n=c(i);if(!n)return void console.error(`InfiniteScroll unable to parse next link href: ${i}`);let{begin:o,index:s,end:r}=n;this.isPathSelector=!0,this.getPath=()=>o+(this.pageIndex+1)+r,this.pageIndex=parseInt(s,10)-1,this.log("pageIndex",[this.pageIndex,"next link"])},r.updateGetAbsolutePath=function(){let t=this.getPath();if(t.match(/^http/)||t.match(/^\//))return void(this.getAbsolutePath=this.getPath);let{pathname:e}=location,i=t.match(/^\?/),n=e.substring(0,e.lastIndexOf("/")),o=i?e:n+"/";this.getAbsolutePath=()=>o+this.getPath()},s.create.hideNav=function(){let t=i.getQueryElement(this.options.hideNav);t&&(t.style.display="none",this.nav=t)},s.destroy.hideNav=function(){this.nav&&(this.nav.style.display="")},r.destroy=function(){this.allOff();for(let t in s.destroy)s.destroy[t].call(this);delete this.element.infiniteScrollGUID,delete o[this.guid],n&&this.$element&&n.removeData(this.element,"infiniteScroll")},s.throttle=function(t,e){let i,n;return e=e||200,function(){let o=+new Date,s=arguments,r=()=>{i=o,t.apply(this,s)};i&&o<i+e?(clearTimeout(n),n=setTimeout(r,e)):r()}},s.data=function(t){let e=(t=i.getQueryElement(t))&&t.infiniteScrollGUID;return e&&o[e]},s.setJQuery=function(t){n=t},i.htmlInit(s,"infinite-scroll"),r._init=function(){};let{jQueryBridget:u}=t;return n&&u&&u("infiniteScroll",s,n),s})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("./core")):e(t,t.InfiniteScroll)}(window,(function(t,e){let i=e.prototype;Object.assign(e.defaults,{loadOnScroll:!0,checkLastPage:!0,responseBody:"text",domParseResponse:!0}),e.create.pageLoad=function(){this.canLoad=!0,this.on("scrollThreshold",this.onScrollThresholdLoad),this.on("load",this.checkLastPage),this.options.outlayer&&this.on("append",this.onAppendOutlayer)},i.onScrollThresholdLoad=function(){this.options.loadOnScroll&&this.loadNextPage()};let n=new DOMParser;function o(t){let e=document.createDocumentFragment();return t&&e.append(...t),e}return i.loadNextPage=function(){if(this.isLoading||!this.canLoad)return;let{responseBody:t,domParseResponse:e,fetchOptions:i}=this.options,o=this.getAbsolutePath();this.isLoading=!0,"function"==typeof i&&(i=i());let s=fetch(o,i).then((i=>{if(!i.ok){let t=new Error(i.statusText);return this.onPageError(t,o,i),{response:i}}return i[t]().then((s=>("text"==t&&e&&(s=n.parseFromString(s,"text/html")),204==i.status?(this.lastPageReached(s,o),{body:s,response:i}):this.onPageLoad(s,o,i))))})).catch((t=>{this.onPageError(t,o)}));return this.dispatchEvent("request",null,[o,s]),s},i.onPageLoad=function(t,e,i){return this.options.append||(this.isLoading=!1),this.pageIndex++,this.loadCount++,this.dispatchEvent("load",null,[t,e,i]),this.appendNextPage(t,e,i)},i.appendNextPage=function(t,e,i){let{append:n,responseBody:s,domParseResponse:r}=this.options;if(!("text"==s&&r)||!n)return{body:t,response:i};let l=t.querySelectorAll(n),h={body:t,response:i,items:l};if(!l||!l.length)return this.lastPageReached(t,e),h;let a=o(l),c=()=>(this.appendItems(l,a),this.isLoading=!1,this.dispatchEvent("append",null,[t,e,l,i]),h);return this.options.outlayer?this.appendOutlayerItems(a,c):c()},i.appendItems=function(t,e){t&&t.length&&(function(t){let e=t.querySelectorAll("script");for(let t of e){let e=document.createElement("script"),i=t.attributes;for(let t of i)e.setAttribute(t.name,t.value);e.innerHTML=t.innerHTML,t.parentNode.replaceChild(e,t)}}(e=e||o(t)),this.element.appendChild(e))},i.appendOutlayerItems=function(i,n){let o=e.imagesLoaded||t.imagesLoaded;return o?new Promise((function(t){o(i,(function(){let e=n();t(e)}))})):(console.error("[InfiniteScroll] imagesLoaded required for outlayer option"),void(this.isLoading=!1))},i.onAppendOutlayer=function(t,e,i){this.options.outlayer.appended(i)},i.checkLastPage=function(t,e){let i,{checkLastPage:n,path:o}=this.options;if(n){if("function"==typeof o){if(!this.getPath())return void this.lastPageReached(t,e)}"string"==typeof n?i=n:this.isPathSelector&&(i=o),i&&t.querySelector&&(t.querySelector(i)||this.lastPageReached(t,e))}},i.lastPageReached=function(t,e){this.canLoad=!1,this.dispatchEvent("last",null,[t,e])},i.onPageError=function(t,e,i){return this.isLoading=!1,this.canLoad=!1,this.dispatchEvent("error",null,[t,e,i]),t},e.create.prefill=function(){if(!this.options.prefill)return;let t=this.options.append;t?(this.updateMeasurements(),this.updateScroller(),this.isPrefilling=!0,this.on("append",this.prefill),this.once("error",this.stopPrefill),this.once("last",this.stopPrefill),this.prefill()):console.error(`append option required for prefill. Set as :${t}`)},i.prefill=function(){let t=this.getPrefillDistance();this.isPrefilling=t>=0,this.isPrefilling?(this.log("prefill"),this.loadNextPage()):this.stopPrefill()},i.getPrefillDistance=function(){return this.options.elementScroll?this.scroller.clientHeight-this.scroller.scrollHeight:this.windowHeight-this.element.clientHeight},i.stopPrefill=function(){this.log("stopPrefill"),this.off("append",this.prefill)},e})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,(function(t,e,i){let n=e.prototype;return Object.assign(e.defaults,{scrollThreshold:400}),e.create.scrollWatch=function(){this.pageScrollHandler=this.onPageScroll.bind(this),this.resizeHandler=this.onResize.bind(this);let t=this.options.scrollThreshold;(t||0===t)&&this.enableScrollWatch()},e.destroy.scrollWatch=function(){this.disableScrollWatch()},n.enableScrollWatch=function(){this.isScrollWatching||(this.isScrollWatching=!0,this.updateMeasurements(),this.updateScroller(),this.on("last",this.disableScrollWatch),this.bindScrollWatchEvents(!0))},n.disableScrollWatch=function(){this.isScrollWatching&&(this.bindScrollWatchEvents(!1),delete this.isScrollWatching)},n.bindScrollWatchEvents=function(e){let i=e?"addEventListener":"removeEventListener";this.scroller[i]("scroll",this.pageScrollHandler),t[i]("resize",this.resizeHandler)},n.onPageScroll=e.throttle((function(){this.getBottomDistance()<=this.options.scrollThreshold&&this.dispatchEvent("scrollThreshold")})),n.getBottomDistance=function(){let e,i;return this.options.elementScroll?(e=this.scroller.scrollHeight,i=this.scroller.scrollTop+this.scroller.clientHeight):(e=this.top+this.element.clientHeight,i=t.scrollY+this.windowHeight),e-i},n.onResize=function(){this.updateMeasurements()},i.debounceMethod(e,"onResize",150),e})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,(function(t,e,i){let n=e.prototype;Object.assign(e.defaults,{history:"replace"});let o=document.createElement("a");return e.create.history=function(){if(!this.options.history)return;o.href=this.getAbsolutePath(),(o.origin||o.protocol+"//"+o.host)==location.origin?this.options.append?this.createHistoryAppend():this.createHistoryPageLoad():console.error(`[InfiniteScroll] cannot set history with different origin: ${o.origin} on ${location.origin} . History behavior disabled.`)},n.createHistoryAppend=function(){this.updateMeasurements(),this.updateScroller(),this.scrollPages=[{top:0,path:location.href,title:document.title}],this.scrollPage=this.scrollPages[0],this.scrollHistoryHandler=this.onScrollHistory.bind(this),this.unloadHandler=this.onUnload.bind(this),this.scroller.addEventListener("scroll",this.scrollHistoryHandler),this.on("append",this.onAppendHistory),this.bindHistoryAppendEvents(!0)},n.bindHistoryAppendEvents=function(e){let i=e?"addEventListener":"removeEventListener";this.scroller[i]("scroll",this.scrollHistoryHandler),t[i]("unload",this.unloadHandler)},n.createHistoryPageLoad=function(){this.on("load",this.onPageLoadHistory)},e.destroy.history=n.destroyHistory=function(){this.options.history&&this.options.append&&this.bindHistoryAppendEvents(!1)},n.onAppendHistory=function(t,e,i){if(!i||!i.length)return;let n=i[0],s=this.getElementScrollY(n);o.href=e,this.scrollPages.push({top:s,path:o.href,title:t.title})},n.getElementScrollY=function(e){if(this.options.elementScroll)return e.offsetTop-this.top;return e.getBoundingClientRect().top+t.scrollY},n.onScrollHistory=function(){let t=this.getClosestScrollPage();t!=this.scrollPage&&(this.scrollPage=t,this.setHistory(t.title,t.path))},i.debounceMethod(e,"onScrollHistory",150),n.getClosestScrollPage=function(){let e,i;e=this.options.elementScroll?this.scroller.scrollTop+this.scroller.clientHeight/2:t.scrollY+this.windowHeight/2;for(let t of this.scrollPages){if(t.top>=e)break;i=t}return i},n.setHistory=function(t,e){let i=this.options.history;i&&history[i+"State"]&&(history[i+"State"](null,t,e),this.options.historyTitle&&(document.title=t),this.dispatchEvent("history",null,[t,e]))},n.onUnload=function(){if(0===this.scrollPage.top)return;let e=t.scrollY-this.scrollPage.top+this.top;this.destroyHistory(),scrollTo(0,e)},n.onPageLoadHistory=function(t,e){this.setHistory(t.title,e)},e})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,(function(t,e,i){class n{constructor(t,e){this.element=t,this.infScroll=e,this.clickHandler=this.onClick.bind(this),this.element.addEventListener("click",this.clickHandler),e.on("request",this.disable.bind(this)),e.on("load",this.enable.bind(this)),e.on("error",this.hide.bind(this)),e.on("last",this.hide.bind(this))}onClick(t){t.preventDefault(),this.infScroll.loadNextPage()}enable(){this.element.removeAttribute("disabled")}disable(){this.element.disabled="disabled"}hide(){this.element.style.display="none"}destroy(){this.element.removeEventListener("click",this.clickHandler)}}return e.create.button=function(){let t=i.getQueryElement(this.options.button);t&&(this.button=new n(t,this))},e.destroy.button=function(){this.button&&this.button.destroy()},e.Button=n,e})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,(function(t,e,i){let n=e.prototype;function o(t){r(t,"none")}function s(t){r(t,"block")}function r(t,e){t&&(t.style.display=e)}return e.create.status=function(){let t=i.getQueryElement(this.options.status);t&&(this.statusElement=t,this.statusEventElements={request:t.querySelector(".infinite-scroll-request"),error:t.querySelector(".infinite-scroll-error"),last:t.querySelector(".infinite-scroll-last")},this.on("request",this.showRequestStatus),this.on("error",this.showErrorStatus),this.on("last",this.showLastStatus),this.bindHideStatus("on"))},n.bindHideStatus=function(t){let e=this.options.append?"append":"load";this[t](e,this.hideAllStatus)},n.showRequestStatus=function(){this.showStatus("request")},n.showErrorStatus=function(){this.showStatus("error")},n.showLastStatus=function(){this.showStatus("last"),this.bindHideStatus("off")},n.showStatus=function(t){s(this.statusElement),this.hideStatusEventElements(),s(this.statusEventElements[t])},n.hideAllStatus=function(){o(this.statusElement),this.hideStatusEventElements()},n.hideStatusEventElements=function(){for(let t in this.statusEventElements){o(this.statusEventElements[t])}},e})),
|
12 |
+
/*!
|
13 |
+
* imagesLoaded v4.1.4
|
14 |
+
* JavaScript is all like "You images are done yet or what?"
|
15 |
+
* MIT License
|
16 |
+
*/
|
17 |
+
function(t,e){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],(function(i){return e(t,i)})):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){"use strict";var i=t.jQuery,n=t.console;function o(t,e){for(var i in e)t[i]=e[i];return t}var s=Array.prototype.slice;function r(t,e,l){if(!(this instanceof r))return new r(t,e,l);var h,a=t;("string"==typeof t&&(a=document.querySelectorAll(t)),a)?(this.elements=(h=a,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?s.call(h):[h]),this.options=o({},this.options),"function"==typeof e?l=e:o(this.options,e),l&&this.on("always",l),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):n.error("Bad element for imagesLoaded "+(a||t))}r.prototype=Object.create(e.prototype),r.prototype.options={},r.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},r.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&l[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background){var s=t.querySelectorAll(this.options.background);for(n=0;n<s.length;n++){var r=s[n];this.addElementBackgroundImages(r)}}}};var l={1:!0,9:!0,11:!0};function h(t){this.img=t}function a(t,e){this.url=t,this.element=e,this.img=new Image}return r.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,t),n=i.exec(e.backgroundImage)}},r.prototype.addImage=function(t){var e=new h(t);this.images.push(e)},r.prototype.addBackground=function(t,e){var i=new a(t,e);this.images.push(i)},r.prototype.check=function(){var t=this;function e(e,i,n){setTimeout((function(){t.progress(e,i,n)}))}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach((function(t){t.once("progress",e),t.check()})):this.complete()},r.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&n&&n.log("progress: "+i,t,e)},r.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},h.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},a.prototype=Object.create(h.prototype),a.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},a.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},a.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},r.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((i=e).fn.imagesLoaded=function(t,e){return new r(this,t,e).jqDeferred.promise(i(this))})},r.makeJQueryPlugin(),r}));
|
assets/jstree/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Copyright (c) 2014 Ivan Bozhanov
|
2 |
+
|
3 |
+
Permission is hereby granted, free of charge, to any person
|
4 |
+
obtaining a copy of this software and associated documentation
|
5 |
+
files (the "Software"), to deal in the Software without
|
6 |
+
restriction, including without limitation the rights to use,
|
7 |
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8 |
+
copies of the Software, and to permit persons to whom the
|
9 |
+
Software is furnished to do so, subject to the following
|
10 |
+
conditions:
|
11 |
+
|
12 |
+
The above copyright notice and this permission notice shall be
|
13 |
+
included in all copies or substantial portions of the Software.
|
14 |
+
|
15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
16 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
17 |
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
18 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
19 |
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
20 |
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
22 |
+
OTHER DEALINGS IN THE SOFTWARE.
|
assets/jstree/README.md
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# jstree
|
2 |
+
|
3 |
+
[jsTree](http://www.jstree.com/) is jquery plugin, that provides interactive trees. It is absolutely free, [open source](https://github.com/vakata/jstree) and distributed under the MIT license.
|
4 |
+
|
5 |
+
jsTree is easily extendable, themable and configurable, it supports HTML & JSON data sources, AJAX & async callback loading.
|
6 |
+
|
7 |
+
jsTree functions properly in either box-model (content-box or border-box), can be loaded as an AMD module, and has a built in mobile theme for responsive design, that can easily be customized. It uses jQuery's event system, so binding callbacks on various events in the tree is familiar and easy.
|
8 |
+
|
9 |
+
You also get:
|
10 |
+
* drag & drop support
|
11 |
+
* keyboard navigation
|
12 |
+
* inline edit, create and delete
|
13 |
+
* tri-state checkboxes
|
14 |
+
* fuzzy searching
|
15 |
+
* customizable node types
|
16 |
+
|
17 |
+
_For more information, examples and API docs head on over to [the wiki page](https://github.com/vakata/jstree/wiki) and [jstree.com](http://www.jstree.com)_.
|
18 |
+
_Feel free to ask any questions on the [discussions board](https://github.com/vakata/jstree/discussions)._
|
19 |
+
_The PHP demos are now in a [separate repository](https://github.com/vakata/jstree-php-demos)._
|
20 |
+
|
21 |
+
## License & Contributing
|
22 |
+
|
23 |
+
_Please do NOT edit files in the "dist" subdirectory as they are generated via grunt. You'll find source code in the "src" subdirectory!_
|
24 |
+
|
25 |
+
If you want to you can always [sponsor me](https://github.com/sponsors/vakata) or [donate a small amount][paypal] to help the development of jstree.
|
26 |
+
|
27 |
+
[paypal]: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=paypal@vakata.com¤cy_code=USD&amount=&return=http://jstree.com/donation&item_name=Buy+me+a+coffee+for+jsTree
|
28 |
+
|
29 |
+
Copyright (c) 2020 Ivan Bozhanov (http://vakata.com)
|
30 |
+
|
31 |
+
Licensed under the [MIT license](http://www.opensource.org/licenses/mit-license.php).
|
assets/jstree/jstree.js
CHANGED
@@ -13,7 +13,7 @@
|
|
13 |
}(function ($, undefined) {
|
14 |
"use strict";
|
15 |
/*!
|
16 |
-
* jsTree 3.3.
|
17 |
* http://jstree.com/
|
18 |
*
|
19 |
* Copyright (c) 2014 Ivan Bozhanov (http://vakata.com)
|
@@ -63,7 +63,7 @@
|
|
63 |
* specifies the jstree version in use
|
64 |
* @name $.jstree.version
|
65 |
*/
|
66 |
-
version : '3.3.
|
67 |
/**
|
68 |
* holds all the default options used when creating new instances
|
69 |
* @name $.jstree.defaults
|
@@ -274,7 +274,7 @@
|
|
274 |
* You can also pass in a HTML string or a JSON array here.
|
275 |
*
|
276 |
* It is possible to pass in a standard jQuery-like AJAX config and jstree will automatically determine if the response is JSON or HTML and use that to populate the tree.
|
277 |
-
* In addition to the standard jQuery ajax options here you can
|
278 |
*
|
279 |
* The last option is to specify a function, that function will receive the node being loaded as argument and a second param which is a function which should be called with the result.
|
280 |
*
|
@@ -453,6 +453,12 @@
|
|
453 |
* @name $.jstree.defaults.core.restore_focus
|
454 |
*/
|
455 |
restore_focus : true,
|
|
|
|
|
|
|
|
|
|
|
|
|
456 |
/**
|
457 |
* Default keyboard shortcuts (an object where each key is the button name or combo - like 'enter', 'ctrl-space', 'p', etc and the value is the function to execute in the instance's scope)
|
458 |
* @name $.jstree.defaults.core.keyboard
|
@@ -476,31 +482,31 @@
|
|
476 |
}
|
477 |
else {
|
478 |
var o = this.get_parent(e.currentTarget);
|
479 |
-
if(o && o.id !== $.jstree.root) { this.get_node(o, true).children('.jstree-anchor').focus
|
480 |
}
|
481 |
},
|
482 |
'up': function (e) {
|
483 |
// up
|
484 |
e.preventDefault();
|
485 |
var o = this.get_prev_dom(e.currentTarget);
|
486 |
-
if(o && o.length) { o.children('.jstree-anchor').focus
|
487 |
},
|
488 |
'right': function (e) {
|
489 |
// right
|
490 |
e.preventDefault();
|
491 |
if(this.is_closed(e.currentTarget)) {
|
492 |
-
this.open_node(e.currentTarget, function (o) { this.get_node(o, true).children('.jstree-anchor').focus
|
493 |
}
|
494 |
else if (this.is_open(e.currentTarget)) {
|
495 |
var o = this.get_node(e.currentTarget, true).children('.jstree-children')[0];
|
496 |
-
if(o) { $(this._firstChild(o)).children('.jstree-anchor').focus
|
497 |
}
|
498 |
},
|
499 |
'down': function (e) {
|
500 |
// down
|
501 |
e.preventDefault();
|
502 |
var o = this.get_next_dom(e.currentTarget);
|
503 |
-
if(o && o.length) { o.children('.jstree-anchor').focus
|
504 |
},
|
505 |
'*': function (e) {
|
506 |
// aria defines * on numpad as open_all - not very common
|
@@ -510,12 +516,12 @@
|
|
510 |
// home
|
511 |
e.preventDefault();
|
512 |
var o = this._firstChild(this.get_container_ul()[0]);
|
513 |
-
if(o) { $(o).children('.jstree-anchor').filter(':visible').focus
|
514 |
},
|
515 |
'end': function (e) {
|
516 |
// end
|
517 |
e.preventDefault();
|
518 |
-
this.element.find('.jstree-anchor').filter(':visible').last().focus
|
519 |
},
|
520 |
'f2': function (e) {
|
521 |
// f2 - safe to include - if check_callback is false it will fail
|
@@ -602,7 +608,7 @@
|
|
602 |
return this.nodeType === 3 && (!this.nodeValue || /^\s+$/.test(this.nodeValue));
|
603 |
})
|
604 |
.remove();
|
605 |
-
this.element.html("<"+"ul class='jstree-container-ul jstree-children' role='group'><"+"li id='j"+this._id+"_loading' class='jstree-initial-node jstree-loading jstree-leaf jstree-last' role='
|
606 |
this.element.attr('aria-activedescendant','j' + this._id + '_loading');
|
607 |
this._data.core.li_height = this.get_container_ul().children("li").first().outerHeight() || 24;
|
608 |
this._data.core.node = this._create_prototype_node();
|
@@ -643,7 +649,7 @@
|
|
643 |
*/
|
644 |
_create_prototype_node : function () {
|
645 |
var _node = document.createElement('LI'), _temp1, _temp2;
|
646 |
-
_node.setAttribute('role', '
|
647 |
_temp1 = document.createElement('I');
|
648 |
_temp1.className = 'jstree-icon jstree-ocl';
|
649 |
_temp1.setAttribute('role', 'presentation');
|
@@ -747,30 +753,30 @@
|
|
747 |
}
|
748 |
}
|
749 |
})
|
750 |
-
.on("mousedown.jstree",
|
751 |
if(e.target === this.element[0]) {
|
752 |
e.preventDefault(); // prevent losing focus when clicking scroll arrows (FF, Chrome)
|
753 |
was_click = +(new Date()); // ie does not allow to prevent losing focus
|
754 |
}
|
755 |
-
}
|
756 |
.on("mousedown.jstree", ".jstree-ocl", function (e) {
|
757 |
e.preventDefault(); // prevent any node inside from losing focus when clicking the open/close icon
|
758 |
})
|
759 |
-
.on("click.jstree", ".jstree-ocl",
|
760 |
this.toggle_node(e.target);
|
761 |
-
}
|
762 |
-
.on("dblclick.jstree", ".jstree-anchor",
|
763 |
if(e.target.tagName && e.target.tagName.toLowerCase() === "input") { return true; }
|
764 |
if(this.settings.core.dblclick_toggle) {
|
765 |
this.toggle_node(e.target);
|
766 |
}
|
767 |
-
}
|
768 |
-
.on("click.jstree", ".jstree-anchor",
|
769 |
e.preventDefault();
|
770 |
-
if(e.currentTarget !== document.activeElement) { $(e.currentTarget).focus
|
771 |
this.activate_node(e.currentTarget, e);
|
772 |
-
}
|
773 |
-
.on('keydown.jstree', '.jstree-anchor',
|
774 |
if(e.target.tagName && e.target.tagName.toLowerCase() === "input") { return true; }
|
775 |
if(this._data.core.rtl) {
|
776 |
if(e.which === 37) { e.which = 39; }
|
@@ -783,8 +789,8 @@
|
|
783 |
return r;
|
784 |
}
|
785 |
}
|
786 |
-
}
|
787 |
-
.on("load_node.jstree",
|
788 |
if(data.status) {
|
789 |
if(data.node.id === $.jstree.root && !this._data.core.loaded) {
|
790 |
this._data.core.loaded = true;
|
@@ -799,7 +805,7 @@
|
|
799 |
this.trigger("loaded");
|
800 |
}
|
801 |
if(!this._data.core.ready) {
|
802 |
-
setTimeout(
|
803 |
if(this.element && !this.get_container_ul().find('.jstree-loading').length) {
|
804 |
this._data.core.ready = true;
|
805 |
if(this._data.core.selected.length) {
|
@@ -822,12 +828,12 @@
|
|
822 |
*/
|
823 |
this.trigger("ready");
|
824 |
}
|
825 |
-
}
|
826 |
}
|
827 |
}
|
828 |
-
}
|
829 |
// quick searching when the tree is focused
|
830 |
-
.on('keypress.jstree',
|
831 |
if(e.target.tagName && e.target.tagName.toLowerCase() === "input") { return true; }
|
832 |
if(tout) { clearTimeout(tout); }
|
833 |
tout = setTimeout(function () {
|
@@ -842,50 +848,50 @@
|
|
842 |
|
843 |
// match for whole word from current node down (including the current node)
|
844 |
if(word.length > 1) {
|
845 |
-
col.slice(ind).each(
|
846 |
if($(v).text().toLowerCase().indexOf(word) === 0) {
|
847 |
-
$(v).focus
|
848 |
end = true;
|
849 |
return false;
|
850 |
}
|
851 |
-
}
|
852 |
if(end) { return; }
|
853 |
|
854 |
// match for whole word from the beginning of the tree
|
855 |
-
col.slice(0, ind).each(
|
856 |
if($(v).text().toLowerCase().indexOf(word) === 0) {
|
857 |
-
$(v).focus
|
858 |
end = true;
|
859 |
return false;
|
860 |
}
|
861 |
-
}
|
862 |
if(end) { return; }
|
863 |
}
|
864 |
// list nodes that start with that letter (only if word consists of a single char)
|
865 |
if(new RegExp('^' + chr.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&') + '+$').test(word)) {
|
866 |
// search for the next node starting with that letter
|
867 |
-
col.slice(ind + 1).each(
|
868 |
if($(v).text().toLowerCase().charAt(0) === chr) {
|
869 |
-
$(v).focus
|
870 |
end = true;
|
871 |
return false;
|
872 |
}
|
873 |
-
}
|
874 |
if(end) { return; }
|
875 |
|
876 |
// search from the beginning
|
877 |
-
col.slice(0, ind + 1).each(
|
878 |
if($(v).text().toLowerCase().charAt(0) === chr) {
|
879 |
-
$(v).focus
|
880 |
end = true;
|
881 |
return false;
|
882 |
}
|
883 |
-
}
|
884 |
if(end) { return; }
|
885 |
}
|
886 |
-
}
|
887 |
// THEME RELATED
|
888 |
-
.on("init.jstree",
|
889 |
var s = this.settings.core.themes;
|
890 |
this._data.core.themes.dots = s.dots;
|
891 |
this._data.core.themes.stripes = s.stripes;
|
@@ -893,19 +899,19 @@
|
|
893 |
this._data.core.themes.ellipsis = s.ellipsis;
|
894 |
this.set_theme(s.name || "default", s.url);
|
895 |
this.set_theme_variant(s.variant);
|
896 |
-
}
|
897 |
-
.on("loading.jstree",
|
898 |
this[ this._data.core.themes.dots ? "show_dots" : "hide_dots" ]();
|
899 |
this[ this._data.core.themes.icons ? "show_icons" : "hide_icons" ]();
|
900 |
this[ this._data.core.themes.stripes ? "show_stripes" : "hide_stripes" ]();
|
901 |
this[ this._data.core.themes.ellipsis ? "show_ellipsis" : "hide_ellipsis" ]();
|
902 |
-
}
|
903 |
-
.on('blur.jstree', '.jstree-anchor',
|
904 |
this._data.core.focused = null;
|
905 |
$(e.currentTarget).filter('.jstree-hovered').trigger('mouseleave');
|
906 |
this.element.attr('tabindex', '0');
|
907 |
-
}
|
908 |
-
.on('focus.jstree', '.jstree-anchor',
|
909 |
var tmp = this.get_node(e.currentTarget);
|
910 |
if(tmp && tmp.id) {
|
911 |
this._data.core.focused = tmp.id;
|
@@ -913,22 +919,22 @@
|
|
913 |
this.element.find('.jstree-hovered').not(e.currentTarget).trigger('mouseleave');
|
914 |
$(e.currentTarget).trigger('mouseenter');
|
915 |
this.element.attr('tabindex', '-1');
|
916 |
-
}
|
917 |
-
.on('focus.jstree',
|
918 |
if(+(new Date()) - was_click > 500 && !this._data.core.focused && this.settings.core.restore_focus) {
|
919 |
was_click = 0;
|
920 |
var act = this.get_node(this.element.attr('aria-activedescendant'), true);
|
921 |
if(act) {
|
922 |
-
act.find('> .jstree-anchor').focus
|
923 |
}
|
924 |
}
|
925 |
-
}
|
926 |
-
.on('mouseenter.jstree', '.jstree-anchor',
|
927 |
this.hover_node(e.currentTarget);
|
928 |
-
}
|
929 |
-
.on('mouseleave.jstree', '.jstree-anchor',
|
930 |
this.dehover_node(e.currentTarget);
|
931 |
-
}
|
932 |
},
|
933 |
/**
|
934 |
* part of the destroying of an instance. Used internally.
|
@@ -979,7 +985,7 @@
|
|
979 |
*/
|
980 |
get_string : function (key) {
|
981 |
var a = this.settings.core.strings;
|
982 |
-
if(
|
983 |
if(a && a[key]) { return a[key]; }
|
984 |
return key;
|
985 |
},
|
@@ -1271,7 +1277,7 @@
|
|
1271 |
*/
|
1272 |
load_node : function (obj, callback) {
|
1273 |
var k, l, i, j, c;
|
1274 |
-
if(
|
1275 |
this._load_nodes(obj.slice(), callback);
|
1276 |
return true;
|
1277 |
}
|
@@ -1308,7 +1314,7 @@
|
|
1308 |
obj.state.failed = false;
|
1309 |
obj.state.loading = true;
|
1310 |
this.get_node(obj, true).addClass("jstree-loading").attr('aria-busy',true);
|
1311 |
-
this._load_node(obj,
|
1312 |
obj = this._model.data[obj.id];
|
1313 |
obj.state.loading = false;
|
1314 |
obj.state.loaded = status;
|
@@ -1343,7 +1349,7 @@
|
|
1343 |
if(callback) {
|
1344 |
callback.call(this, obj, status);
|
1345 |
}
|
1346 |
-
}
|
1347 |
return true;
|
1348 |
},
|
1349 |
/**
|
@@ -1441,8 +1447,8 @@
|
|
1441 |
}
|
1442 |
// return callback.call(this, obj.id === $.jstree.root ? this._append_html_data(obj, this._data.core.original_container_html.clone(true)) : false);
|
1443 |
}
|
1444 |
-
if(
|
1445 |
-
return s.call(this, obj,
|
1446 |
if(d === false) {
|
1447 |
callback.call(this, false);
|
1448 |
}
|
@@ -1452,19 +1458,19 @@
|
|
1452 |
});
|
1453 |
}
|
1454 |
// return d === false ? callback.call(this, false) : callback.call(this, this[typeof d === 'string' ? '_append_html_data' : '_append_json_data'](obj, typeof d === 'string' ? $(d) : d));
|
1455 |
-
}
|
1456 |
}
|
1457 |
if(typeof s === 'object') {
|
1458 |
if(s.url) {
|
1459 |
s = $.extend(true, {}, s);
|
1460 |
-
if(
|
1461 |
s.url = s.url.call(this, obj);
|
1462 |
}
|
1463 |
-
if(
|
1464 |
s.data = s.data.call(this, obj);
|
1465 |
}
|
1466 |
return $.ajax(s)
|
1467 |
-
.done(
|
1468 |
var type = x.getResponseHeader('Content-Type');
|
1469 |
if((type && type.indexOf('json') !== -1) || typeof d === "object") {
|
1470 |
return this._append_json_data(obj, d, function (status) { callback.call(this, status); });
|
@@ -1477,14 +1483,14 @@
|
|
1477 |
this._data.core.last_error = { 'error' : 'ajax', 'plugin' : 'core', 'id' : 'core_04', 'reason' : 'Could not load node', 'data' : JSON.stringify({ 'id' : obj.id, 'xhr' : x }) };
|
1478 |
this.settings.core.error.call(this, this._data.core.last_error);
|
1479 |
return callback.call(this, false);
|
1480 |
-
}
|
1481 |
-
.fail(
|
1482 |
this._data.core.last_error = { 'error' : 'ajax', 'plugin' : 'core', 'id' : 'core_04', 'reason' : 'Could not load node', 'data' : JSON.stringify({ 'id' : obj.id, 'xhr' : f }) };
|
1483 |
callback.call(this, false);
|
1484 |
this.settings.core.error.call(this, this._data.core.last_error);
|
1485 |
-
}
|
1486 |
}
|
1487 |
-
if (
|
1488 |
t = $.extend(true, [], s);
|
1489 |
} else if ($.isPlainObject(s)) {
|
1490 |
t = $.extend(true, {}, s);
|
@@ -1550,7 +1556,7 @@
|
|
1550 |
p = m[par],
|
1551 |
s = this._data.core.selected.length,
|
1552 |
tmp, i, j;
|
1553 |
-
dat.each(
|
1554 |
tmp = this._parse_model_from_html($(v), par, p.parents.concat());
|
1555 |
if(tmp) {
|
1556 |
chd.push(tmp);
|
@@ -1559,7 +1565,7 @@
|
|
1559 |
dpc = dpc.concat(m[tmp].children_d);
|
1560 |
}
|
1561 |
}
|
1562 |
-
}
|
1563 |
p.children = chd;
|
1564 |
p.children_d = dpc;
|
1565 |
for(i = 0, j = p.parents.length; i < j; i++) {
|
@@ -1607,7 +1613,7 @@
|
|
1607 |
data = JSON.parse(data);
|
1608 |
}
|
1609 |
}
|
1610 |
-
if(
|
1611 |
var w = null,
|
1612 |
args = {
|
1613 |
'df' : this._model.default_state,
|
@@ -1972,7 +1978,7 @@
|
|
1972 |
if(!this._data.core.working || force_processing) {
|
1973 |
this._data.core.working = true;
|
1974 |
w = new window.Worker(this._wrk);
|
1975 |
-
w.onmessage =
|
1976 |
rslt.call(this, e.data, true);
|
1977 |
try { w.terminate(); w = null; } catch(ignore) { }
|
1978 |
if(this._data.core.worker_queue.length) {
|
@@ -1981,7 +1987,7 @@
|
|
1981 |
else {
|
1982 |
this._data.core.working = false;
|
1983 |
}
|
1984 |
-
}
|
1985 |
if(!args.par) {
|
1986 |
if(this._data.core.worker_queue.length) {
|
1987 |
this._append_json_data.apply(this, this._data.core.worker_queue.shift());
|
@@ -2047,7 +2053,7 @@
|
|
2047 |
}
|
2048 |
tmp = $.vakata.attributes(d, true);
|
2049 |
$.each(tmp, function (i, v) {
|
2050 |
-
v =
|
2051 |
if(!v.length) { return true; }
|
2052 |
data.li_attr[i] = v;
|
2053 |
if(i === 'id') {
|
@@ -2058,7 +2064,7 @@
|
|
2058 |
if(tmp.length) {
|
2059 |
tmp = $.vakata.attributes(tmp, true);
|
2060 |
$.each(tmp, function (i, v) {
|
2061 |
-
v =
|
2062 |
if(v.length) {
|
2063 |
data.a_attr[i] = v;
|
2064 |
}
|
@@ -2097,14 +2103,14 @@
|
|
2097 |
} while(m[tid]);
|
2098 |
data.id = data.li_attr.id ? data.li_attr.id.toString() : tid;
|
2099 |
if(tmp.length) {
|
2100 |
-
tmp.each(
|
2101 |
c = this._parse_model_from_html($(v), data.id, ps);
|
2102 |
e = this._model.data[c];
|
2103 |
data.children.push(c);
|
2104 |
if(e.children_d.length) {
|
2105 |
data.children_d = data.children_d.concat(e.children_d);
|
2106 |
}
|
2107 |
-
}
|
2108 |
data.children_d = data.children_d.concat(data.children);
|
2109 |
}
|
2110 |
else {
|
@@ -2356,7 +2362,7 @@
|
|
2356 |
if(fe !== null && this.settings.core.restore_focus) {
|
2357 |
tmp = this.get_node(fe, true);
|
2358 |
if(tmp && tmp.length && tmp.children('.jstree-anchor')[0] !== document.activeElement) {
|
2359 |
-
tmp.children('.jstree-anchor').focus
|
2360 |
}
|
2361 |
else {
|
2362 |
this._data.core.focused = null;
|
@@ -2497,13 +2503,13 @@
|
|
2497 |
if(!obj.a_attr.id) {
|
2498 |
obj.a_attr.id = obj.id + '_anchor';
|
2499 |
}
|
2500 |
-
node.setAttribute('aria-selected', !!obj.state.selected);
|
2501 |
node.childNodes[1].setAttribute('aria-selected', !!obj.state.selected);
|
2502 |
-
node.setAttribute('aria-level', obj.parents.length);
|
2503 |
node.childNodes[1].setAttribute('aria-level', obj.parents.length);
|
2504 |
-
|
|
|
|
|
|
|
2505 |
if(obj.state.disabled) {
|
2506 |
-
node.setAttribute('aria-disabled', true);
|
2507 |
node.childNodes[1].setAttribute('aria-disabled', true);
|
2508 |
}
|
2509 |
|
@@ -2540,7 +2546,6 @@
|
|
2540 |
}
|
2541 |
else {
|
2542 |
c += obj.state.opened && obj.state.loaded ? ' jstree-open' : ' jstree-closed';
|
2543 |
-
node.setAttribute('aria-expanded', (obj.state.opened && obj.state.loaded) );
|
2544 |
node.childNodes[1].setAttribute('aria-expanded', (obj.state.opened && obj.state.loaded) );
|
2545 |
}
|
2546 |
if(last_sibling === obj.id) {
|
@@ -2633,9 +2638,9 @@
|
|
2633 |
}
|
2634 |
if(obj.state.opened && !obj.state.loaded) {
|
2635 |
obj.state.opened = false;
|
2636 |
-
setTimeout(
|
2637 |
this.open_node(obj.id, false, 0);
|
2638 |
-
}
|
2639 |
}
|
2640 |
return node;
|
2641 |
},
|
@@ -2649,7 +2654,7 @@
|
|
2649 |
*/
|
2650 |
open_node : function (obj, callback, animation) {
|
2651 |
var t1, t2, d, t;
|
2652 |
-
if(
|
2653 |
obj = obj.slice();
|
2654 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
2655 |
this.open_node(obj[t1], callback, animation);
|
@@ -2669,9 +2674,9 @@
|
|
2669 |
}
|
2670 |
if(!this.is_loaded(obj)) {
|
2671 |
if(this.is_loading(obj)) {
|
2672 |
-
return setTimeout(
|
2673 |
this.open_node(obj, callback, animation);
|
2674 |
-
}
|
2675 |
}
|
2676 |
this.load_node(obj, function (o, ok) {
|
2677 |
return ok ? this.open_node(o, callback, animation) : (callback ? callback.call(this, o, false) : false);
|
@@ -2691,14 +2696,13 @@
|
|
2691 |
if(!animation) {
|
2692 |
this.trigger('before_open', { "node" : obj });
|
2693 |
d[0].className = d[0].className.replace('jstree-closed', 'jstree-open');
|
2694 |
-
d[0].setAttribute("aria-expanded", true);
|
2695 |
d[0].childNodes[1].setAttribute("aria-expanded", true);
|
2696 |
}
|
2697 |
else {
|
2698 |
this.trigger('before_open', { "node" : obj });
|
2699 |
d
|
2700 |
.children(".jstree-children").css("display","none").end()
|
2701 |
-
.removeClass("jstree-closed").addClass("jstree-open")
|
2702 |
.children('.jstree-anchor').attr("aria-expanded", true).end()
|
2703 |
.children(".jstree-children").stop(true, true)
|
2704 |
.slideDown(animation, function () {
|
@@ -2769,7 +2773,7 @@
|
|
2769 |
*/
|
2770 |
close_node : function (obj, animation) {
|
2771 |
var t1, t2, t, d;
|
2772 |
-
if(
|
2773 |
obj = obj.slice();
|
2774 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
2775 |
this.close_node(obj[t1], animation);
|
@@ -2808,13 +2812,13 @@
|
|
2808 |
if(!animation) {
|
2809 |
d[0].className = d[0].className.replace('jstree-open', 'jstree-closed');
|
2810 |
d.children('.jstree-anchor').attr("aria-expanded", false);
|
2811 |
-
d.
|
2812 |
this.trigger("after_close", { "node" : obj });
|
2813 |
}
|
2814 |
else {
|
2815 |
d
|
2816 |
.children(".jstree-children").attr("style","display:block !important").end()
|
2817 |
-
.removeClass("jstree-open").addClass("jstree-closed")
|
2818 |
.children('.jstree-anchor').attr("aria-expanded", false).end()
|
2819 |
.children(".jstree-children").stop(true, true).slideUp(animation, function () {
|
2820 |
this.style.display = "";
|
@@ -2833,7 +2837,7 @@
|
|
2833 |
*/
|
2834 |
toggle_node : function (obj) {
|
2835 |
var t1, t2;
|
2836 |
-
if(
|
2837 |
obj = obj.slice();
|
2838 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
2839 |
this.toggle_node(obj[t1]);
|
@@ -2934,7 +2938,7 @@
|
|
2934 |
*/
|
2935 |
enable_node : function (obj) {
|
2936 |
var t1, t2;
|
2937 |
-
if(
|
2938 |
obj = obj.slice();
|
2939 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
2940 |
this.enable_node(obj[t1]);
|
@@ -2963,7 +2967,7 @@
|
|
2963 |
*/
|
2964 |
disable_node : function (obj) {
|
2965 |
var t1, t2;
|
2966 |
-
if(
|
2967 |
obj = obj.slice();
|
2968 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
2969 |
this.disable_node(obj[t1]);
|
@@ -3002,7 +3006,7 @@
|
|
3002 |
*/
|
3003 |
hide_node : function (obj, skip_redraw) {
|
3004 |
var t1, t2;
|
3005 |
-
if(
|
3006 |
obj = obj.slice();
|
3007 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
3008 |
this.hide_node(obj[t1], true);
|
@@ -3040,7 +3044,7 @@
|
|
3040 |
*/
|
3041 |
show_node : function (obj, skip_redraw) {
|
3042 |
var t1, t2;
|
3043 |
-
if(
|
3044 |
obj = obj.slice();
|
3045 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
3046 |
this.show_node(obj[t1], true);
|
@@ -3252,7 +3256,7 @@
|
|
3252 |
*/
|
3253 |
select_node : function (obj, supress_event, prevent_open, e) {
|
3254 |
var dom, t1, t2, th;
|
3255 |
-
if(
|
3256 |
obj = obj.slice();
|
3257 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
3258 |
this.select_node(obj[t1], supress_event, prevent_open, e);
|
@@ -3271,7 +3275,7 @@
|
|
3271 |
dom = this._open_to(obj);
|
3272 |
}
|
3273 |
if(dom && dom.length) {
|
3274 |
-
dom.
|
3275 |
}
|
3276 |
/**
|
3277 |
* triggered when an node is selected
|
@@ -3305,7 +3309,7 @@
|
|
3305 |
*/
|
3306 |
deselect_node : function (obj, supress_event, e) {
|
3307 |
var t1, t2, dom;
|
3308 |
-
if(
|
3309 |
obj = obj.slice();
|
3310 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
3311 |
this.deselect_node(obj[t1], supress_event, e);
|
@@ -3321,7 +3325,7 @@
|
|
3321 |
obj.state.selected = false;
|
3322 |
this._data.core.selected = $.vakata.array_remove_item(this._data.core.selected, obj.id);
|
3323 |
if(dom.length) {
|
3324 |
-
dom.
|
3325 |
}
|
3326 |
/**
|
3327 |
* triggered when an node is deselected
|
@@ -3377,7 +3381,7 @@
|
|
3377 |
}
|
3378 |
}
|
3379 |
this._data.core.selected = [];
|
3380 |
-
this.element.find('.jstree-clicked').removeClass('jstree-clicked').attr('aria-selected', false)
|
3381 |
/**
|
3382 |
* triggered when all nodes are deselected
|
3383 |
* @event
|
@@ -3410,7 +3414,7 @@
|
|
3410 |
* @return {Array}
|
3411 |
*/
|
3412 |
get_selected : function (full) {
|
3413 |
-
return full ? $.map(this._data.core.selected,
|
3414 |
},
|
3415 |
/**
|
3416 |
* get an array of all top level selected nodes (ignoring children of selected nodes)
|
@@ -3437,7 +3441,7 @@
|
|
3437 |
tmp.push(i);
|
3438 |
}
|
3439 |
}
|
3440 |
-
return full ? $.map(tmp,
|
3441 |
},
|
3442 |
/**
|
3443 |
* get an array of all bottom level selected nodes (ignoring selected parents)
|
@@ -3453,7 +3457,7 @@
|
|
3453 |
obj.push(tmp[i].id);
|
3454 |
}
|
3455 |
}
|
3456 |
-
return full ? $.map(obj,
|
3457 |
},
|
3458 |
/**
|
3459 |
* gets the current state of the tree so that it can be restored later with `set_state(state)`. Used internally.
|
@@ -3513,7 +3517,7 @@
|
|
3513 |
if(state.core) {
|
3514 |
var res, n, t, _this, i;
|
3515 |
if(state.core.loaded) {
|
3516 |
-
if(!this.settings.core.loaded_state ||
|
3517 |
delete state.core.loaded;
|
3518 |
this.set_state(state, callback);
|
3519 |
}
|
@@ -3526,7 +3530,7 @@
|
|
3526 |
return false;
|
3527 |
}
|
3528 |
if(state.core.open) {
|
3529 |
-
if(
|
3530 |
delete state.core.open;
|
3531 |
this.set_state(state, callback);
|
3532 |
}
|
@@ -3600,7 +3604,7 @@
|
|
3600 |
*/
|
3601 |
refresh : function (skip_loading, forget_state) {
|
3602 |
this._data.core.state = forget_state === true ? {} : this.get_state();
|
3603 |
-
if(forget_state &&
|
3604 |
this._cnt = 0;
|
3605 |
this._model.data = {};
|
3606 |
this._model.data[$.jstree.root] = {
|
@@ -3617,7 +3621,7 @@
|
|
3617 |
|
3618 |
var c = this.get_container_ul()[0].className;
|
3619 |
if(!skip_loading) {
|
3620 |
-
this.element.html("<"+"ul class='"+c+"' role='group'><"+"li class='jstree-initial-node jstree-loading jstree-leaf jstree-last' role='
|
3621 |
this.element.attr('aria-activedescendant','j'+this._id+'_loading');
|
3622 |
}
|
3623 |
this.load_node($.jstree.root, function (o, s) {
|
@@ -3651,7 +3655,7 @@
|
|
3651 |
to_load.push(obj.id);
|
3652 |
if(obj.state.opened === true) { opened.push(obj.id); }
|
3653 |
this.get_node(obj, true).find('.jstree-open').each(function() { to_load.push(this.id); opened.push(this.id); });
|
3654 |
-
this._load_nodes(to_load,
|
3655 |
this.open_node(opened, false, 0);
|
3656 |
this.select_node(s);
|
3657 |
/**
|
@@ -3662,7 +3666,7 @@
|
|
3662 |
* @param {Array} nodes - an array of the IDs of the nodes that were reloaded
|
3663 |
*/
|
3664 |
this.trigger('refresh_node', { 'node' : obj, 'nodes' : nodes });
|
3665 |
-
}
|
3666 |
},
|
3667 |
/**
|
3668 |
* set (change) the ID of a node
|
@@ -3734,7 +3738,7 @@
|
|
3734 |
*/
|
3735 |
set_text : function (obj, val) {
|
3736 |
var t1, t2;
|
3737 |
-
if(
|
3738 |
obj = obj.slice();
|
3739 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
3740 |
this.set_text(obj[t1], val);
|
@@ -3782,7 +3786,7 @@
|
|
3782 |
'li_attr' : $.extend(true, {}, obj.li_attr),
|
3783 |
'a_attr' : $.extend(true, {}, obj.a_attr),
|
3784 |
'state' : {},
|
3785 |
-
'data' : options && options.no_data ? false : $.extend(true,
|
3786 |
//( this.get_node(obj, true).length ? this.get_node(obj, true).data() : obj.data ),
|
3787 |
}, i, j;
|
3788 |
if(options && options.flat) {
|
@@ -3934,7 +3938,7 @@
|
|
3934 |
*/
|
3935 |
rename_node : function (obj, val) {
|
3936 |
var t1, t2, old;
|
3937 |
-
if(
|
3938 |
obj = obj.slice();
|
3939 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
3940 |
this.rename_node(obj[t1], val);
|
@@ -3969,7 +3973,7 @@
|
|
3969 |
*/
|
3970 |
delete_node : function (obj) {
|
3971 |
var t1, t2, par, pos, tmp, i, j, k, l, c, top, lft;
|
3972 |
-
if(
|
3973 |
obj = obj.slice();
|
3974 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
3975 |
this.delete_node(obj[t1]);
|
@@ -4026,11 +4030,11 @@
|
|
4026 |
lft = this.element[0].scrollLeft;
|
4027 |
if(par.id === $.jstree.root) {
|
4028 |
if (this._model.data[$.jstree.root].children[0]) {
|
4029 |
-
this.get_node(this._model.data[$.jstree.root].children[0], true).children('.jstree-anchor').focus
|
4030 |
}
|
4031 |
}
|
4032 |
else {
|
4033 |
-
this.get_node(par, true).children('.jstree-anchor').focus
|
4034 |
}
|
4035 |
this.element[0].scrollTop = top;
|
4036 |
this.element[0].scrollLeft = lft;
|
@@ -4071,7 +4075,7 @@
|
|
4071 |
}
|
4072 |
return tmp.functions[chk];
|
4073 |
}
|
4074 |
-
if(chc === false || (
|
4075 |
this._data.core.last_error = { 'error' : 'check', 'plugin' : 'core', 'id' : 'core_03', 'reason' : 'User config for core.check_callback prevents function: ' + chk, 'data' : JSON.stringify({ 'chk' : chk, 'pos' : pos, 'obj' : obj && obj.id ? obj.id : false, 'par' : par && par.id ? par.id : false }) };
|
4076 |
return false;
|
4077 |
}
|
@@ -4107,7 +4111,7 @@
|
|
4107 |
return this.load_node(par, function () { this.move_node(obj, par, pos, callback, true, false, origin); });
|
4108 |
}
|
4109 |
|
4110 |
-
if(
|
4111 |
if(obj.length === 1) {
|
4112 |
obj = obj[0];
|
4113 |
}
|
@@ -4280,7 +4284,7 @@
|
|
4280 |
return this.load_node(par, function () { this.copy_node(obj, par, pos, callback, true, false, origin); });
|
4281 |
}
|
4282 |
|
4283 |
-
if(
|
4284 |
if(obj.length === 1) {
|
4285 |
obj = obj[0];
|
4286 |
}
|
@@ -4395,7 +4399,7 @@
|
|
4395 |
*/
|
4396 |
cut : function (obj) {
|
4397 |
if(!obj) { obj = this._data.core.selected.concat(); }
|
4398 |
-
if(
|
4399 |
if(!obj.length) { return false; }
|
4400 |
var tmp = [], o, t1, t2;
|
4401 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
@@ -4422,7 +4426,7 @@
|
|
4422 |
*/
|
4423 |
copy : function (obj) {
|
4424 |
if(!obj) { obj = this._data.core.selected.concat(); }
|
4425 |
-
if(
|
4426 |
if(!obj.length) { return false; }
|
4427 |
var tmp = [], o, t1, t2;
|
4428 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
@@ -4503,7 +4507,7 @@
|
|
4503 |
* @name edit(obj [, default_text, callback])
|
4504 |
* @param {mixed} obj
|
4505 |
* @param {String} default_text the text to populate the input with (if omitted or set to a non-string value the node's text value is used)
|
4506 |
-
* @param {Function} callback a function to be called once the text box is blurred, it is called in the instance's scope and receives the node, a status parameter (true if the rename is successful, false otherwise)
|
4507 |
*/
|
4508 |
edit : function (obj, default_text, callback) {
|
4509 |
var rtl, w, a, s, t, h1, h2, fn, tmp, cancel = false;
|
@@ -4522,7 +4526,7 @@
|
|
4522 |
rtl = this._data.core.rtl;
|
4523 |
w = this.element.width();
|
4524 |
this._data.core.focused = tmp.id;
|
4525 |
-
a = obj.children('.jstree-anchor').focus
|
4526 |
s = $('<span></span>');
|
4527 |
/*!
|
4528 |
oi = obj.children("i:visible"),
|
@@ -4545,7 +4549,7 @@
|
|
4545 |
"lineHeight" : (this._data.core.li_height) + "px",
|
4546 |
"width" : "150px" // will be set a bit further down
|
4547 |
},
|
4548 |
-
"blur" :
|
4549 |
e.stopImmediatePropagation();
|
4550 |
e.preventDefault();
|
4551 |
var i = s.children(".jstree-rename-input"),
|
@@ -4564,18 +4568,18 @@
|
|
4564 |
this.set_text(obj, t); // move this up? and fix #483
|
4565 |
}
|
4566 |
this._data.core.focused = tmp.id;
|
4567 |
-
setTimeout(
|
4568 |
var node = this.get_node(tmp.id, true);
|
4569 |
if(node.length) {
|
4570 |
this._data.core.focused = tmp.id;
|
4571 |
-
node.children('.jstree-anchor').focus
|
4572 |
}
|
4573 |
-
}
|
4574 |
if(callback) {
|
4575 |
-
callback.call(this, tmp, nv, cancel);
|
4576 |
}
|
4577 |
h2 = null;
|
4578 |
-
}
|
4579 |
"keydown" : function (e) {
|
4580 |
var key = e.which;
|
4581 |
if(key === 27) {
|
@@ -4615,7 +4619,7 @@
|
|
4615 |
h2.css(fn).width(Math.min(h1.text("pW" + h2[0].value).width(),w))[0].select();
|
4616 |
$(document).one('mousedown.jstree touchstart.jstree dnd_start.vakata', function (e) {
|
4617 |
if (h2 && e.target !== h2) {
|
4618 |
-
$(h2).trigger(
|
4619 |
}
|
4620 |
});
|
4621 |
},
|
@@ -4819,7 +4823,7 @@
|
|
4819 |
*/
|
4820 |
set_icon : function (obj, icon) {
|
4821 |
var t1, t2, dom, old;
|
4822 |
-
if(
|
4823 |
obj = obj.slice();
|
4824 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
4825 |
this.set_icon(obj[t1], icon);
|
@@ -4868,7 +4872,7 @@
|
|
4868 |
*/
|
4869 |
hide_icon : function (obj) {
|
4870 |
var t1, t2;
|
4871 |
-
if(
|
4872 |
obj = obj.slice();
|
4873 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
4874 |
this.hide_icon(obj[t1]);
|
@@ -4888,7 +4892,7 @@
|
|
4888 |
*/
|
4889 |
show_icon : function (obj) {
|
4890 |
var t1, t2, dom;
|
4891 |
-
if(
|
4892 |
obj = obj.slice();
|
4893 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
4894 |
this.show_icon(obj[t1]);
|
@@ -4914,7 +4918,7 @@
|
|
4914 |
if(node && node.attributes) {
|
4915 |
$.each(node.attributes, function (i, v) {
|
4916 |
if($.inArray(v.name.toLowerCase(),['style','contenteditable','hasfocus','tabindex']) !== -1) { return; }
|
4917 |
-
if(v.value !== null && (v.value)
|
4918 |
if(with_values) { attr[v.name] = v.value; }
|
4919 |
else { attr.push(v.name); }
|
4920 |
}
|
@@ -4958,6 +4962,34 @@
|
|
4958 |
}
|
4959 |
return d;
|
4960 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4961 |
|
4962 |
|
4963 |
/**
|
@@ -5091,7 +5123,7 @@
|
|
5091 |
this.settings.checkbox.cascade = 'up+down+undetermined';
|
5092 |
}
|
5093 |
this.element
|
5094 |
-
.on("init.jstree",
|
5095 |
this._data.checkbox.visible = this.settings.checkbox.visible;
|
5096 |
if(!this.settings.checkbox.keep_selected_style) {
|
5097 |
this.element.addClass('jstree-checkbox-no-clicked');
|
@@ -5099,21 +5131,21 @@
|
|
5099 |
if(this.settings.checkbox.tie_selection) {
|
5100 |
this.element.addClass('jstree-checkbox-selection');
|
5101 |
}
|
5102 |
-
}
|
5103 |
-
.on("loading.jstree",
|
5104 |
this[ this._data.checkbox.visible ? 'show_checkboxes' : 'hide_checkboxes' ]();
|
5105 |
-
}
|
5106 |
if(this.settings.checkbox.cascade.indexOf('undetermined') !== -1) {
|
5107 |
this.element
|
5108 |
-
.on('changed.jstree uncheck_node.jstree check_node.jstree uncheck_all.jstree check_all.jstree move_node.jstree copy_node.jstree redraw.jstree open_node.jstree',
|
5109 |
// only if undetermined is in setting
|
5110 |
if(this._data.checkbox.uto) { clearTimeout(this._data.checkbox.uto); }
|
5111 |
-
this._data.checkbox.uto = setTimeout(
|
5112 |
-
}
|
5113 |
}
|
5114 |
if(!this.settings.checkbox.tie_selection) {
|
5115 |
this.element
|
5116 |
-
.on('model.jstree',
|
5117 |
var m = this._model.data,
|
5118 |
p = m[data.parent],
|
5119 |
dpc = data.nodes,
|
@@ -5124,11 +5156,11 @@
|
|
5124 |
this._data.checkbox.selected.push(dpc[i]);
|
5125 |
}
|
5126 |
}
|
5127 |
-
}
|
5128 |
}
|
5129 |
if(this.settings.checkbox.cascade.indexOf('up') !== -1 || this.settings.checkbox.cascade.indexOf('down') !== -1) {
|
5130 |
this.element
|
5131 |
-
.on('model.jstree',
|
5132 |
var m = this._model.data,
|
5133 |
p = m[data.parent],
|
5134 |
dpc = data.nodes,
|
@@ -5188,8 +5220,8 @@
|
|
5188 |
}
|
5189 |
|
5190 |
this._data[ t ? 'core' : 'checkbox' ].selected = $.vakata.array_unique(this._data[ t ? 'core' : 'checkbox' ].selected);
|
5191 |
-
}
|
5192 |
-
.on(this.settings.checkbox.tie_selection ? 'select_node.jstree' : 'check_node.jstree',
|
5193 |
var self = this,
|
5194 |
obj = data.node,
|
5195 |
m = this._model.data,
|
@@ -5246,8 +5278,8 @@
|
|
5246 |
}
|
5247 |
}
|
5248 |
this._data[ t ? 'core' : 'checkbox' ].selected = cur;
|
5249 |
-
}
|
5250 |
-
.on(this.settings.checkbox.tie_selection ? 'deselect_all.jstree' : 'uncheck_all.jstree',
|
5251 |
var obj = this.get_node($.jstree.root),
|
5252 |
m = this._model.data,
|
5253 |
i, j, tmp;
|
@@ -5257,8 +5289,8 @@
|
|
5257 |
tmp.original.state.undetermined = false;
|
5258 |
}
|
5259 |
}
|
5260 |
-
}
|
5261 |
-
.on(this.settings.checkbox.tie_selection ? 'deselect_node.jstree' : 'uncheck_node.jstree',
|
5262 |
var self = this,
|
5263 |
obj = data.node,
|
5264 |
dom = this.get_node(obj, true),
|
@@ -5297,11 +5329,11 @@
|
|
5297 |
}
|
5298 |
|
5299 |
this._data[ t ? 'core' : 'checkbox' ].selected = cur;
|
5300 |
-
}
|
5301 |
}
|
5302 |
if(this.settings.checkbox.cascade.indexOf('up') !== -1) {
|
5303 |
this.element
|
5304 |
-
.on('delete_node.jstree',
|
5305 |
// apply up (whole handler)
|
5306 |
var p = this.get_node(data.parent),
|
5307 |
m = this._model.data,
|
@@ -5324,8 +5356,8 @@
|
|
5324 |
}
|
5325 |
p = this.get_node(p.parent);
|
5326 |
}
|
5327 |
-
}
|
5328 |
-
.on('move_node.jstree',
|
5329 |
// apply up (whole handler)
|
5330 |
var is_multi = data.is_multi,
|
5331 |
old_par = data.old_parent,
|
@@ -5384,7 +5416,7 @@
|
|
5384 |
}
|
5385 |
p = this.get_node(p.parent);
|
5386 |
}
|
5387 |
-
}
|
5388 |
}
|
5389 |
};
|
5390 |
/**
|
@@ -5495,7 +5527,7 @@
|
|
5495 |
}
|
5496 |
if(!is_callback && this.settings.checkbox.cascade.indexOf('undetermined') !== -1) {
|
5497 |
if(this._data.checkbox.uto) { clearTimeout(this._data.checkbox.uto); }
|
5498 |
-
this._data.checkbox.uto = setTimeout(
|
5499 |
}
|
5500 |
return obj;
|
5501 |
};
|
@@ -5548,7 +5580,7 @@
|
|
5548 |
*/
|
5549 |
this.disable_checkbox = function (obj) {
|
5550 |
var t1, t2, dom;
|
5551 |
-
if(
|
5552 |
obj = obj.slice();
|
5553 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
5554 |
this.disable_checkbox(obj[t1]);
|
@@ -5584,7 +5616,7 @@
|
|
5584 |
*/
|
5585 |
this.enable_checkbox = function (obj) {
|
5586 |
var t1, t2, dom;
|
5587 |
-
if(
|
5588 |
obj = obj.slice();
|
5589 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
5590 |
this.enable_checkbox(obj[t1]);
|
@@ -5638,6 +5670,7 @@
|
|
5638 |
* Cascades checked state to a node and all its descendants. This function does NOT affect hidden and disabled nodes (or their descendants).
|
5639 |
* However if these unaffected nodes are already selected their ids will be included in the returned array.
|
5640 |
* @private
|
|
|
5641 |
* @param {string} id the node ID
|
5642 |
* @param {bool} checkedState should the nodes be checked or not
|
5643 |
* @returns {Array} Array of all node id's (in this tree branch) that are checked.
|
@@ -5732,7 +5765,7 @@
|
|
5732 |
this.check_node = function (obj, e) {
|
5733 |
if(this.settings.checkbox.tie_selection) { return this.select_node(obj, false, true, e); }
|
5734 |
var dom, t1, t2, th;
|
5735 |
-
if(
|
5736 |
obj = obj.slice();
|
5737 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
5738 |
this.check_node(obj[t1], e);
|
@@ -5772,7 +5805,7 @@
|
|
5772 |
this.uncheck_node = function (obj, e) {
|
5773 |
if(this.settings.checkbox.tie_selection) { return this.deselect_node(obj, false, e); }
|
5774 |
var t1, t2, dom;
|
5775 |
-
if(
|
5776 |
obj = obj.slice();
|
5777 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
5778 |
this.uncheck_node(obj[t1], e);
|
@@ -5876,7 +5909,7 @@
|
|
5876 |
*/
|
5877 |
this.get_checked = function (full) {
|
5878 |
if(this.settings.checkbox.tie_selection) { return this.get_selected(full); }
|
5879 |
-
return full ? $.map(this._data.checkbox.selected,
|
5880 |
};
|
5881 |
/**
|
5882 |
* get an array of all top level checked nodes (ignoring children of checked nodes) (if tie_selection is on in the settings this function will return the same as get_top_selected)
|
@@ -5905,7 +5938,7 @@
|
|
5905 |
tmp.push(i);
|
5906 |
}
|
5907 |
}
|
5908 |
-
return full ? $.map(tmp,
|
5909 |
};
|
5910 |
/**
|
5911 |
* get an array of all bottom level checked nodes (ignoring selected parents) (if tie_selection is on in the settings this function will return the same as get_bottom_selected)
|
@@ -5923,11 +5956,11 @@
|
|
5923 |
obj.push(tmp[i].id);
|
5924 |
}
|
5925 |
}
|
5926 |
-
return full ? $.map(obj,
|
5927 |
};
|
5928 |
this.load_node = function (obj, callback) {
|
5929 |
var k, l, i, j, c, tmp;
|
5930 |
-
if(
|
5931 |
tmp = this.get_node(obj);
|
5932 |
if(tmp && tmp.state.loaded) {
|
5933 |
for(k = 0, l = tmp.children_d.length; k < l; k++) {
|
@@ -6155,10 +6188,10 @@
|
|
6155 |
|
6156 |
var last_ts = 0, cto = null, ex, ey;
|
6157 |
this.element
|
6158 |
-
.on("init.jstree loading.jstree ready.jstree",
|
6159 |
this.get_container_ul().addClass('jstree-contextmenu');
|
6160 |
-
}
|
6161 |
-
.on("contextmenu.jstree", ".jstree-anchor",
|
6162 |
if (e.target.tagName.toLowerCase() === 'input') {
|
6163 |
return;
|
6164 |
}
|
@@ -6173,13 +6206,13 @@
|
|
6173 |
if(!this.is_loading(e.currentTarget)) {
|
6174 |
this.show_contextmenu(e.currentTarget, e.pageX, e.pageY, e);
|
6175 |
}
|
6176 |
-
}
|
6177 |
-
.on("click.jstree", ".jstree-anchor",
|
6178 |
if(this._data.contextmenu.visible && (!last_ts || (+new Date()) - last_ts > 250)) { // work around safari & macOS ctrl+click
|
6179 |
$.vakata.context.hide();
|
6180 |
}
|
6181 |
last_ts = 0;
|
6182 |
-
}
|
6183 |
.on("touchstart.jstree", ".jstree-anchor", function (e) {
|
6184 |
if(!e.originalEvent || !e.originalEvent.changedTouches || !e.originalEvent.changedTouches[0]) {
|
6185 |
return;
|
@@ -6223,15 +6256,16 @@
|
|
6223 |
});
|
6224 |
}
|
6225 |
*/
|
6226 |
-
$(document).on("context_hide.vakata.jstree",
|
6227 |
this._data.contextmenu.visible = false;
|
6228 |
$(data.reference).removeClass('jstree-context');
|
6229 |
-
}
|
6230 |
};
|
6231 |
this.teardown = function () {
|
6232 |
if(this._data.contextmenu.visible) {
|
6233 |
$.vakata.context.hide();
|
6234 |
}
|
|
|
6235 |
parent.teardown.call(this);
|
6236 |
};
|
6237 |
|
@@ -6263,10 +6297,10 @@
|
|
6263 |
}
|
6264 |
|
6265 |
i = s.items;
|
6266 |
-
if(
|
6267 |
-
i = i.call(this, obj,
|
6268 |
this._show_contextmenu(obj, x, y, i);
|
6269 |
-
}
|
6270 |
}
|
6271 |
if($.isPlainObject(i)) {
|
6272 |
this._show_contextmenu(obj, x, y, i);
|
@@ -6286,11 +6320,11 @@
|
|
6286 |
this._show_contextmenu = function (obj, x, y, i) {
|
6287 |
var d = this.get_node(obj, true),
|
6288 |
a = d.children(".jstree-anchor");
|
6289 |
-
$(document).one("context_show.vakata.jstree",
|
6290 |
var cls = 'jstree-contextmenu jstree-' + this.get_theme() + '-contextmenu';
|
6291 |
$(data.element).addClass(cls);
|
6292 |
a.addClass('jstree-context');
|
6293 |
-
}
|
6294 |
this._data.contextmenu.visible = true;
|
6295 |
$.vakata.context.show(a, { 'x' : x, 'y' : y }, i);
|
6296 |
/**
|
@@ -6336,7 +6370,7 @@
|
|
6336 |
},
|
6337 |
_execute : function (i) {
|
6338 |
i = vakata_context.items[i];
|
6339 |
-
return i && (!i._disabled || (
|
6340 |
"item" : i,
|
6341 |
"reference" : vakata_context.reference,
|
6342 |
"element" : vakata_context.element,
|
@@ -6361,10 +6395,10 @@
|
|
6361 |
if(!val) { return true; }
|
6362 |
vakata_context.items.push(val);
|
6363 |
if(!sep && val.separator_before) {
|
6364 |
-
str += "<"+"li class='vakata-context-separator'><"+"a href='#' " + ($.vakata.context.settings.icons ? '' : '
|
6365 |
}
|
6366 |
sep = false;
|
6367 |
-
str += "<"+"li class='" + (val._class || "") + (val._disabled === true || (
|
6368 |
str += "<"+"a href='#' rel='" + (vakata_context.items.length - 1) + "' " + (val.title ? "title='" + val.title + "'" : "") + ">";
|
6369 |
if($.vakata.context.settings.icons) {
|
6370 |
str += "<"+"i ";
|
@@ -6374,14 +6408,14 @@
|
|
6374 |
}
|
6375 |
str += "><"+"/i><"+"span class='vakata-contextmenu-sep'> <"+"/span>";
|
6376 |
}
|
6377 |
-
str += (
|
6378 |
if(val.submenu) {
|
6379 |
tmp = $.vakata.context._parse(val.submenu, true);
|
6380 |
if(tmp) { str += tmp; }
|
6381 |
}
|
6382 |
str += "<"+"/li>";
|
6383 |
if(val.separator_after) {
|
6384 |
-
str += "<"+"li class='vakata-context-separator'><"+"a href='#' " + ($.vakata.context.settings.icons ? '' : '
|
6385 |
sep = true;
|
6386 |
}
|
6387 |
});
|
@@ -6489,7 +6523,7 @@
|
|
6489 |
vakata_context.element
|
6490 |
.css({ "left" : x, "top" : y })
|
6491 |
.show()
|
6492 |
-
.find('a').first().focus
|
6493 |
vakata_context.is_visible = true;
|
6494 |
/**
|
6495 |
* triggered on the document when the contextmenu is shown
|
@@ -6505,7 +6539,7 @@
|
|
6505 |
},
|
6506 |
hide : function () {
|
6507 |
if(vakata_context.is_visible) {
|
6508 |
-
vakata_context.element.hide().find("ul").hide().end().find(':focus').blur
|
6509 |
vakata_context.is_visible = false;
|
6510 |
/**
|
6511 |
* triggered on the document when the contextmenu is hidden
|
@@ -6561,7 +6595,7 @@
|
|
6561 |
e.preventDefault();
|
6562 |
//})
|
6563 |
//.on("mouseup", "a", function (e) {
|
6564 |
-
if(!$(this).trigger(
|
6565 |
$.vakata.context.hide();
|
6566 |
}
|
6567 |
})
|
@@ -6576,7 +6610,7 @@
|
|
6576 |
break;
|
6577 |
case 37:
|
6578 |
if(vakata_context.is_visible) {
|
6579 |
-
vakata_context.element.find(".vakata-context-hover").last().closest("li").first().find("ul").hide().find(".vakata-context-hover").removeClass("vakata-context-hover").end().end().children('a').focus
|
6580 |
e.stopImmediatePropagation();
|
6581 |
e.preventDefault();
|
6582 |
}
|
@@ -6585,14 +6619,14 @@
|
|
6585 |
if(vakata_context.is_visible) {
|
6586 |
o = vakata_context.element.find("ul:visible").addBack().last().children(".vakata-context-hover").removeClass("vakata-context-hover").prevAll("li:not(.vakata-context-separator)").first();
|
6587 |
if(!o.length) { o = vakata_context.element.find("ul:visible").addBack().last().children("li:not(.vakata-context-separator)").last(); }
|
6588 |
-
o.addClass("vakata-context-hover").children('a').focus
|
6589 |
e.stopImmediatePropagation();
|
6590 |
e.preventDefault();
|
6591 |
}
|
6592 |
break;
|
6593 |
case 39:
|
6594 |
if(vakata_context.is_visible) {
|
6595 |
-
vakata_context.element.find(".vakata-context-hover").last().children("ul").show().children("li:not(.vakata-context-separator)").removeClass("vakata-context-hover").first().addClass("vakata-context-hover").children('a').focus
|
6596 |
e.stopImmediatePropagation();
|
6597 |
e.preventDefault();
|
6598 |
}
|
@@ -6601,7 +6635,7 @@
|
|
6601 |
if(vakata_context.is_visible) {
|
6602 |
o = vakata_context.element.find("ul:visible").addBack().last().children(".vakata-context-hover").removeClass("vakata-context-hover").nextAll("li:not(.vakata-context-separator)").first();
|
6603 |
if(!o.length) { o = vakata_context.element.find("ul:visible").addBack().last().children("li:not(.vakata-context-separator)").first(); }
|
6604 |
-
o.addClass("vakata-context-hover").children('a').focus
|
6605 |
e.stopImmediatePropagation();
|
6606 |
e.preventDefault();
|
6607 |
}
|
@@ -6619,7 +6653,7 @@
|
|
6619 |
e.preventDefault();
|
6620 |
var a = vakata_context.element.find('.vakata-contextmenu-shortcut-' + e.which).parent();
|
6621 |
if(a.parent().not('.vakata-context-disabled')) {
|
6622 |
-
a.trigger(
|
6623 |
}
|
6624 |
});
|
6625 |
|
@@ -6733,7 +6767,7 @@
|
|
6733 |
parent.bind.call(this);
|
6734 |
|
6735 |
this.element
|
6736 |
-
.on(this.settings.dnd.use_html5 ? 'dragstart.jstree' : 'mousedown.jstree touchstart.jstree', this.settings.dnd.large_drag_target ? '.jstree-node' : '.jstree-anchor',
|
6737 |
if(this.settings.dnd.large_drag_target && $(e.target).closest('.jstree-node')[0] !== e.currentTarget) {
|
6738 |
return true;
|
6739 |
}
|
@@ -6747,7 +6781,7 @@
|
|
6747 |
txt = $.vakata.html.escape(txt);
|
6748 |
}
|
6749 |
if(obj && obj.id && obj.id !== $.jstree.root && (e.which === 1 || e.type === "touchstart" || e.type === "dragstart") &&
|
6750 |
-
(this.settings.dnd.is_draggable === true || (
|
6751 |
) {
|
6752 |
drg = { 'jstree' : true, 'origin' : this, 'obj' : this.get_node(obj,true), 'nodes' : mlt > 1 ? this.get_top_selected() : [obj.id] };
|
6753 |
elm = e.currentTarget;
|
@@ -6755,10 +6789,10 @@
|
|
6755 |
$.vakata.dnd._trigger('start', e, { 'helper': $(), 'element': elm, 'data': drg });
|
6756 |
} else {
|
6757 |
this.element.trigger('mousedown.jstree');
|
6758 |
-
return $.vakata.dnd.start(e, drg, '<div id="jstree-dnd" class="jstree-' + this.get_theme() + ' jstree-' + this.get_theme() + '-' + this.get_theme_variant() + ' ' + ( this.settings.core.themes.responsive ? ' jstree-dnd-responsive' : '' ) + '"><i class="jstree-icon jstree-er"></i>' + txt + '<ins class="jstree-copy"
|
6759 |
}
|
6760 |
}
|
6761 |
-
}
|
6762 |
if (this.settings.dnd.use_html5) {
|
6763 |
this.element
|
6764 |
.on('dragover.jstree', function (e) {
|
@@ -6771,11 +6805,11 @@
|
|
6771 |
// $.vakata.dnd._trigger('move', e, { 'helper': $(), 'element': elm, 'data': drg });
|
6772 |
// return false;
|
6773 |
// }, this))
|
6774 |
-
.on('drop.jstree',
|
6775 |
e.preventDefault();
|
6776 |
$.vakata.dnd._trigger('stop', e, { 'helper': $(), 'element': elm, 'data': drg });
|
6777 |
return false;
|
6778 |
-
}
|
6779 |
}
|
6780 |
};
|
6781 |
this.redraw_node = function(obj, deep, callback, force_render) {
|
@@ -7287,7 +7321,7 @@
|
|
7287 |
}
|
7288 |
else {
|
7289 |
if(e.type === "touchend" && e.target === vakata_dnd.target) {
|
7290 |
-
var to = setTimeout(function () { $(e.target).trigger(
|
7291 |
$(e.target).one('click', function() { if(to) { clearTimeout(to); } });
|
7292 |
}
|
7293 |
}
|
@@ -7348,8 +7382,8 @@
|
|
7348 |
}
|
7349 |
this._data.massload = {};
|
7350 |
if (toLoad.length) {
|
7351 |
-
if(
|
7352 |
-
return s.call(this, toLoad,
|
7353 |
var i, j;
|
7354 |
if(data) {
|
7355 |
for(i in data) {
|
@@ -7365,18 +7399,18 @@
|
|
7365 |
}
|
7366 |
}
|
7367 |
parent._load_nodes.call(this, nodes, callback, is_callback, force_reload);
|
7368 |
-
}
|
7369 |
}
|
7370 |
if(typeof s === 'object' && s && s.url) {
|
7371 |
s = $.extend(true, {}, s);
|
7372 |
-
if(
|
7373 |
s.url = s.url.call(this, toLoad);
|
7374 |
}
|
7375 |
-
if(
|
7376 |
s.data = s.data.call(this, toLoad);
|
7377 |
}
|
7378 |
return $.ajax(s)
|
7379 |
-
.done(
|
7380 |
var i, j;
|
7381 |
if(data) {
|
7382 |
for(i in data) {
|
@@ -7392,10 +7426,10 @@
|
|
7392 |
}
|
7393 |
}
|
7394 |
parent._load_nodes.call(this, nodes, callback, is_callback, force_reload);
|
7395 |
-
}
|
7396 |
-
.fail(
|
7397 |
parent._load_nodes.call(this, nodes, callback, is_callback, force_reload);
|
7398 |
-
}
|
7399 |
}
|
7400 |
}
|
7401 |
}
|
@@ -7503,7 +7537,7 @@
|
|
7503 |
this._data.search.hdn = [];
|
7504 |
|
7505 |
this.element
|
7506 |
-
.on("search.jstree",
|
7507 |
if(this._data.search.som && data.res.length) {
|
7508 |
var m = this._model.data, i, j, p = [], k, l;
|
7509 |
for(i = 0, j = data.res.length; i < j; i++) {
|
@@ -7524,13 +7558,13 @@
|
|
7524 |
this.show_node(p, true);
|
7525 |
this.redraw(true);
|
7526 |
}
|
7527 |
-
}
|
7528 |
-
.on("clear_search.jstree",
|
7529 |
if(this._data.search.som && data.res.length) {
|
7530 |
this.show_node(this._data.search.hdn, true);
|
7531 |
this.redraw(true);
|
7532 |
}
|
7533 |
-
}
|
7534 |
};
|
7535 |
/**
|
7536 |
* used to search the tree nodes for a given string
|
@@ -7544,7 +7578,7 @@
|
|
7544 |
* @trigger search.jstree
|
7545 |
*/
|
7546 |
this.search = function (str, skip_async, show_only_matches, inside, append, show_only_matches_children) {
|
7547 |
-
if(str === false || (str.toString())
|
7548 |
return this.clear_search();
|
7549 |
}
|
7550 |
inside = this.get_node(inside);
|
@@ -7566,13 +7600,13 @@
|
|
7566 |
show_only_matches_children = s.show_only_matches_children;
|
7567 |
}
|
7568 |
if(!skip_async && a !== false) {
|
7569 |
-
if(
|
7570 |
-
return a.call(this, str,
|
7571 |
if(d && d.d) { d = d.d; }
|
7572 |
-
this._load_nodes(
|
7573 |
this.search(str, true, show_only_matches, inside, append, show_only_matches_children);
|
7574 |
});
|
7575 |
-
}
|
7576 |
}
|
7577 |
else {
|
7578 |
a = $.extend({}, a);
|
@@ -7585,16 +7619,16 @@
|
|
7585 |
this._data.search.lastRequest.abort();
|
7586 |
}
|
7587 |
this._data.search.lastRequest = $.ajax(a)
|
7588 |
-
.fail(
|
7589 |
this._data.core.last_error = { 'error' : 'ajax', 'plugin' : 'search', 'id' : 'search_01', 'reason' : 'Could not load search parents', 'data' : JSON.stringify(a) };
|
7590 |
this.settings.core.error.call(this, this._data.core.last_error);
|
7591 |
-
}
|
7592 |
-
.done(
|
7593 |
if(d && d.d) { d = d.d; }
|
7594 |
-
this._load_nodes(
|
7595 |
this.search(str, true, show_only_matches, inside, append, show_only_matches_children);
|
7596 |
});
|
7597 |
-
}
|
7598 |
return this._data.search.lastRequest;
|
7599 |
}
|
7600 |
}
|
@@ -7848,17 +7882,17 @@
|
|
7848 |
this.bind = function () {
|
7849 |
parent.bind.call(this);
|
7850 |
this.element
|
7851 |
-
.on("model.jstree",
|
7852 |
this.sort(data.parent, true);
|
7853 |
-
}
|
7854 |
-
.on("rename_node.jstree create_node.jstree",
|
7855 |
this.sort(data.parent || data.node.parent, false);
|
7856 |
this.redraw_node(data.parent || data.node.parent, true);
|
7857 |
-
}
|
7858 |
-
.on("move_node.jstree copy_node.jstree",
|
7859 |
this.sort(data.parent, false);
|
7860 |
this.redraw_node(data.parent, true);
|
7861 |
-
}
|
7862 |
};
|
7863 |
/**
|
7864 |
* used to sort a node's children
|
@@ -7873,7 +7907,7 @@
|
|
7873 |
var i, j;
|
7874 |
obj = this.get_node(obj);
|
7875 |
if(obj && obj.children && obj.children.length) {
|
7876 |
-
obj.children.sort(
|
7877 |
if(deep) {
|
7878 |
for(i = 0, j = obj.children_d.length; i < j; i++) {
|
7879 |
this.sort(obj.children_d[i], false);
|
@@ -7933,11 +7967,11 @@
|
|
7933 |
$.jstree.plugins.state = function (options, parent) {
|
7934 |
this.bind = function () {
|
7935 |
parent.bind.call(this);
|
7936 |
-
var bind =
|
7937 |
-
this.element.on(this.settings.state.events,
|
7938 |
if(to) { clearTimeout(to); }
|
7939 |
-
to = setTimeout(
|
7940 |
-
}
|
7941 |
/**
|
7942 |
* triggered when the state plugin is finished restoring the state (and immediately after ready if there is no state to restore).
|
7943 |
* @event
|
@@ -7945,12 +7979,12 @@
|
|
7945 |
* @plugin state
|
7946 |
*/
|
7947 |
this.trigger('state_ready');
|
7948 |
-
}
|
7949 |
this.element
|
7950 |
-
.on("ready.jstree",
|
7951 |
this.element.one("restore_state.jstree", bind);
|
7952 |
if(!this.restore_state()) { bind(); }
|
7953 |
-
}
|
7954 |
};
|
7955 |
/**
|
7956 |
* save the state
|
@@ -7975,7 +8009,7 @@
|
|
7975 |
if(!!k) { try { k = JSON.parse(k); } catch(ex) { return false; } }
|
7976 |
if(!!k && k.ttl && k.sec && +(new Date()) - k.sec > k.ttl) { return false; }
|
7977 |
if(!!k && k.state) { k = k.state; }
|
7978 |
-
if(!!k &&
|
7979 |
if(!!k) {
|
7980 |
if (!this.settings.state.preserve_loaded) {
|
7981 |
delete k.core.loaded;
|
@@ -8060,7 +8094,7 @@
|
|
8060 |
};
|
8061 |
this.bind = function () {
|
8062 |
this.element
|
8063 |
-
.on('model.jstree',
|
8064 |
var m = this._model.data,
|
8065 |
dpc = data.nodes,
|
8066 |
t = this.settings.types,
|
@@ -8112,7 +8146,7 @@
|
|
8112 |
}
|
8113 |
}
|
8114 |
m[$.jstree.root].type = $.jstree.root;
|
8115 |
-
}
|
8116 |
parent.bind.call(this);
|
8117 |
};
|
8118 |
this.get_json = function (obj, options, flat) {
|
@@ -8121,7 +8155,7 @@
|
|
8121 |
opt = options ? $.extend(true, {}, options, {no_id:false}) : {},
|
8122 |
tmp = parent.get_json.call(this, obj, opt, flat);
|
8123 |
if(tmp === false) { return false; }
|
8124 |
-
if(
|
8125 |
for(i = 0, j = tmp.length; i < j; i++) {
|
8126 |
tmp[i].type = tmp[i].id && m[tmp[i].id] && m[tmp[i].id].type ? m[tmp[i].id].type : "default";
|
8127 |
if(options && options.no_id) {
|
@@ -8144,7 +8178,7 @@
|
|
8144 |
return tmp;
|
8145 |
};
|
8146 |
this._delete_ids = function (tmp) {
|
8147 |
-
if(
|
8148 |
for(var i = 0, j = tmp.length; i < j; i++) {
|
8149 |
tmp[i] = this._delete_ids(tmp[i]);
|
8150 |
}
|
@@ -8157,7 +8191,7 @@
|
|
8157 |
if(tmp.a_attr && tmp.a_attr.id) {
|
8158 |
delete tmp.a_attr.id;
|
8159 |
}
|
8160 |
-
if(tmp.children &&
|
8161 |
tmp.children = this._delete_ids(tmp.children);
|
8162 |
}
|
8163 |
return tmp;
|
@@ -8241,7 +8275,7 @@
|
|
8241 |
*/
|
8242 |
this.set_type = function (obj, type) {
|
8243 |
var m = this._model.data, t, t1, t2, old_type, old_icon, k, d, a;
|
8244 |
-
if(
|
8245 |
obj = obj.slice();
|
8246 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
8247 |
this.set_type(obj[t1], type);
|
@@ -8530,17 +8564,17 @@
|
|
8530 |
parent.bind.call(this);
|
8531 |
|
8532 |
this.element
|
8533 |
-
.on('ready.jstree set_state.jstree',
|
8534 |
this.hide_dots();
|
8535 |
-
}
|
8536 |
-
.on("init.jstree loading.jstree ready.jstree",
|
8537 |
//div.style.height = this._data.core.li_height + 'px';
|
8538 |
this.get_container_ul().addClass('jstree-wholerow-ul');
|
8539 |
-
}
|
8540 |
-
.on("deselect_all.jstree",
|
8541 |
this.element.find('.jstree-wholerow-clicked').removeClass('jstree-wholerow-clicked');
|
8542 |
-
}
|
8543 |
-
.on("changed.jstree",
|
8544 |
this.element.find('.jstree-wholerow-clicked').removeClass('jstree-wholerow-clicked');
|
8545 |
var tmp = false, i, j;
|
8546 |
for(i = 0, j = data.selected.length; i < j; i++) {
|
@@ -8549,21 +8583,21 @@
|
|
8549 |
tmp.children('.jstree-wholerow').addClass('jstree-wholerow-clicked');
|
8550 |
}
|
8551 |
}
|
8552 |
-
}
|
8553 |
-
.on("open_node.jstree",
|
8554 |
this.get_node(data.node, true).find('.jstree-clicked').parent().children('.jstree-wholerow').addClass('jstree-wholerow-clicked');
|
8555 |
-
}
|
8556 |
-
.on("hover_node.jstree dehover_node.jstree",
|
8557 |
if(e.type === "hover_node" && this.is_disabled(data.node)) { return; }
|
8558 |
this.get_node(data.node, true).children('.jstree-wholerow')[e.type === "hover_node"?"addClass":"removeClass"]('jstree-wholerow-hovered');
|
8559 |
-
}
|
8560 |
-
.on("contextmenu.jstree", ".jstree-wholerow",
|
8561 |
if (this._data.contextmenu) {
|
8562 |
e.preventDefault();
|
8563 |
var tmp = $.Event('contextmenu', { metaKey : e.metaKey, ctrlKey : e.ctrlKey, altKey : e.altKey, shiftKey : e.shiftKey, pageX : e.pageX, pageY : e.pageY });
|
8564 |
$(e.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(tmp);
|
8565 |
}
|
8566 |
-
}
|
8567 |
/*!
|
8568 |
.on("mousedown.jstree touchstart.jstree", ".jstree-wholerow", function (e) {
|
8569 |
if(e.target === e.currentTarget) {
|
@@ -8576,28 +8610,28 @@
|
|
8576 |
.on("click.jstree", ".jstree-wholerow", function (e) {
|
8577 |
e.stopImmediatePropagation();
|
8578 |
var tmp = $.Event('click', { metaKey : e.metaKey, ctrlKey : e.ctrlKey, altKey : e.altKey, shiftKey : e.shiftKey });
|
8579 |
-
$(e.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(tmp).focus
|
8580 |
})
|
8581 |
.on("dblclick.jstree", ".jstree-wholerow", function (e) {
|
8582 |
e.stopImmediatePropagation();
|
8583 |
var tmp = $.Event('dblclick', { metaKey : e.metaKey, ctrlKey : e.ctrlKey, altKey : e.altKey, shiftKey : e.shiftKey });
|
8584 |
-
$(e.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(tmp).focus
|
8585 |
})
|
8586 |
-
.on("click.jstree", ".jstree-leaf > .jstree-ocl",
|
8587 |
e.stopImmediatePropagation();
|
8588 |
var tmp = $.Event('click', { metaKey : e.metaKey, ctrlKey : e.ctrlKey, altKey : e.altKey, shiftKey : e.shiftKey });
|
8589 |
-
$(e.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(tmp).focus
|
8590 |
-
}
|
8591 |
-
.on("mouseover.jstree", ".jstree-wholerow, .jstree-icon",
|
8592 |
e.stopImmediatePropagation();
|
8593 |
if(!this.is_disabled(e.currentTarget)) {
|
8594 |
this.hover_node(e.currentTarget);
|
8595 |
}
|
8596 |
return false;
|
8597 |
-
}
|
8598 |
-
.on("mouseleave.jstree", ".jstree-node",
|
8599 |
this.dehover_node(e.currentTarget);
|
8600 |
-
}
|
8601 |
};
|
8602 |
this.teardown = function () {
|
8603 |
if(this.settings.wholerow) {
|
13 |
}(function ($, undefined) {
|
14 |
"use strict";
|
15 |
/*!
|
16 |
+
* jsTree 3.3.12
|
17 |
* http://jstree.com/
|
18 |
*
|
19 |
* Copyright (c) 2014 Ivan Bozhanov (http://vakata.com)
|
63 |
* specifies the jstree version in use
|
64 |
* @name $.jstree.version
|
65 |
*/
|
66 |
+
version : '3.3.12',
|
67 |
/**
|
68 |
* holds all the default options used when creating new instances
|
69 |
* @name $.jstree.defaults
|
274 |
* You can also pass in a HTML string or a JSON array here.
|
275 |
*
|
276 |
* It is possible to pass in a standard jQuery-like AJAX config and jstree will automatically determine if the response is JSON or HTML and use that to populate the tree.
|
277 |
+
* In addition to the standard jQuery ajax options here you can supply functions for `data` and `url`, the functions will be run in the current instance's scope and a param will be passed indicating which node is being loaded, the return value of those functions will be used.
|
278 |
*
|
279 |
* The last option is to specify a function, that function will receive the node being loaded as argument and a second param which is a function which should be called with the result.
|
280 |
*
|
453 |
* @name $.jstree.defaults.core.restore_focus
|
454 |
*/
|
455 |
restore_focus : true,
|
456 |
+
/**
|
457 |
+
* Force to compute and set "aria-setsize" and "aria-posinset" explicitly for each treeitem.
|
458 |
+
* Some browsers may compute incorrect elements position and produce wrong announcements for screen readers. Defaults to `false`
|
459 |
+
* @name $.jstree.defaults.core.compute_elements_positions
|
460 |
+
*/
|
461 |
+
compute_elements_positions : false,
|
462 |
/**
|
463 |
* Default keyboard shortcuts (an object where each key is the button name or combo - like 'enter', 'ctrl-space', 'p', etc and the value is the function to execute in the instance's scope)
|
464 |
* @name $.jstree.defaults.core.keyboard
|
482 |
}
|
483 |
else {
|
484 |
var o = this.get_parent(e.currentTarget);
|
485 |
+
if(o && o.id !== $.jstree.root) { this.get_node(o, true).children('.jstree-anchor').trigger('focus'); }
|
486 |
}
|
487 |
},
|
488 |
'up': function (e) {
|
489 |
// up
|
490 |
e.preventDefault();
|
491 |
var o = this.get_prev_dom(e.currentTarget);
|
492 |
+
if(o && o.length) { o.children('.jstree-anchor').trigger('focus'); }
|
493 |
},
|
494 |
'right': function (e) {
|
495 |
// right
|
496 |
e.preventDefault();
|
497 |
if(this.is_closed(e.currentTarget)) {
|
498 |
+
this.open_node(e.currentTarget, function (o) { this.get_node(o, true).children('.jstree-anchor').trigger('focus'); });
|
499 |
}
|
500 |
else if (this.is_open(e.currentTarget)) {
|
501 |
var o = this.get_node(e.currentTarget, true).children('.jstree-children')[0];
|
502 |
+
if(o) { $(this._firstChild(o)).children('.jstree-anchor').trigger('focus'); }
|
503 |
}
|
504 |
},
|
505 |
'down': function (e) {
|
506 |
// down
|
507 |
e.preventDefault();
|
508 |
var o = this.get_next_dom(e.currentTarget);
|
509 |
+
if(o && o.length) { o.children('.jstree-anchor').trigger('focus'); }
|
510 |
},
|
511 |
'*': function (e) {
|
512 |
// aria defines * on numpad as open_all - not very common
|
516 |
// home
|
517 |
e.preventDefault();
|
518 |
var o = this._firstChild(this.get_container_ul()[0]);
|
519 |
+
if(o) { $(o).children('.jstree-anchor').filter(':visible').trigger('focus'); }
|
520 |
},
|
521 |
'end': function (e) {
|
522 |
// end
|
523 |
e.preventDefault();
|
524 |
+
this.element.find('.jstree-anchor').filter(':visible').last().trigger('focus');
|
525 |
},
|
526 |
'f2': function (e) {
|
527 |
// f2 - safe to include - if check_callback is false it will fail
|
608 |
return this.nodeType === 3 && (!this.nodeValue || /^\s+$/.test(this.nodeValue));
|
609 |
})
|
610 |
.remove();
|
611 |
+
this.element.html("<"+"ul class='jstree-container-ul jstree-children' role='group'><"+"li id='j"+this._id+"_loading' class='jstree-initial-node jstree-loading jstree-leaf jstree-last' role='none'><i class='jstree-icon jstree-ocl'></i><"+"a class='jstree-anchor' role='treeitem' href='#'><i class='jstree-icon jstree-themeicon-hidden'></i>" + this.get_string("Loading ...") + "</a></li></ul>");
|
612 |
this.element.attr('aria-activedescendant','j' + this._id + '_loading');
|
613 |
this._data.core.li_height = this.get_container_ul().children("li").first().outerHeight() || 24;
|
614 |
this._data.core.node = this._create_prototype_node();
|
649 |
*/
|
650 |
_create_prototype_node : function () {
|
651 |
var _node = document.createElement('LI'), _temp1, _temp2;
|
652 |
+
_node.setAttribute('role', 'none');
|
653 |
_temp1 = document.createElement('I');
|
654 |
_temp1.className = 'jstree-icon jstree-ocl';
|
655 |
_temp1.setAttribute('role', 'presentation');
|
753 |
}
|
754 |
}
|
755 |
})
|
756 |
+
.on("mousedown.jstree", function (e) {
|
757 |
if(e.target === this.element[0]) {
|
758 |
e.preventDefault(); // prevent losing focus when clicking scroll arrows (FF, Chrome)
|
759 |
was_click = +(new Date()); // ie does not allow to prevent losing focus
|
760 |
}
|
761 |
+
}.bind(this))
|
762 |
.on("mousedown.jstree", ".jstree-ocl", function (e) {
|
763 |
e.preventDefault(); // prevent any node inside from losing focus when clicking the open/close icon
|
764 |
})
|
765 |
+
.on("click.jstree", ".jstree-ocl", function (e) {
|
766 |
this.toggle_node(e.target);
|
767 |
+
}.bind(this))
|
768 |
+
.on("dblclick.jstree", ".jstree-anchor", function (e) {
|
769 |
if(e.target.tagName && e.target.tagName.toLowerCase() === "input") { return true; }
|
770 |
if(this.settings.core.dblclick_toggle) {
|
771 |
this.toggle_node(e.target);
|
772 |
}
|
773 |
+
}.bind(this))
|
774 |
+
.on("click.jstree", ".jstree-anchor", function (e) {
|
775 |
e.preventDefault();
|
776 |
+
if(e.currentTarget !== document.activeElement) { $(e.currentTarget).trigger('focus'); }
|
777 |
this.activate_node(e.currentTarget, e);
|
778 |
+
}.bind(this))
|
779 |
+
.on('keydown.jstree', '.jstree-anchor', function (e) {
|
780 |
if(e.target.tagName && e.target.tagName.toLowerCase() === "input") { return true; }
|
781 |
if(this._data.core.rtl) {
|
782 |
if(e.which === 37) { e.which = 39; }
|
789 |
return r;
|
790 |
}
|
791 |
}
|
792 |
+
}.bind(this))
|
793 |
+
.on("load_node.jstree", function (e, data) {
|
794 |
if(data.status) {
|
795 |
if(data.node.id === $.jstree.root && !this._data.core.loaded) {
|
796 |
this._data.core.loaded = true;
|
805 |
this.trigger("loaded");
|
806 |
}
|
807 |
if(!this._data.core.ready) {
|
808 |
+
setTimeout(function() {
|
809 |
if(this.element && !this.get_container_ul().find('.jstree-loading').length) {
|
810 |
this._data.core.ready = true;
|
811 |
if(this._data.core.selected.length) {
|
828 |
*/
|
829 |
this.trigger("ready");
|
830 |
}
|
831 |
+
}.bind(this), 0);
|
832 |
}
|
833 |
}
|
834 |
+
}.bind(this))
|
835 |
// quick searching when the tree is focused
|
836 |
+
.on('keypress.jstree', function (e) {
|
837 |
if(e.target.tagName && e.target.tagName.toLowerCase() === "input") { return true; }
|
838 |
if(tout) { clearTimeout(tout); }
|
839 |
tout = setTimeout(function () {
|
848 |
|
849 |
// match for whole word from current node down (including the current node)
|
850 |
if(word.length > 1) {
|
851 |
+
col.slice(ind).each(function (i, v) {
|
852 |
if($(v).text().toLowerCase().indexOf(word) === 0) {
|
853 |
+
$(v).trigger('focus');
|
854 |
end = true;
|
855 |
return false;
|
856 |
}
|
857 |
+
}.bind(this));
|
858 |
if(end) { return; }
|
859 |
|
860 |
// match for whole word from the beginning of the tree
|
861 |
+
col.slice(0, ind).each(function (i, v) {
|
862 |
if($(v).text().toLowerCase().indexOf(word) === 0) {
|
863 |
+
$(v).trigger('focus');
|
864 |
end = true;
|
865 |
return false;
|
866 |
}
|
867 |
+
}.bind(this));
|
868 |
if(end) { return; }
|
869 |
}
|
870 |
// list nodes that start with that letter (only if word consists of a single char)
|
871 |
if(new RegExp('^' + chr.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&') + '+$').test(word)) {
|
872 |
// search for the next node starting with that letter
|
873 |
+
col.slice(ind + 1).each(function (i, v) {
|
874 |
if($(v).text().toLowerCase().charAt(0) === chr) {
|
875 |
+
$(v).trigger('focus');
|
876 |
end = true;
|
877 |
return false;
|
878 |
}
|
879 |
+
}.bind(this));
|
880 |
if(end) { return; }
|
881 |
|
882 |
// search from the beginning
|
883 |
+
col.slice(0, ind + 1).each(function (i, v) {
|
884 |
if($(v).text().toLowerCase().charAt(0) === chr) {
|
885 |
+
$(v).trigger('focus');
|
886 |
end = true;
|
887 |
return false;
|
888 |
}
|
889 |
+
}.bind(this));
|
890 |
if(end) { return; }
|
891 |
}
|
892 |
+
}.bind(this))
|
893 |
// THEME RELATED
|
894 |
+
.on("init.jstree", function () {
|
895 |
var s = this.settings.core.themes;
|
896 |
this._data.core.themes.dots = s.dots;
|
897 |
this._data.core.themes.stripes = s.stripes;
|
899 |
this._data.core.themes.ellipsis = s.ellipsis;
|
900 |
this.set_theme(s.name || "default", s.url);
|
901 |
this.set_theme_variant(s.variant);
|
902 |
+
}.bind(this))
|
903 |
+
.on("loading.jstree", function () {
|
904 |
this[ this._data.core.themes.dots ? "show_dots" : "hide_dots" ]();
|
905 |
this[ this._data.core.themes.icons ? "show_icons" : "hide_icons" ]();
|
906 |
this[ this._data.core.themes.stripes ? "show_stripes" : "hide_stripes" ]();
|
907 |
this[ this._data.core.themes.ellipsis ? "show_ellipsis" : "hide_ellipsis" ]();
|
908 |
+
}.bind(this))
|
909 |
+
.on('blur.jstree', '.jstree-anchor', function (e) {
|
910 |
this._data.core.focused = null;
|
911 |
$(e.currentTarget).filter('.jstree-hovered').trigger('mouseleave');
|
912 |
this.element.attr('tabindex', '0');
|
913 |
+
}.bind(this))
|
914 |
+
.on('focus.jstree', '.jstree-anchor', function (e) {
|
915 |
var tmp = this.get_node(e.currentTarget);
|
916 |
if(tmp && tmp.id) {
|
917 |
this._data.core.focused = tmp.id;
|
919 |
this.element.find('.jstree-hovered').not(e.currentTarget).trigger('mouseleave');
|
920 |
$(e.currentTarget).trigger('mouseenter');
|
921 |
this.element.attr('tabindex', '-1');
|
922 |
+
}.bind(this))
|
923 |
+
.on('focus.jstree', function () {
|
924 |
if(+(new Date()) - was_click > 500 && !this._data.core.focused && this.settings.core.restore_focus) {
|
925 |
was_click = 0;
|
926 |
var act = this.get_node(this.element.attr('aria-activedescendant'), true);
|
927 |
if(act) {
|
928 |
+
act.find('> .jstree-anchor').trigger('focus');
|
929 |
}
|
930 |
}
|
931 |
+
}.bind(this))
|
932 |
+
.on('mouseenter.jstree', '.jstree-anchor', function (e) {
|
933 |
this.hover_node(e.currentTarget);
|
934 |
+
}.bind(this))
|
935 |
+
.on('mouseleave.jstree', '.jstree-anchor', function (e) {
|
936 |
this.dehover_node(e.currentTarget);
|
937 |
+
}.bind(this));
|
938 |
},
|
939 |
/**
|
940 |
* part of the destroying of an instance. Used internally.
|
985 |
*/
|
986 |
get_string : function (key) {
|
987 |
var a = this.settings.core.strings;
|
988 |
+
if($.vakata.is_function(a)) { return a.call(this, key); }
|
989 |
if(a && a[key]) { return a[key]; }
|
990 |
return key;
|
991 |
},
|
1277 |
*/
|
1278 |
load_node : function (obj, callback) {
|
1279 |
var k, l, i, j, c;
|
1280 |
+
if($.vakata.is_array(obj)) {
|
1281 |
this._load_nodes(obj.slice(), callback);
|
1282 |
return true;
|
1283 |
}
|
1314 |
obj.state.failed = false;
|
1315 |
obj.state.loading = true;
|
1316 |
this.get_node(obj, true).addClass("jstree-loading").attr('aria-busy',true);
|
1317 |
+
this._load_node(obj, function (status) {
|
1318 |
obj = this._model.data[obj.id];
|
1319 |
obj.state.loading = false;
|
1320 |
obj.state.loaded = status;
|
1349 |
if(callback) {
|
1350 |
callback.call(this, obj, status);
|
1351 |
}
|
1352 |
+
}.bind(this));
|
1353 |
return true;
|
1354 |
},
|
1355 |
/**
|
1447 |
}
|
1448 |
// return callback.call(this, obj.id === $.jstree.root ? this._append_html_data(obj, this._data.core.original_container_html.clone(true)) : false);
|
1449 |
}
|
1450 |
+
if($.vakata.is_function(s)) {
|
1451 |
+
return s.call(this, obj, function (d) {
|
1452 |
if(d === false) {
|
1453 |
callback.call(this, false);
|
1454 |
}
|
1458 |
});
|
1459 |
}
|
1460 |
// return d === false ? callback.call(this, false) : callback.call(this, this[typeof d === 'string' ? '_append_html_data' : '_append_json_data'](obj, typeof d === 'string' ? $(d) : d));
|
1461 |
+
}.bind(this));
|
1462 |
}
|
1463 |
if(typeof s === 'object') {
|
1464 |
if(s.url) {
|
1465 |
s = $.extend(true, {}, s);
|
1466 |
+
if($.vakata.is_function(s.url)) {
|
1467 |
s.url = s.url.call(this, obj);
|
1468 |
}
|
1469 |
+
if($.vakata.is_function(s.data)) {
|
1470 |
s.data = s.data.call(this, obj);
|
1471 |
}
|
1472 |
return $.ajax(s)
|
1473 |
+
.done(function (d,t,x) {
|
1474 |
var type = x.getResponseHeader('Content-Type');
|
1475 |
if((type && type.indexOf('json') !== -1) || typeof d === "object") {
|
1476 |
return this._append_json_data(obj, d, function (status) { callback.call(this, status); });
|
1483 |
this._data.core.last_error = { 'error' : 'ajax', 'plugin' : 'core', 'id' : 'core_04', 'reason' : 'Could not load node', 'data' : JSON.stringify({ 'id' : obj.id, 'xhr' : x }) };
|
1484 |
this.settings.core.error.call(this, this._data.core.last_error);
|
1485 |
return callback.call(this, false);
|
1486 |
+
}.bind(this))
|
1487 |
+
.fail(function (f) {
|
1488 |
this._data.core.last_error = { 'error' : 'ajax', 'plugin' : 'core', 'id' : 'core_04', 'reason' : 'Could not load node', 'data' : JSON.stringify({ 'id' : obj.id, 'xhr' : f }) };
|
1489 |
callback.call(this, false);
|
1490 |
this.settings.core.error.call(this, this._data.core.last_error);
|
1491 |
+
}.bind(this));
|
1492 |
}
|
1493 |
+
if ($.vakata.is_array(s)) {
|
1494 |
t = $.extend(true, [], s);
|
1495 |
} else if ($.isPlainObject(s)) {
|
1496 |
t = $.extend(true, {}, s);
|
1556 |
p = m[par],
|
1557 |
s = this._data.core.selected.length,
|
1558 |
tmp, i, j;
|
1559 |
+
dat.each(function (i, v) {
|
1560 |
tmp = this._parse_model_from_html($(v), par, p.parents.concat());
|
1561 |
if(tmp) {
|
1562 |
chd.push(tmp);
|
1565 |
dpc = dpc.concat(m[tmp].children_d);
|
1566 |
}
|
1567 |
}
|
1568 |
+
}.bind(this));
|
1569 |
p.children = chd;
|
1570 |
p.children_d = dpc;
|
1571 |
for(i = 0, j = p.parents.length; i < j; i++) {
|
1613 |
data = JSON.parse(data);
|
1614 |
}
|
1615 |
}
|
1616 |
+
if(!$.vakata.is_array(data)) { data = [data]; }
|
1617 |
var w = null,
|
1618 |
args = {
|
1619 |
'df' : this._model.default_state,
|
1978 |
if(!this._data.core.working || force_processing) {
|
1979 |
this._data.core.working = true;
|
1980 |
w = new window.Worker(this._wrk);
|
1981 |
+
w.onmessage = function (e) {
|
1982 |
rslt.call(this, e.data, true);
|
1983 |
try { w.terminate(); w = null; } catch(ignore) { }
|
1984 |
if(this._data.core.worker_queue.length) {
|
1987 |
else {
|
1988 |
this._data.core.working = false;
|
1989 |
}
|
1990 |
+
}.bind(this);
|
1991 |
if(!args.par) {
|
1992 |
if(this._data.core.worker_queue.length) {
|
1993 |
this._append_json_data.apply(this, this._data.core.worker_queue.shift());
|
2053 |
}
|
2054 |
tmp = $.vakata.attributes(d, true);
|
2055 |
$.each(tmp, function (i, v) {
|
2056 |
+
v = $.vakata.trim(v);
|
2057 |
if(!v.length) { return true; }
|
2058 |
data.li_attr[i] = v;
|
2059 |
if(i === 'id') {
|
2064 |
if(tmp.length) {
|
2065 |
tmp = $.vakata.attributes(tmp, true);
|
2066 |
$.each(tmp, function (i, v) {
|
2067 |
+
v = $.vakata.trim(v);
|
2068 |
if(v.length) {
|
2069 |
data.a_attr[i] = v;
|
2070 |
}
|
2103 |
} while(m[tid]);
|
2104 |
data.id = data.li_attr.id ? data.li_attr.id.toString() : tid;
|
2105 |
if(tmp.length) {
|
2106 |
+
tmp.each(function (i, v) {
|
2107 |
c = this._parse_model_from_html($(v), data.id, ps);
|
2108 |
e = this._model.data[c];
|
2109 |
data.children.push(c);
|
2110 |
if(e.children_d.length) {
|
2111 |
data.children_d = data.children_d.concat(e.children_d);
|
2112 |
}
|
2113 |
+
}.bind(this));
|
2114 |
data.children_d = data.children_d.concat(data.children);
|
2115 |
}
|
2116 |
else {
|
2362 |
if(fe !== null && this.settings.core.restore_focus) {
|
2363 |
tmp = this.get_node(fe, true);
|
2364 |
if(tmp && tmp.length && tmp.children('.jstree-anchor')[0] !== document.activeElement) {
|
2365 |
+
tmp.children('.jstree-anchor').trigger('focus');
|
2366 |
}
|
2367 |
else {
|
2368 |
this._data.core.focused = null;
|
2503 |
if(!obj.a_attr.id) {
|
2504 |
obj.a_attr.id = obj.id + '_anchor';
|
2505 |
}
|
|
|
2506 |
node.childNodes[1].setAttribute('aria-selected', !!obj.state.selected);
|
|
|
2507 |
node.childNodes[1].setAttribute('aria-level', obj.parents.length);
|
2508 |
+
if(this.settings.core.compute_elements_positions) {
|
2509 |
+
node.childNodes[1].setAttribute('aria-setsize', m[obj.parent].children.length);
|
2510 |
+
node.childNodes[1].setAttribute('aria-posinset', m[obj.parent].children.indexOf(obj.id) + 1);
|
2511 |
+
}
|
2512 |
if(obj.state.disabled) {
|
|
|
2513 |
node.childNodes[1].setAttribute('aria-disabled', true);
|
2514 |
}
|
2515 |
|
2546 |
}
|
2547 |
else {
|
2548 |
c += obj.state.opened && obj.state.loaded ? ' jstree-open' : ' jstree-closed';
|
|
|
2549 |
node.childNodes[1].setAttribute('aria-expanded', (obj.state.opened && obj.state.loaded) );
|
2550 |
}
|
2551 |
if(last_sibling === obj.id) {
|
2638 |
}
|
2639 |
if(obj.state.opened && !obj.state.loaded) {
|
2640 |
obj.state.opened = false;
|
2641 |
+
setTimeout(function () {
|
2642 |
this.open_node(obj.id, false, 0);
|
2643 |
+
}.bind(this), 0);
|
2644 |
}
|
2645 |
return node;
|
2646 |
},
|
2654 |
*/
|
2655 |
open_node : function (obj, callback, animation) {
|
2656 |
var t1, t2, d, t;
|
2657 |
+
if($.vakata.is_array(obj)) {
|
2658 |
obj = obj.slice();
|
2659 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
2660 |
this.open_node(obj[t1], callback, animation);
|
2674 |
}
|
2675 |
if(!this.is_loaded(obj)) {
|
2676 |
if(this.is_loading(obj)) {
|
2677 |
+
return setTimeout(function () {
|
2678 |
this.open_node(obj, callback, animation);
|
2679 |
+
}.bind(this), 500);
|
2680 |
}
|
2681 |
this.load_node(obj, function (o, ok) {
|
2682 |
return ok ? this.open_node(o, callback, animation) : (callback ? callback.call(this, o, false) : false);
|
2696 |
if(!animation) {
|
2697 |
this.trigger('before_open', { "node" : obj });
|
2698 |
d[0].className = d[0].className.replace('jstree-closed', 'jstree-open');
|
|
|
2699 |
d[0].childNodes[1].setAttribute("aria-expanded", true);
|
2700 |
}
|
2701 |
else {
|
2702 |
this.trigger('before_open', { "node" : obj });
|
2703 |
d
|
2704 |
.children(".jstree-children").css("display","none").end()
|
2705 |
+
.removeClass("jstree-closed").addClass("jstree-open")
|
2706 |
.children('.jstree-anchor').attr("aria-expanded", true).end()
|
2707 |
.children(".jstree-children").stop(true, true)
|
2708 |
.slideDown(animation, function () {
|
2773 |
*/
|
2774 |
close_node : function (obj, animation) {
|
2775 |
var t1, t2, t, d;
|
2776 |
+
if($.vakata.is_array(obj)) {
|
2777 |
obj = obj.slice();
|
2778 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
2779 |
this.close_node(obj[t1], animation);
|
2812 |
if(!animation) {
|
2813 |
d[0].className = d[0].className.replace('jstree-open', 'jstree-closed');
|
2814 |
d.children('.jstree-anchor').attr("aria-expanded", false);
|
2815 |
+
d.children('.jstree-children').remove();
|
2816 |
this.trigger("after_close", { "node" : obj });
|
2817 |
}
|
2818 |
else {
|
2819 |
d
|
2820 |
.children(".jstree-children").attr("style","display:block !important").end()
|
2821 |
+
.removeClass("jstree-open").addClass("jstree-closed")
|
2822 |
.children('.jstree-anchor').attr("aria-expanded", false).end()
|
2823 |
.children(".jstree-children").stop(true, true).slideUp(animation, function () {
|
2824 |
this.style.display = "";
|
2837 |
*/
|
2838 |
toggle_node : function (obj) {
|
2839 |
var t1, t2;
|
2840 |
+
if($.vakata.is_array(obj)) {
|
2841 |
obj = obj.slice();
|
2842 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
2843 |
this.toggle_node(obj[t1]);
|
2938 |
*/
|
2939 |
enable_node : function (obj) {
|
2940 |
var t1, t2;
|
2941 |
+
if($.vakata.is_array(obj)) {
|
2942 |
obj = obj.slice();
|
2943 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
2944 |
this.enable_node(obj[t1]);
|
2967 |
*/
|
2968 |
disable_node : function (obj) {
|
2969 |
var t1, t2;
|
2970 |
+
if($.vakata.is_array(obj)) {
|
2971 |
obj = obj.slice();
|
2972 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
2973 |
this.disable_node(obj[t1]);
|
3006 |
*/
|
3007 |
hide_node : function (obj, skip_redraw) {
|
3008 |
var t1, t2;
|
3009 |
+
if($.vakata.is_array(obj)) {
|
3010 |
obj = obj.slice();
|
3011 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
3012 |
this.hide_node(obj[t1], true);
|
3044 |
*/
|
3045 |
show_node : function (obj, skip_redraw) {
|
3046 |
var t1, t2;
|
3047 |
+
if($.vakata.is_array(obj)) {
|
3048 |
obj = obj.slice();
|
3049 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
3050 |
this.show_node(obj[t1], true);
|
3256 |
*/
|
3257 |
select_node : function (obj, supress_event, prevent_open, e) {
|
3258 |
var dom, t1, t2, th;
|
3259 |
+
if($.vakata.is_array(obj)) {
|
3260 |
obj = obj.slice();
|
3261 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
3262 |
this.select_node(obj[t1], supress_event, prevent_open, e);
|
3275 |
dom = this._open_to(obj);
|
3276 |
}
|
3277 |
if(dom && dom.length) {
|
3278 |
+
dom.children('.jstree-anchor').addClass('jstree-clicked').attr('aria-selected', true);
|
3279 |
}
|
3280 |
/**
|
3281 |
* triggered when an node is selected
|
3309 |
*/
|
3310 |
deselect_node : function (obj, supress_event, e) {
|
3311 |
var t1, t2, dom;
|
3312 |
+
if($.vakata.is_array(obj)) {
|
3313 |
obj = obj.slice();
|
3314 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
3315 |
this.deselect_node(obj[t1], supress_event, e);
|
3325 |
obj.state.selected = false;
|
3326 |
this._data.core.selected = $.vakata.array_remove_item(this._data.core.selected, obj.id);
|
3327 |
if(dom.length) {
|
3328 |
+
dom.children('.jstree-anchor').removeClass('jstree-clicked').attr('aria-selected', false);
|
3329 |
}
|
3330 |
/**
|
3331 |
* triggered when an node is deselected
|
3381 |
}
|
3382 |
}
|
3383 |
this._data.core.selected = [];
|
3384 |
+
this.element.find('.jstree-clicked').removeClass('jstree-clicked').attr('aria-selected', false);
|
3385 |
/**
|
3386 |
* triggered when all nodes are deselected
|
3387 |
* @event
|
3414 |
* @return {Array}
|
3415 |
*/
|
3416 |
get_selected : function (full) {
|
3417 |
+
return full ? $.map(this._data.core.selected, function (i) { return this.get_node(i); }.bind(this)) : this._data.core.selected.slice();
|
3418 |
},
|
3419 |
/**
|
3420 |
* get an array of all top level selected nodes (ignoring children of selected nodes)
|
3441 |
tmp.push(i);
|
3442 |
}
|
3443 |
}
|
3444 |
+
return full ? $.map(tmp, function (i) { return this.get_node(i); }.bind(this)) : tmp;
|
3445 |
},
|
3446 |
/**
|
3447 |
* get an array of all bottom level selected nodes (ignoring selected parents)
|
3457 |
obj.push(tmp[i].id);
|
3458 |
}
|
3459 |
}
|
3460 |
+
return full ? $.map(obj, function (i) { return this.get_node(i); }.bind(this)) : obj;
|
3461 |
},
|
3462 |
/**
|
3463 |
* gets the current state of the tree so that it can be restored later with `set_state(state)`. Used internally.
|
3517 |
if(state.core) {
|
3518 |
var res, n, t, _this, i;
|
3519 |
if(state.core.loaded) {
|
3520 |
+
if(!this.settings.core.loaded_state || !$.vakata.is_array(state.core.loaded) || !state.core.loaded.length) {
|
3521 |
delete state.core.loaded;
|
3522 |
this.set_state(state, callback);
|
3523 |
}
|
3530 |
return false;
|
3531 |
}
|
3532 |
if(state.core.open) {
|
3533 |
+
if(!$.vakata.is_array(state.core.open) || !state.core.open.length) {
|
3534 |
delete state.core.open;
|
3535 |
this.set_state(state, callback);
|
3536 |
}
|
3604 |
*/
|
3605 |
refresh : function (skip_loading, forget_state) {
|
3606 |
this._data.core.state = forget_state === true ? {} : this.get_state();
|
3607 |
+
if(forget_state && $.vakata.is_function(forget_state)) { this._data.core.state = forget_state.call(this, this._data.core.state); }
|
3608 |
this._cnt = 0;
|
3609 |
this._model.data = {};
|
3610 |
this._model.data[$.jstree.root] = {
|
3621 |
|
3622 |
var c = this.get_container_ul()[0].className;
|
3623 |
if(!skip_loading) {
|
3624 |
+
this.element.html("<"+"ul class='"+c+"' role='group'><"+"li class='jstree-initial-node jstree-loading jstree-leaf jstree-last' role='none' id='j"+this._id+"_loading'><i class='jstree-icon jstree-ocl'></i><"+"a class='jstree-anchor' role='treeitem' href='#'><i class='jstree-icon jstree-themeicon-hidden'></i>" + this.get_string("Loading ...") + "</a></li></ul>");
|
3625 |
this.element.attr('aria-activedescendant','j'+this._id+'_loading');
|
3626 |
}
|
3627 |
this.load_node($.jstree.root, function (o, s) {
|
3655 |
to_load.push(obj.id);
|
3656 |
if(obj.state.opened === true) { opened.push(obj.id); }
|
3657 |
this.get_node(obj, true).find('.jstree-open').each(function() { to_load.push(this.id); opened.push(this.id); });
|
3658 |
+
this._load_nodes(to_load, function (nodes) {
|
3659 |
this.open_node(opened, false, 0);
|
3660 |
this.select_node(s);
|
3661 |
/**
|
3666 |
* @param {Array} nodes - an array of the IDs of the nodes that were reloaded
|
3667 |
*/
|
3668 |
this.trigger('refresh_node', { 'node' : obj, 'nodes' : nodes });
|
3669 |
+
}.bind(this), false, true);
|
3670 |
},
|
3671 |
/**
|
3672 |
* set (change) the ID of a node
|
3738 |
*/
|
3739 |
set_text : function (obj, val) {
|
3740 |
var t1, t2;
|
3741 |
+
if($.vakata.is_array(obj)) {
|
3742 |
obj = obj.slice();
|
3743 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
3744 |
this.set_text(obj[t1], val);
|
3786 |
'li_attr' : $.extend(true, {}, obj.li_attr),
|
3787 |
'a_attr' : $.extend(true, {}, obj.a_attr),
|
3788 |
'state' : {},
|
3789 |
+
'data' : options && options.no_data ? false : $.extend(true, $.vakata.is_array(obj.data)?[]:{}, obj.data)
|
3790 |
//( this.get_node(obj, true).length ? this.get_node(obj, true).data() : obj.data ),
|
3791 |
}, i, j;
|
3792 |
if(options && options.flat) {
|
3938 |
*/
|
3939 |
rename_node : function (obj, val) {
|
3940 |
var t1, t2, old;
|
3941 |
+
if($.vakata.is_array(obj)) {
|
3942 |
obj = obj.slice();
|
3943 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
3944 |
this.rename_node(obj[t1], val);
|
3973 |
*/
|
3974 |
delete_node : function (obj) {
|
3975 |
var t1, t2, par, pos, tmp, i, j, k, l, c, top, lft;
|
3976 |
+
if($.vakata.is_array(obj)) {
|
3977 |
obj = obj.slice();
|
3978 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
3979 |
this.delete_node(obj[t1]);
|
4030 |
lft = this.element[0].scrollLeft;
|
4031 |
if(par.id === $.jstree.root) {
|
4032 |
if (this._model.data[$.jstree.root].children[0]) {
|
4033 |
+
this.get_node(this._model.data[$.jstree.root].children[0], true).children('.jstree-anchor').trigger('focus');
|
4034 |
}
|
4035 |
}
|
4036 |
else {
|
4037 |
+
this.get_node(par, true).children('.jstree-anchor').trigger('focus');
|
4038 |
}
|
4039 |
this.element[0].scrollTop = top;
|
4040 |
this.element[0].scrollLeft = lft;
|
4075 |
}
|
4076 |
return tmp.functions[chk];
|
4077 |
}
|
4078 |
+
if(chc === false || ($.vakata.is_function(chc) && chc.call(this, chk, obj, par, pos, more) === false) || (chc && chc[chk] === false)) {
|
4079 |
this._data.core.last_error = { 'error' : 'check', 'plugin' : 'core', 'id' : 'core_03', 'reason' : 'User config for core.check_callback prevents function: ' + chk, 'data' : JSON.stringify({ 'chk' : chk, 'pos' : pos, 'obj' : obj && obj.id ? obj.id : false, 'par' : par && par.id ? par.id : false }) };
|
4080 |
return false;
|
4081 |
}
|
4111 |
return this.load_node(par, function () { this.move_node(obj, par, pos, callback, true, false, origin); });
|
4112 |
}
|
4113 |
|
4114 |
+
if($.vakata.is_array(obj)) {
|
4115 |
if(obj.length === 1) {
|
4116 |
obj = obj[0];
|
4117 |
}
|
4284 |
return this.load_node(par, function () { this.copy_node(obj, par, pos, callback, true, false, origin); });
|
4285 |
}
|
4286 |
|
4287 |
+
if($.vakata.is_array(obj)) {
|
4288 |
if(obj.length === 1) {
|
4289 |
obj = obj[0];
|
4290 |
}
|
4399 |
*/
|
4400 |
cut : function (obj) {
|
4401 |
if(!obj) { obj = this._data.core.selected.concat(); }
|
4402 |
+
if(!$.vakata.is_array(obj)) { obj = [obj]; }
|
4403 |
if(!obj.length) { return false; }
|
4404 |
var tmp = [], o, t1, t2;
|
4405 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
4426 |
*/
|
4427 |
copy : function (obj) {
|
4428 |
if(!obj) { obj = this._data.core.selected.concat(); }
|
4429 |
+
if(!$.vakata.is_array(obj)) { obj = [obj]; }
|
4430 |
if(!obj.length) { return false; }
|
4431 |
var tmp = [], o, t1, t2;
|
4432 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
4507 |
* @name edit(obj [, default_text, callback])
|
4508 |
* @param {mixed} obj
|
4509 |
* @param {String} default_text the text to populate the input with (if omitted or set to a non-string value the node's text value is used)
|
4510 |
+
* @param {Function} callback a function to be called once the text box is blurred, it is called in the instance's scope and receives the node, a status parameter (true if the rename is successful, false otherwise), a boolean indicating if the user cancelled the edit and the original unescaped value provided by the user. You can also access the node's title using .text
|
4511 |
*/
|
4512 |
edit : function (obj, default_text, callback) {
|
4513 |
var rtl, w, a, s, t, h1, h2, fn, tmp, cancel = false;
|
4526 |
rtl = this._data.core.rtl;
|
4527 |
w = this.element.width();
|
4528 |
this._data.core.focused = tmp.id;
|
4529 |
+
a = obj.children('.jstree-anchor').trigger('focus');
|
4530 |
s = $('<span></span>');
|
4531 |
/*!
|
4532 |
oi = obj.children("i:visible"),
|
4549 |
"lineHeight" : (this._data.core.li_height) + "px",
|
4550 |
"width" : "150px" // will be set a bit further down
|
4551 |
},
|
4552 |
+
"blur" : function (e) {
|
4553 |
e.stopImmediatePropagation();
|
4554 |
e.preventDefault();
|
4555 |
var i = s.children(".jstree-rename-input"),
|
4568 |
this.set_text(obj, t); // move this up? and fix #483
|
4569 |
}
|
4570 |
this._data.core.focused = tmp.id;
|
4571 |
+
setTimeout(function () {
|
4572 |
var node = this.get_node(tmp.id, true);
|
4573 |
if(node.length) {
|
4574 |
this._data.core.focused = tmp.id;
|
4575 |
+
node.children('.jstree-anchor').trigger('focus');
|
4576 |
}
|
4577 |
+
}.bind(this), 0);
|
4578 |
if(callback) {
|
4579 |
+
callback.call(this, tmp, nv, cancel, v);
|
4580 |
}
|
4581 |
h2 = null;
|
4582 |
+
}.bind(this),
|
4583 |
"keydown" : function (e) {
|
4584 |
var key = e.which;
|
4585 |
if(key === 27) {
|
4619 |
h2.css(fn).width(Math.min(h1.text("pW" + h2[0].value).width(),w))[0].select();
|
4620 |
$(document).one('mousedown.jstree touchstart.jstree dnd_start.vakata', function (e) {
|
4621 |
if (h2 && e.target !== h2) {
|
4622 |
+
$(h2).trigger('blur');
|
4623 |
}
|
4624 |
});
|
4625 |
},
|
4823 |
*/
|
4824 |
set_icon : function (obj, icon) {
|
4825 |
var t1, t2, dom, old;
|
4826 |
+
if($.vakata.is_array(obj)) {
|
4827 |
obj = obj.slice();
|
4828 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
4829 |
this.set_icon(obj[t1], icon);
|
4872 |
*/
|
4873 |
hide_icon : function (obj) {
|
4874 |
var t1, t2;
|
4875 |
+
if($.vakata.is_array(obj)) {
|
4876 |
obj = obj.slice();
|
4877 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
4878 |
this.hide_icon(obj[t1]);
|
4892 |
*/
|
4893 |
show_icon : function (obj) {
|
4894 |
var t1, t2, dom;
|
4895 |
+
if($.vakata.is_array(obj)) {
|
4896 |
obj = obj.slice();
|
4897 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
4898 |
this.show_icon(obj[t1]);
|
4918 |
if(node && node.attributes) {
|
4919 |
$.each(node.attributes, function (i, v) {
|
4920 |
if($.inArray(v.name.toLowerCase(),['style','contenteditable','hasfocus','tabindex']) !== -1) { return; }
|
4921 |
+
if(v.value !== null && $.vakata.trim(v.value) !== '') {
|
4922 |
if(with_values) { attr[v.name] = v.value; }
|
4923 |
else { attr.push(v.name); }
|
4924 |
}
|
4962 |
}
|
4963 |
return d;
|
4964 |
};
|
4965 |
+
$.vakata.trim = function (text) {
|
4966 |
+
return String.prototype.trim ?
|
4967 |
+
String.prototype.trim.call(text.toString()) :
|
4968 |
+
text.toString().replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
|
4969 |
+
};
|
4970 |
+
$.vakata.is_function = function(obj) {
|
4971 |
+
return typeof obj === "function" && typeof obj.nodeType !== "number";
|
4972 |
+
};
|
4973 |
+
$.vakata.is_array = Array.isArray || function (obj) {
|
4974 |
+
return Object.prototype.toString.call(obj) === "[object Array]";
|
4975 |
+
};
|
4976 |
+
|
4977 |
+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_objects/Function/bind#polyfill
|
4978 |
+
if (!Function.prototype.bind) {
|
4979 |
+
Function.prototype.bind = function () {
|
4980 |
+
var thatFunc = this, thatArg = arguments[0];
|
4981 |
+
var args = Array.prototype.slice.call(arguments, 1);
|
4982 |
+
if (typeof thatFunc !== 'function') {
|
4983 |
+
// closest thing possible to the ECMAScript 5
|
4984 |
+
// internal IsCallable function
|
4985 |
+
throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable');
|
4986 |
+
}
|
4987 |
+
return function(){
|
4988 |
+
var funcArgs = args.concat(Array.prototype.slice.call(arguments));
|
4989 |
+
return thatFunc.apply(thatArg, funcArgs);
|
4990 |
+
};
|
4991 |
+
};
|
4992 |
+
}
|
4993 |
|
4994 |
|
4995 |
/**
|
5123 |
this.settings.checkbox.cascade = 'up+down+undetermined';
|
5124 |
}
|
5125 |
this.element
|
5126 |
+
.on("init.jstree", function () {
|
5127 |
this._data.checkbox.visible = this.settings.checkbox.visible;
|
5128 |
if(!this.settings.checkbox.keep_selected_style) {
|
5129 |
this.element.addClass('jstree-checkbox-no-clicked');
|
5131 |
if(this.settings.checkbox.tie_selection) {
|
5132 |
this.element.addClass('jstree-checkbox-selection');
|
5133 |
}
|
5134 |
+
}.bind(this))
|
5135 |
+
.on("loading.jstree", function () {
|
5136 |
this[ this._data.checkbox.visible ? 'show_checkboxes' : 'hide_checkboxes' ]();
|
5137 |
+
}.bind(this));
|
5138 |
if(this.settings.checkbox.cascade.indexOf('undetermined') !== -1) {
|
5139 |
this.element
|
5140 |
+
.on('changed.jstree uncheck_node.jstree check_node.jstree uncheck_all.jstree check_all.jstree move_node.jstree copy_node.jstree redraw.jstree open_node.jstree', function () {
|
5141 |
// only if undetermined is in setting
|
5142 |
if(this._data.checkbox.uto) { clearTimeout(this._data.checkbox.uto); }
|
5143 |
+
this._data.checkbox.uto = setTimeout(this._undetermined.bind(this), 50);
|
5144 |
+
}.bind(this));
|
5145 |
}
|
5146 |
if(!this.settings.checkbox.tie_selection) {
|
5147 |
this.element
|
5148 |
+
.on('model.jstree', function (e, data) {
|
5149 |
var m = this._model.data,
|
5150 |
p = m[data.parent],
|
5151 |
dpc = data.nodes,
|
5156 |
this._data.checkbox.selected.push(dpc[i]);
|
5157 |
}
|
5158 |
}
|
5159 |
+
}.bind(this));
|
5160 |
}
|
5161 |
if(this.settings.checkbox.cascade.indexOf('up') !== -1 || this.settings.checkbox.cascade.indexOf('down') !== -1) {
|
5162 |
this.element
|
5163 |
+
.on('model.jstree', function (e, data) {
|
5164 |
var m = this._model.data,
|
5165 |
p = m[data.parent],
|
5166 |
dpc = data.nodes,
|
5220 |
}
|
5221 |
|
5222 |
this._data[ t ? 'core' : 'checkbox' ].selected = $.vakata.array_unique(this._data[ t ? 'core' : 'checkbox' ].selected);
|
5223 |
+
}.bind(this))
|
5224 |
+
.on(this.settings.checkbox.tie_selection ? 'select_node.jstree' : 'check_node.jstree', function (e, data) {
|
5225 |
var self = this,
|
5226 |
obj = data.node,
|
5227 |
m = this._model.data,
|
5278 |
}
|
5279 |
}
|
5280 |
this._data[ t ? 'core' : 'checkbox' ].selected = cur;
|
5281 |
+
}.bind(this))
|
5282 |
+
.on(this.settings.checkbox.tie_selection ? 'deselect_all.jstree' : 'uncheck_all.jstree', function (e, data) {
|
5283 |
var obj = this.get_node($.jstree.root),
|
5284 |
m = this._model.data,
|
5285 |
i, j, tmp;
|
5289 |
tmp.original.state.undetermined = false;
|
5290 |
}
|
5291 |
}
|
5292 |
+
}.bind(this))
|
5293 |
+
.on(this.settings.checkbox.tie_selection ? 'deselect_node.jstree' : 'uncheck_node.jstree', function (e, data) {
|
5294 |
var self = this,
|
5295 |
obj = data.node,
|
5296 |
dom = this.get_node(obj, true),
|
5329 |
}
|
5330 |
|
5331 |
this._data[ t ? 'core' : 'checkbox' ].selected = cur;
|
5332 |
+
}.bind(this));
|
5333 |
}
|
5334 |
if(this.settings.checkbox.cascade.indexOf('up') !== -1) {
|
5335 |
this.element
|
5336 |
+
.on('delete_node.jstree', function (e, data) {
|
5337 |
// apply up (whole handler)
|
5338 |
var p = this.get_node(data.parent),
|
5339 |
m = this._model.data,
|
5356 |
}
|
5357 |
p = this.get_node(p.parent);
|
5358 |
}
|
5359 |
+
}.bind(this))
|
5360 |
+
.on('move_node.jstree', function (e, data) {
|
5361 |
// apply up (whole handler)
|
5362 |
var is_multi = data.is_multi,
|
5363 |
old_par = data.old_parent,
|
5416 |
}
|
5417 |
p = this.get_node(p.parent);
|
5418 |
}
|
5419 |
+
}.bind(this));
|
5420 |
}
|
5421 |
};
|
5422 |
/**
|
5527 |
}
|
5528 |
if(!is_callback && this.settings.checkbox.cascade.indexOf('undetermined') !== -1) {
|
5529 |
if(this._data.checkbox.uto) { clearTimeout(this._data.checkbox.uto); }
|
5530 |
+
this._data.checkbox.uto = setTimeout(this._undetermined.bind(this), 50);
|
5531 |
}
|
5532 |
return obj;
|
5533 |
};
|
5580 |
*/
|
5581 |
this.disable_checkbox = function (obj) {
|
5582 |
var t1, t2, dom;
|
5583 |
+
if($.vakata.is_array(obj)) {
|
5584 |
obj = obj.slice();
|
5585 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
5586 |
this.disable_checkbox(obj[t1]);
|
5616 |
*/
|
5617 |
this.enable_checkbox = function (obj) {
|
5618 |
var t1, t2, dom;
|
5619 |
+
if($.vakata.is_array(obj)) {
|
5620 |
obj = obj.slice();
|
5621 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
5622 |
this.enable_checkbox(obj[t1]);
|
5670 |
* Cascades checked state to a node and all its descendants. This function does NOT affect hidden and disabled nodes (or their descendants).
|
5671 |
* However if these unaffected nodes are already selected their ids will be included in the returned array.
|
5672 |
* @private
|
5673 |
+
* @name _cascade_new_checked_state(id, checkedState)
|
5674 |
* @param {string} id the node ID
|
5675 |
* @param {bool} checkedState should the nodes be checked or not
|
5676 |
* @returns {Array} Array of all node id's (in this tree branch) that are checked.
|
5765 |
this.check_node = function (obj, e) {
|
5766 |
if(this.settings.checkbox.tie_selection) { return this.select_node(obj, false, true, e); }
|
5767 |
var dom, t1, t2, th;
|
5768 |
+
if($.vakata.is_array(obj)) {
|
5769 |
obj = obj.slice();
|
5770 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
5771 |
this.check_node(obj[t1], e);
|
5805 |
this.uncheck_node = function (obj, e) {
|
5806 |
if(this.settings.checkbox.tie_selection) { return this.deselect_node(obj, false, e); }
|
5807 |
var t1, t2, dom;
|
5808 |
+
if($.vakata.is_array(obj)) {
|
5809 |
obj = obj.slice();
|
5810 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
5811 |
this.uncheck_node(obj[t1], e);
|
5909 |
*/
|
5910 |
this.get_checked = function (full) {
|
5911 |
if(this.settings.checkbox.tie_selection) { return this.get_selected(full); }
|
5912 |
+
return full ? $.map(this._data.checkbox.selected, function (i) { return this.get_node(i); }.bind(this)) : this._data.checkbox.selected.slice();
|
5913 |
};
|
5914 |
/**
|
5915 |
* get an array of all top level checked nodes (ignoring children of checked nodes) (if tie_selection is on in the settings this function will return the same as get_top_selected)
|
5938 |
tmp.push(i);
|
5939 |
}
|
5940 |
}
|
5941 |
+
return full ? $.map(tmp, function (i) { return this.get_node(i); }.bind(this)) : tmp;
|
5942 |
};
|
5943 |
/**
|
5944 |
* get an array of all bottom level checked nodes (ignoring selected parents) (if tie_selection is on in the settings this function will return the same as get_bottom_selected)
|
5956 |
obj.push(tmp[i].id);
|
5957 |
}
|
5958 |
}
|
5959 |
+
return full ? $.map(obj, function (i) { return this.get_node(i); }.bind(this)) : obj;
|
5960 |
};
|
5961 |
this.load_node = function (obj, callback) {
|
5962 |
var k, l, i, j, c, tmp;
|
5963 |
+
if(!$.vakata.is_array(obj) && !this.settings.checkbox.tie_selection) {
|
5964 |
tmp = this.get_node(obj);
|
5965 |
if(tmp && tmp.state.loaded) {
|
5966 |
for(k = 0, l = tmp.children_d.length; k < l; k++) {
|
6188 |
|
6189 |
var last_ts = 0, cto = null, ex, ey;
|
6190 |
this.element
|
6191 |
+
.on("init.jstree loading.jstree ready.jstree", function () {
|
6192 |
this.get_container_ul().addClass('jstree-contextmenu');
|
6193 |
+
}.bind(this))
|
6194 |
+
.on("contextmenu.jstree", ".jstree-anchor", function (e, data) {
|
6195 |
if (e.target.tagName.toLowerCase() === 'input') {
|
6196 |
return;
|
6197 |
}
|
6206 |
if(!this.is_loading(e.currentTarget)) {
|
6207 |
this.show_contextmenu(e.currentTarget, e.pageX, e.pageY, e);
|
6208 |
}
|
6209 |
+
}.bind(this))
|
6210 |
+
.on("click.jstree", ".jstree-anchor", function (e) {
|
6211 |
if(this._data.contextmenu.visible && (!last_ts || (+new Date()) - last_ts > 250)) { // work around safari & macOS ctrl+click
|
6212 |
$.vakata.context.hide();
|
6213 |
}
|
6214 |
last_ts = 0;
|
6215 |
+
}.bind(this))
|
6216 |
.on("touchstart.jstree", ".jstree-anchor", function (e) {
|
6217 |
if(!e.originalEvent || !e.originalEvent.changedTouches || !e.originalEvent.changedTouches[0]) {
|
6218 |
return;
|
6256 |
});
|
6257 |
}
|
6258 |
*/
|
6259 |
+
$(document).on("context_hide.vakata.jstree", function (e, data) {
|
6260 |
this._data.contextmenu.visible = false;
|
6261 |
$(data.reference).removeClass('jstree-context');
|
6262 |
+
}.bind(this));
|
6263 |
};
|
6264 |
this.teardown = function () {
|
6265 |
if(this._data.contextmenu.visible) {
|
6266 |
$.vakata.context.hide();
|
6267 |
}
|
6268 |
+
$(document).off("context_hide.vakata.jstree");
|
6269 |
parent.teardown.call(this);
|
6270 |
};
|
6271 |
|
6297 |
}
|
6298 |
|
6299 |
i = s.items;
|
6300 |
+
if($.vakata.is_function(i)) {
|
6301 |
+
i = i.call(this, obj, function (i) {
|
6302 |
this._show_contextmenu(obj, x, y, i);
|
6303 |
+
}.bind(this));
|
6304 |
}
|
6305 |
if($.isPlainObject(i)) {
|
6306 |
this._show_contextmenu(obj, x, y, i);
|
6320 |
this._show_contextmenu = function (obj, x, y, i) {
|
6321 |
var d = this.get_node(obj, true),
|
6322 |
a = d.children(".jstree-anchor");
|
6323 |
+
$(document).one("context_show.vakata.jstree", function (e, data) {
|
6324 |
var cls = 'jstree-contextmenu jstree-' + this.get_theme() + '-contextmenu';
|
6325 |
$(data.element).addClass(cls);
|
6326 |
a.addClass('jstree-context');
|
6327 |
+
}.bind(this));
|
6328 |
this._data.contextmenu.visible = true;
|
6329 |
$.vakata.context.show(a, { 'x' : x, 'y' : y }, i);
|
6330 |
/**
|
6370 |
},
|
6371 |
_execute : function (i) {
|
6372 |
i = vakata_context.items[i];
|
6373 |
+
return i && (!i._disabled || ($.vakata.is_function(i._disabled) && !i._disabled({ "item" : i, "reference" : vakata_context.reference, "element" : vakata_context.element }))) && i.action ? i.action.call(null, {
|
6374 |
"item" : i,
|
6375 |
"reference" : vakata_context.reference,
|
6376 |
"element" : vakata_context.element,
|
6395 |
if(!val) { return true; }
|
6396 |
vakata_context.items.push(val);
|
6397 |
if(!sep && val.separator_before) {
|
6398 |
+
str += "<"+"li class='vakata-context-separator'><"+"a href='#' " + ($.vakata.context.settings.icons ? '' : 'class="vakata-context-no-icons"') + "> <"+"/a><"+"/li>";
|
6399 |
}
|
6400 |
sep = false;
|
6401 |
+
str += "<"+"li class='" + (val._class || "") + (val._disabled === true || ($.vakata.is_function(val._disabled) && val._disabled({ "item" : val, "reference" : vakata_context.reference, "element" : vakata_context.element })) ? " vakata-contextmenu-disabled " : "") + "' "+(val.shortcut?" data-shortcut='"+val.shortcut+"' ":'')+">";
|
6402 |
str += "<"+"a href='#' rel='" + (vakata_context.items.length - 1) + "' " + (val.title ? "title='" + val.title + "'" : "") + ">";
|
6403 |
if($.vakata.context.settings.icons) {
|
6404 |
str += "<"+"i ";
|
6408 |
}
|
6409 |
str += "><"+"/i><"+"span class='vakata-contextmenu-sep'> <"+"/span>";
|
6410 |
}
|
6411 |
+
str += ($.vakata.is_function(val.label) ? val.label({ "item" : i, "reference" : vakata_context.reference, "element" : vakata_context.element }) : val.label) + (val.shortcut?' <span class="vakata-contextmenu-shortcut vakata-contextmenu-shortcut-'+val.shortcut+'">'+ (val.shortcut_label || '') +'</span>':'') + "<"+"/a>";
|
6412 |
if(val.submenu) {
|
6413 |
tmp = $.vakata.context._parse(val.submenu, true);
|
6414 |
if(tmp) { str += tmp; }
|
6415 |
}
|
6416 |
str += "<"+"/li>";
|
6417 |
if(val.separator_after) {
|
6418 |
+
str += "<"+"li class='vakata-context-separator'><"+"a href='#' " + ($.vakata.context.settings.icons ? '' : 'class="vakata-context-no-icons"') + "> <"+"/a><"+"/li>";
|
6419 |
sep = true;
|
6420 |
}
|
6421 |
});
|
6523 |
vakata_context.element
|
6524 |
.css({ "left" : x, "top" : y })
|
6525 |
.show()
|
6526 |
+
.find('a').first().trigger('focus').parent().addClass("vakata-context-hover");
|
6527 |
vakata_context.is_visible = true;
|
6528 |
/**
|
6529 |
* triggered on the document when the contextmenu is shown
|
6539 |
},
|
6540 |
hide : function () {
|
6541 |
if(vakata_context.is_visible) {
|
6542 |
+
vakata_context.element.hide().find("ul").hide().end().find(':focus').trigger('blur').end().detach();
|
6543 |
vakata_context.is_visible = false;
|
6544 |
/**
|
6545 |
* triggered on the document when the contextmenu is hidden
|
6595 |
e.preventDefault();
|
6596 |
//})
|
6597 |
//.on("mouseup", "a", function (e) {
|
6598 |
+
if(!$(this).trigger('blur').parent().hasClass("vakata-context-disabled") && $.vakata.context._execute($(this).attr("rel")) !== false) {
|
6599 |
$.vakata.context.hide();
|
6600 |
}
|
6601 |
})
|
6610 |
break;
|
6611 |
case 37:
|
6612 |
if(vakata_context.is_visible) {
|
6613 |
+
vakata_context.element.find(".vakata-context-hover").last().closest("li").first().find("ul").hide().find(".vakata-context-hover").removeClass("vakata-context-hover").end().end().children('a').trigger('focus');
|
6614 |
e.stopImmediatePropagation();
|
6615 |
e.preventDefault();
|
6616 |
}
|
6619 |
if(vakata_context.is_visible) {
|
6620 |
o = vakata_context.element.find("ul:visible").addBack().last().children(".vakata-context-hover").removeClass("vakata-context-hover").prevAll("li:not(.vakata-context-separator)").first();
|
6621 |
if(!o.length) { o = vakata_context.element.find("ul:visible").addBack().last().children("li:not(.vakata-context-separator)").last(); }
|
6622 |
+
o.addClass("vakata-context-hover").children('a').trigger('focus');
|
6623 |
e.stopImmediatePropagation();
|
6624 |
e.preventDefault();
|
6625 |
}
|
6626 |
break;
|
6627 |
case 39:
|
6628 |
if(vakata_context.is_visible) {
|
6629 |
+
vakata_context.element.find(".vakata-context-hover").last().children("ul").show().children("li:not(.vakata-context-separator)").removeClass("vakata-context-hover").first().addClass("vakata-context-hover").children('a').trigger('focus');
|
6630 |
e.stopImmediatePropagation();
|
6631 |
e.preventDefault();
|
6632 |
}
|
6635 |
if(vakata_context.is_visible) {
|
6636 |
o = vakata_context.element.find("ul:visible").addBack().last().children(".vakata-context-hover").removeClass("vakata-context-hover").nextAll("li:not(.vakata-context-separator)").first();
|
6637 |
if(!o.length) { o = vakata_context.element.find("ul:visible").addBack().last().children("li:not(.vakata-context-separator)").first(); }
|
6638 |
+
o.addClass("vakata-context-hover").children('a').trigger('focus');
|
6639 |
e.stopImmediatePropagation();
|
6640 |
e.preventDefault();
|
6641 |
}
|
6653 |
e.preventDefault();
|
6654 |
var a = vakata_context.element.find('.vakata-contextmenu-shortcut-' + e.which).parent();
|
6655 |
if(a.parent().not('.vakata-context-disabled')) {
|
6656 |
+
a.trigger('click');
|
6657 |
}
|
6658 |
});
|
6659 |
|
6767 |
parent.bind.call(this);
|
6768 |
|
6769 |
this.element
|
6770 |
+
.on(this.settings.dnd.use_html5 ? 'dragstart.jstree' : 'mousedown.jstree touchstart.jstree', this.settings.dnd.large_drag_target ? '.jstree-node' : '.jstree-anchor', function (e) {
|
6771 |
if(this.settings.dnd.large_drag_target && $(e.target).closest('.jstree-node')[0] !== e.currentTarget) {
|
6772 |
return true;
|
6773 |
}
|
6781 |
txt = $.vakata.html.escape(txt);
|
6782 |
}
|
6783 |
if(obj && obj.id && obj.id !== $.jstree.root && (e.which === 1 || e.type === "touchstart" || e.type === "dragstart") &&
|
6784 |
+
(this.settings.dnd.is_draggable === true || ($.vakata.is_function(this.settings.dnd.is_draggable) && this.settings.dnd.is_draggable.call(this, (mlt > 1 ? this.get_top_selected(true) : [obj]), e)))
|
6785 |
) {
|
6786 |
drg = { 'jstree' : true, 'origin' : this, 'obj' : this.get_node(obj,true), 'nodes' : mlt > 1 ? this.get_top_selected() : [obj.id] };
|
6787 |
elm = e.currentTarget;
|
6789 |
$.vakata.dnd._trigger('start', e, { 'helper': $(), 'element': elm, 'data': drg });
|
6790 |
} else {
|
6791 |
this.element.trigger('mousedown.jstree');
|
6792 |
+
return $.vakata.dnd.start(e, drg, '<div id="jstree-dnd" class="jstree-' + this.get_theme() + ' jstree-' + this.get_theme() + '-' + this.get_theme_variant() + ' ' + ( this.settings.core.themes.responsive ? ' jstree-dnd-responsive' : '' ) + '"><i class="jstree-icon jstree-er"></i>' + txt + '<ins class="jstree-copy">+</ins></div>');
|
6793 |
}
|
6794 |
}
|
6795 |
+
}.bind(this));
|
6796 |
if (this.settings.dnd.use_html5) {
|
6797 |
this.element
|
6798 |
.on('dragover.jstree', function (e) {
|
6805 |
// $.vakata.dnd._trigger('move', e, { 'helper': $(), 'element': elm, 'data': drg });
|
6806 |
// return false;
|
6807 |
// }, this))
|
6808 |
+
.on('drop.jstree', function (e) {
|
6809 |
e.preventDefault();
|
6810 |
$.vakata.dnd._trigger('stop', e, { 'helper': $(), 'element': elm, 'data': drg });
|
6811 |
return false;
|
6812 |
+
}.bind(this));
|
6813 |
}
|
6814 |
};
|
6815 |
this.redraw_node = function(obj, deep, callback, force_render) {
|
7321 |
}
|
7322 |
else {
|
7323 |
if(e.type === "touchend" && e.target === vakata_dnd.target) {
|
7324 |
+
var to = setTimeout(function () { $(e.target).trigger('click'); }, 100);
|
7325 |
$(e.target).one('click', function() { if(to) { clearTimeout(to); } });
|
7326 |
}
|
7327 |
}
|
7382 |
}
|
7383 |
this._data.massload = {};
|
7384 |
if (toLoad.length) {
|
7385 |
+
if($.vakata.is_function(s)) {
|
7386 |
+
return s.call(this, toLoad, function (data) {
|
7387 |
var i, j;
|
7388 |
if(data) {
|
7389 |
for(i in data) {
|
7399 |
}
|
7400 |
}
|
7401 |
parent._load_nodes.call(this, nodes, callback, is_callback, force_reload);
|
7402 |
+
}.bind(this));
|
7403 |
}
|
7404 |
if(typeof s === 'object' && s && s.url) {
|
7405 |
s = $.extend(true, {}, s);
|
7406 |
+
if($.vakata.is_function(s.url)) {
|
7407 |
s.url = s.url.call(this, toLoad);
|
7408 |
}
|
7409 |
+
if($.vakata.is_function(s.data)) {
|
7410 |
s.data = s.data.call(this, toLoad);
|
7411 |
}
|
7412 |
return $.ajax(s)
|
7413 |
+
.done(function (data,t,x) {
|
7414 |
var i, j;
|
7415 |
if(data) {
|
7416 |
for(i in data) {
|
7426 |
}
|
7427 |
}
|
7428 |
parent._load_nodes.call(this, nodes, callback, is_callback, force_reload);
|
7429 |
+
}.bind(this))
|
7430 |
+
.fail(function (f) {
|
7431 |
parent._load_nodes.call(this, nodes, callback, is_callback, force_reload);
|
7432 |
+
}.bind(this));
|
7433 |
}
|
7434 |
}
|
7435 |
}
|
7537 |
this._data.search.hdn = [];
|
7538 |
|
7539 |
this.element
|
7540 |
+
.on("search.jstree", function (e, data) {
|
7541 |
if(this._data.search.som && data.res.length) {
|
7542 |
var m = this._model.data, i, j, p = [], k, l;
|
7543 |
for(i = 0, j = data.res.length; i < j; i++) {
|
7558 |
this.show_node(p, true);
|
7559 |
this.redraw(true);
|
7560 |
}
|
7561 |
+
}.bind(this))
|
7562 |
+
.on("clear_search.jstree", function (e, data) {
|
7563 |
if(this._data.search.som && data.res.length) {
|
7564 |
this.show_node(this._data.search.hdn, true);
|
7565 |
this.redraw(true);
|
7566 |
}
|
7567 |
+
}.bind(this));
|
7568 |
};
|
7569 |
/**
|
7570 |
* used to search the tree nodes for a given string
|
7578 |
* @trigger search.jstree
|
7579 |
*/
|
7580 |
this.search = function (str, skip_async, show_only_matches, inside, append, show_only_matches_children) {
|
7581 |
+
if(str === false || $.vakata.trim(str.toString()) === "") {
|
7582 |
return this.clear_search();
|
7583 |
}
|
7584 |
inside = this.get_node(inside);
|
7600 |
show_only_matches_children = s.show_only_matches_children;
|
7601 |
}
|
7602 |
if(!skip_async && a !== false) {
|
7603 |
+
if($.vakata.is_function(a)) {
|
7604 |
+
return a.call(this, str, function (d) {
|
7605 |
if(d && d.d) { d = d.d; }
|
7606 |
+
this._load_nodes(!$.vakata.is_array(d) ? [] : $.vakata.array_unique(d), function () {
|
7607 |
this.search(str, true, show_only_matches, inside, append, show_only_matches_children);
|
7608 |
});
|
7609 |
+
}.bind(this), inside);
|
7610 |
}
|
7611 |
else {
|
7612 |
a = $.extend({}, a);
|
7619 |
this._data.search.lastRequest.abort();
|
7620 |
}
|
7621 |
this._data.search.lastRequest = $.ajax(a)
|
7622 |
+
.fail(function () {
|
7623 |
this._data.core.last_error = { 'error' : 'ajax', 'plugin' : 'search', 'id' : 'search_01', 'reason' : 'Could not load search parents', 'data' : JSON.stringify(a) };
|
7624 |
this.settings.core.error.call(this, this._data.core.last_error);
|
7625 |
+
}.bind(this))
|
7626 |
+
.done(function (d) {
|
7627 |
if(d && d.d) { d = d.d; }
|
7628 |
+
this._load_nodes(!$.vakata.is_array(d) ? [] : $.vakata.array_unique(d), function () {
|
7629 |
this.search(str, true, show_only_matches, inside, append, show_only_matches_children);
|
7630 |
});
|
7631 |
+
}.bind(this));
|
7632 |
return this._data.search.lastRequest;
|
7633 |
}
|
7634 |
}
|
7882 |
this.bind = function () {
|
7883 |
parent.bind.call(this);
|
7884 |
this.element
|
7885 |
+
.on("model.jstree", function (e, data) {
|
7886 |
this.sort(data.parent, true);
|
7887 |
+
}.bind(this))
|
7888 |
+
.on("rename_node.jstree create_node.jstree", function (e, data) {
|
7889 |
this.sort(data.parent || data.node.parent, false);
|
7890 |
this.redraw_node(data.parent || data.node.parent, true);
|
7891 |
+
}.bind(this))
|
7892 |
+
.on("move_node.jstree copy_node.jstree", function (e, data) {
|
7893 |
this.sort(data.parent, false);
|
7894 |
this.redraw_node(data.parent, true);
|
7895 |
+
}.bind(this));
|
7896 |
};
|
7897 |
/**
|
7898 |
* used to sort a node's children
|
7907 |
var i, j;
|
7908 |
obj = this.get_node(obj);
|
7909 |
if(obj && obj.children && obj.children.length) {
|
7910 |
+
obj.children.sort(this.settings.sort.bind(this));
|
7911 |
if(deep) {
|
7912 |
for(i = 0, j = obj.children_d.length; i < j; i++) {
|
7913 |
this.sort(obj.children_d[i], false);
|
7967 |
$.jstree.plugins.state = function (options, parent) {
|
7968 |
this.bind = function () {
|
7969 |
parent.bind.call(this);
|
7970 |
+
var bind = function () {
|
7971 |
+
this.element.on(this.settings.state.events, function () {
|
7972 |
if(to) { clearTimeout(to); }
|
7973 |
+
to = setTimeout(function () { this.save_state(); }.bind(this), 100);
|
7974 |
+
}.bind(this));
|
7975 |
/**
|
7976 |
* triggered when the state plugin is finished restoring the state (and immediately after ready if there is no state to restore).
|
7977 |
* @event
|
7979 |
* @plugin state
|
7980 |
*/
|
7981 |
this.trigger('state_ready');
|
7982 |
+
}.bind(this);
|
7983 |
this.element
|
7984 |
+
.on("ready.jstree", function (e, data) {
|
7985 |
this.element.one("restore_state.jstree", bind);
|
7986 |
if(!this.restore_state()) { bind(); }
|
7987 |
+
}.bind(this));
|
7988 |
};
|
7989 |
/**
|
7990 |
* save the state
|
8009 |
if(!!k) { try { k = JSON.parse(k); } catch(ex) { return false; } }
|
8010 |
if(!!k && k.ttl && k.sec && +(new Date()) - k.sec > k.ttl) { return false; }
|
8011 |
if(!!k && k.state) { k = k.state; }
|
8012 |
+
if(!!k && $.vakata.is_function(this.settings.state.filter)) { k = this.settings.state.filter.call(this, k); }
|
8013 |
if(!!k) {
|
8014 |
if (!this.settings.state.preserve_loaded) {
|
8015 |
delete k.core.loaded;
|
8094 |
};
|
8095 |
this.bind = function () {
|
8096 |
this.element
|
8097 |
+
.on('model.jstree', function (e, data) {
|
8098 |
var m = this._model.data,
|
8099 |
dpc = data.nodes,
|
8100 |
t = this.settings.types,
|
8146 |
}
|
8147 |
}
|
8148 |
m[$.jstree.root].type = $.jstree.root;
|
8149 |
+
}.bind(this));
|
8150 |
parent.bind.call(this);
|
8151 |
};
|
8152 |
this.get_json = function (obj, options, flat) {
|
8155 |
opt = options ? $.extend(true, {}, options, {no_id:false}) : {},
|
8156 |
tmp = parent.get_json.call(this, obj, opt, flat);
|
8157 |
if(tmp === false) { return false; }
|
8158 |
+
if($.vakata.is_array(tmp)) {
|
8159 |
for(i = 0, j = tmp.length; i < j; i++) {
|
8160 |
tmp[i].type = tmp[i].id && m[tmp[i].id] && m[tmp[i].id].type ? m[tmp[i].id].type : "default";
|
8161 |
if(options && options.no_id) {
|
8178 |
return tmp;
|
8179 |
};
|
8180 |
this._delete_ids = function (tmp) {
|
8181 |
+
if($.vakata.is_array(tmp)) {
|
8182 |
for(var i = 0, j = tmp.length; i < j; i++) {
|
8183 |
tmp[i] = this._delete_ids(tmp[i]);
|
8184 |
}
|
8191 |
if(tmp.a_attr && tmp.a_attr.id) {
|
8192 |
delete tmp.a_attr.id;
|
8193 |
}
|
8194 |
+
if(tmp.children && $.vakata.is_array(tmp.children)) {
|
8195 |
tmp.children = this._delete_ids(tmp.children);
|
8196 |
}
|
8197 |
return tmp;
|
8275 |
*/
|
8276 |
this.set_type = function (obj, type) {
|
8277 |
var m = this._model.data, t, t1, t2, old_type, old_icon, k, d, a;
|
8278 |
+
if($.vakata.is_array(obj)) {
|
8279 |
obj = obj.slice();
|
8280 |
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
8281 |
this.set_type(obj[t1], type);
|
8564 |
parent.bind.call(this);
|
8565 |
|
8566 |
this.element
|
8567 |
+
.on('ready.jstree set_state.jstree', function () {
|
8568 |
this.hide_dots();
|
8569 |
+
}.bind(this))
|
8570 |
+
.on("init.jstree loading.jstree ready.jstree", function () {
|
8571 |
//div.style.height = this._data.core.li_height + 'px';
|
8572 |
this.get_container_ul().addClass('jstree-wholerow-ul');
|
8573 |
+
}.bind(this))
|
8574 |
+
.on("deselect_all.jstree", function (e, data) {
|
8575 |
this.element.find('.jstree-wholerow-clicked').removeClass('jstree-wholerow-clicked');
|
8576 |
+
}.bind(this))
|
8577 |
+
.on("changed.jstree", function (e, data) {
|
8578 |
this.element.find('.jstree-wholerow-clicked').removeClass('jstree-wholerow-clicked');
|
8579 |
var tmp = false, i, j;
|
8580 |
for(i = 0, j = data.selected.length; i < j; i++) {
|
8583 |
tmp.children('.jstree-wholerow').addClass('jstree-wholerow-clicked');
|
8584 |
}
|
8585 |
}
|
8586 |
+
}.bind(this))
|
8587 |
+
.on("open_node.jstree", function (e, data) {
|
8588 |
this.get_node(data.node, true).find('.jstree-clicked').parent().children('.jstree-wholerow').addClass('jstree-wholerow-clicked');
|
8589 |
+
}.bind(this))
|
8590 |
+
.on("hover_node.jstree dehover_node.jstree", function (e, data) {
|
8591 |
if(e.type === "hover_node" && this.is_disabled(data.node)) { return; }
|
8592 |
this.get_node(data.node, true).children('.jstree-wholerow')[e.type === "hover_node"?"addClass":"removeClass"]('jstree-wholerow-hovered');
|
8593 |
+
}.bind(this))
|
8594 |
+
.on("contextmenu.jstree", ".jstree-wholerow", function (e) {
|
8595 |
if (this._data.contextmenu) {
|
8596 |
e.preventDefault();
|
8597 |
var tmp = $.Event('contextmenu', { metaKey : e.metaKey, ctrlKey : e.ctrlKey, altKey : e.altKey, shiftKey : e.shiftKey, pageX : e.pageX, pageY : e.pageY });
|
8598 |
$(e.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(tmp);
|
8599 |
}
|
8600 |
+
}.bind(this))
|
8601 |
/*!
|
8602 |
.on("mousedown.jstree touchstart.jstree", ".jstree-wholerow", function (e) {
|
8603 |
if(e.target === e.currentTarget) {
|
8610 |
.on("click.jstree", ".jstree-wholerow", function (e) {
|
8611 |
e.stopImmediatePropagation();
|
8612 |
var tmp = $.Event('click', { metaKey : e.metaKey, ctrlKey : e.ctrlKey, altKey : e.altKey, shiftKey : e.shiftKey });
|
8613 |
+
$(e.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(tmp).trigger('focus');
|
8614 |
})
|
8615 |
.on("dblclick.jstree", ".jstree-wholerow", function (e) {
|
8616 |
e.stopImmediatePropagation();
|
8617 |
var tmp = $.Event('dblclick', { metaKey : e.metaKey, ctrlKey : e.ctrlKey, altKey : e.altKey, shiftKey : e.shiftKey });
|
8618 |
+
$(e.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(tmp).trigger('focus');
|
8619 |
})
|
8620 |
+
.on("click.jstree", ".jstree-leaf > .jstree-ocl", function (e) {
|
8621 |
e.stopImmediatePropagation();
|
8622 |
var tmp = $.Event('click', { metaKey : e.metaKey, ctrlKey : e.ctrlKey, altKey : e.altKey, shiftKey : e.shiftKey });
|
8623 |
+
$(e.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(tmp).trigger('focus');
|
8624 |
+
}.bind(this))
|
8625 |
+
.on("mouseover.jstree", ".jstree-wholerow, .jstree-icon", function (e) {
|
8626 |
e.stopImmediatePropagation();
|
8627 |
if(!this.is_disabled(e.currentTarget)) {
|
8628 |
this.hover_node(e.currentTarget);
|
8629 |
}
|
8630 |
return false;
|
8631 |
+
}.bind(this))
|
8632 |
+
.on("mouseleave.jstree", ".jstree-node", function (e) {
|
8633 |
this.dehover_node(e.currentTarget);
|
8634 |
+
}.bind(this));
|
8635 |
};
|
8636 |
this.teardown = function () {
|
8637 |
if(this.settings.wholerow) {
|
assets/jstree/jstree.min.js
CHANGED
@@ -1 +1,6 @@
|
|
1 |
-
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(E,P){"use strict";if(!E.jstree){var s=0,a=!1,n=!1,o=!1,r=[],e=E("script:last").attr("src"),y=window.document,c=window.setImmediate,i=window.Promise;!c&&i&&(c=function(e,t){i.resolve(t).then(e)}),E.jstree={version:"3.3.10",defaults:{plugins:[]},plugins:{},path:e&&-1!==e.indexOf("/")?e.replace(/\/[^\/]+$/,""):"",idregex:/[\\:&!^|()\[\]<>@*'+~#";.,=\- \/${}%?`]/g,root:"#"},E.jstree.create=function(e,r){var i=new E.jstree.core(++s),t=r;return r=E.extend(!0,{},E.jstree.defaults,r),t&&t.plugins&&(r.plugins=t.plugins),E.each(r.plugins,function(e,t){"core"!==e&&(i=i.plugin(t,r[t]))}),E(e).data("jstree",i),i.init(e,r),i},E.jstree.destroy=function(){E(".jstree:jstree").jstree("destroy"),E(y).off(".jstree")},E.jstree.core=function(e){this._id=e,this._cnt=0,this._wrk=null,this._data={core:{themes:{name:!1,dots:!1,icons:!1,ellipsis:!1},selected:[],last_error:{},working:!1,worker_queue:[],focused:null}}},E.jstree.reference=function(t){var r=null,e=null;if(!t||!t.id||t.tagName&&t.nodeType||(t=t.id),!e||!e.length)try{e=E(t)}catch(e){}if(!e||!e.length)try{e=E("#"+t.replace(E.jstree.idregex,"\\$&"))}catch(e){}return e&&e.length&&(e=e.closest(".jstree")).length&&(e=e.data("jstree"))?r=e:E(".jstree").each(function(){var e=E(this).data("jstree");if(e&&e._model.data[t])return r=e,!1}),r},E.fn.jstree=function(r){var i="string"==typeof r,s=Array.prototype.slice.call(arguments,1),a=null;return!(!0===r&&!this.length)&&(this.each(function(){var e=E.jstree.reference(this),t=i&&e?e[r]:null;if(a=i&&t?t.apply(e,s):null,e||i||r!==P&&!E.isPlainObject(r)||E.jstree.create(this,r),(e&&!i||!0===r)&&(a=e||!1),null!==a&&a!==P)return!1}),null!==a&&a!==P?a:this)},E.expr.pseudos.jstree=E.expr.createPseudo(function(e){return function(e){return E(e).hasClass("jstree")&&E(e).data("jstree")!==P}}),E.jstree.defaults.core={data:!1,strings:!1,check_callback:!1,error:E.noop,animation:200,multiple:!0,themes:{name:!1,url:!1,dir:!1,dots:!0,icons:!0,ellipsis:!1,stripes:!1,variant:!1,responsive:!1},expand_selected_onload:!0,worker:!0,force_text:!1,dblclick_toggle:!0,loaded_state:!1,restore_focus:!0,keyboard:{"ctrl-space":function(e){e.type="click",E(e.currentTarget).trigger(e)},enter:function(e){e.type="click",E(e.currentTarget).trigger(e)},left:function(e){var t;e.preventDefault(),this.is_open(e.currentTarget)?this.close_node(e.currentTarget):(t=this.get_parent(e.currentTarget))&&t.id!==E.jstree.root&&this.get_node(t,!0).children(".jstree-anchor").focus()},up:function(e){e.preventDefault();var t=this.get_prev_dom(e.currentTarget);t&&t.length&&t.children(".jstree-anchor").focus()},right:function(e){var t;e.preventDefault(),this.is_closed(e.currentTarget)?this.open_node(e.currentTarget,function(e){this.get_node(e,!0).children(".jstree-anchor").focus()}):!this.is_open(e.currentTarget)||(t=this.get_node(e.currentTarget,!0).children(".jstree-children")[0])&&E(this._firstChild(t)).children(".jstree-anchor").focus()},down:function(e){e.preventDefault();var t=this.get_next_dom(e.currentTarget);t&&t.length&&t.children(".jstree-anchor").focus()},"*":function(e){this.open_all()},home:function(e){e.preventDefault();var t=this._firstChild(this.get_container_ul()[0]);t&&E(t).children(".jstree-anchor").filter(":visible").focus()},end:function(e){e.preventDefault(),this.element.find(".jstree-anchor").filter(":visible").last().focus()},f2:function(e){e.preventDefault(),this.edit(e.currentTarget)}}},E.jstree.core.prototype={plugin:function(e,t){var r=E.jstree.plugins[e];return r?(this._data[e]={},r.prototype=this,new r(t,this)):this},init:function(e,t){this._model={data:{},changed:[],force_full_redraw:!1,redraw_timeout:!1,default_state:{loaded:!0,opened:!1,selected:!1,disabled:!1}},this._model.data[E.jstree.root]={id:E.jstree.root,parent:null,parents:[],children:[],children_d:[],state:{loaded:!1}},this.element=E(e).addClass("jstree jstree-"+this._id),this.settings=t,this._data.core.ready=!1,this._data.core.loaded=!1,this._data.core.rtl="rtl"===this.element.css("direction"),this.element[this._data.core.rtl?"addClass":"removeClass"]("jstree-rtl"),this.element.attr("role","tree"),this.settings.core.multiple&&this.element.attr("aria-multiselectable",!0),this.element.attr("tabindex")||this.element.attr("tabindex","0"),this.bind(),this.trigger("init"),this._data.core.original_container_html=this.element.find(" > ul > li").clone(!0),this._data.core.original_container_html.find("li").addBack().contents().filter(function(){return 3===this.nodeType&&(!this.nodeValue||/^\s+$/.test(this.nodeValue))}).remove(),this.element.html("<ul class='jstree-container-ul jstree-children' role='group'><li id='j"+this._id+"_loading' class='jstree-initial-node jstree-loading jstree-leaf jstree-last' role='presentation'><i class='jstree-icon jstree-ocl'></i><a class='jstree-anchor' role='treeitem' href='#'><i class='jstree-icon jstree-themeicon-hidden'></i>"+this.get_string("Loading ...")+"</a></li></ul>"),this.element.attr("aria-activedescendant","j"+this._id+"_loading"),this._data.core.li_height=this.get_container_ul().children("li").first().outerHeight()||24,this._data.core.node=this._create_prototype_node(),this.trigger("loading"),this.load_node(E.jstree.root)},destroy:function(e){if(this.trigger("destroy"),this._wrk)try{window.URL.revokeObjectURL(this._wrk),this._wrk=null}catch(e){}e||this.element.empty(),this.teardown()},_create_prototype_node:function(){var e,t,r=y.createElement("LI");return r.setAttribute("role","presentation"),(e=y.createElement("I")).className="jstree-icon jstree-ocl",e.setAttribute("role","presentation"),r.appendChild(e),(e=y.createElement("A")).className="jstree-anchor",e.setAttribute("href","#"),e.setAttribute("tabindex","-1"),e.setAttribute("role","treeitem"),(t=y.createElement("I")).className="jstree-icon jstree-themeicon",t.setAttribute("role","presentation"),e.appendChild(t),r.appendChild(e),e=t=null,r},_kbevent_to_func:function(e){var t=[];if(e.ctrlKey&&t.push("ctrl"),e.altKey&&t.push("alt"),e.shiftKey&&t.push("shift"),t.push({8:"Backspace",9:"Tab",13:"Enter",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock",16:"Shift",17:"Ctrl",18:"Alt",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*",173:"-"}[e.which]||e.which),"shift-shift"===(t=t.sort().join("-").toLowerCase())||"ctrl-ctrl"===t||"alt-alt"===t)return null;var r,i,s=this.settings.core.keyboard;for(r in s)if(s.hasOwnProperty(r)&&("-"!==(i=r)&&"+"!==i&&(i=(i=i.replace("--","-MINUS").replace("+-","-MINUS").replace("++","-PLUS").replace("-+","-PLUS")).split(/-|\+/).sort().join("-").replace("MINUS","-").replace("PLUS","+").toLowerCase()),i===t))return s[r];return null},teardown:function(){this.unbind(),this.element.removeClass("jstree").removeData("jstree").find("[class^='jstree']").addBack().attr("class",function(){return this.className.replace(/jstree[^ ]*|$/gi,"")}),this.element=null},bind:function(){var a="",n=null,t=0;this.element.on("dblclick.jstree",function(e){if(e.target.tagName&&"input"===e.target.tagName.toLowerCase())return!0;if(y.selection&&y.selection.empty)y.selection.empty();else if(window.getSelection){var t=window.getSelection();try{t.removeAllRanges(),t.collapse()}catch(e){}}}).on("mousedown.jstree",E.proxy(function(e){e.target===this.element[0]&&(e.preventDefault(),t=+new Date)},this)).on("mousedown.jstree",".jstree-ocl",function(e){e.preventDefault()}).on("click.jstree",".jstree-ocl",E.proxy(function(e){this.toggle_node(e.target)},this)).on("dblclick.jstree",".jstree-anchor",E.proxy(function(e){return!(!e.target.tagName||"input"!==e.target.tagName.toLowerCase())||void(this.settings.core.dblclick_toggle&&this.toggle_node(e.target))},this)).on("click.jstree",".jstree-anchor",E.proxy(function(e){e.preventDefault(),e.currentTarget!==y.activeElement&&E(e.currentTarget).focus(),this.activate_node(e.currentTarget,e)},this)).on("keydown.jstree",".jstree-anchor",E.proxy(function(e){if(e.target.tagName&&"input"===e.target.tagName.toLowerCase())return!0;this._data.core.rtl&&(37===e.which?e.which=39:39===e.which&&(e.which=37));var t=this._kbevent_to_func(e);if(t){var r=t.call(this,e);if(!1===r||!0===r)return r}},this)).on("load_node.jstree",E.proxy(function(e,t){t.status&&(t.node.id!==E.jstree.root||this._data.core.loaded||(this._data.core.loaded=!0,this._firstChild(this.get_container_ul()[0])&&this.element.attr("aria-activedescendant",this._firstChild(this.get_container_ul()[0]).id),this.trigger("loaded")),this._data.core.ready||setTimeout(E.proxy(function(){if(this.element&&!this.get_container_ul().find(".jstree-loading").length){if(this._data.core.ready=!0,this._data.core.selected.length){if(this.settings.core.expand_selected_onload){for(var e=[],t=0,r=this._data.core.selected.length;t<r;t++)e=e.concat(this._model.data[this._data.core.selected[t]].parents);for(t=0,r=(e=E.vakata.array_unique(e)).length;t<r;t++)this.open_node(e[t],!1,0)}this.trigger("changed",{action:"ready",selected:this._data.core.selected})}this.trigger("ready")}},this),0))},this)).on("keypress.jstree",E.proxy(function(e){if(e.target.tagName&&"input"===e.target.tagName.toLowerCase())return!0;n&&clearTimeout(n),n=setTimeout(function(){a=""},500);var r=String.fromCharCode(e.which).toLowerCase(),t=this.element.find(".jstree-anchor").filter(":visible"),i=t.index(y.activeElement)||0,s=!1;if(1<(a+=r).length){if(t.slice(i).each(E.proxy(function(e,t){if(0===E(t).text().toLowerCase().indexOf(a))return E(t).focus(),!(s=!0)},this)),s)return;if(t.slice(0,i).each(E.proxy(function(e,t){if(0===E(t).text().toLowerCase().indexOf(a))return E(t).focus(),!(s=!0)},this)),s)return}if(new RegExp("^"+r.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+"+$").test(a)){if(t.slice(i+1).each(E.proxy(function(e,t){if(E(t).text().toLowerCase().charAt(0)===r)return E(t).focus(),!(s=!0)},this)),s)return;if(t.slice(0,i+1).each(E.proxy(function(e,t){if(E(t).text().toLowerCase().charAt(0)===r)return E(t).focus(),!(s=!0)},this)),s)return}},this)).on("init.jstree",E.proxy(function(){var e=this.settings.core.themes;this._data.core.themes.dots=e.dots,this._data.core.themes.stripes=e.stripes,this._data.core.themes.icons=e.icons,this._data.core.themes.ellipsis=e.ellipsis,this.set_theme(e.name||"default",e.url),this.set_theme_variant(e.variant)},this)).on("loading.jstree",E.proxy(function(){this[this._data.core.themes.dots?"show_dots":"hide_dots"](),this[this._data.core.themes.icons?"show_icons":"hide_icons"](),this[this._data.core.themes.stripes?"show_stripes":"hide_stripes"](),this[this._data.core.themes.ellipsis?"show_ellipsis":"hide_ellipsis"]()},this)).on("blur.jstree",".jstree-anchor",E.proxy(function(e){this._data.core.focused=null,E(e.currentTarget).filter(".jstree-hovered").trigger("mouseleave"),this.element.attr("tabindex","0")},this)).on("focus.jstree",".jstree-anchor",E.proxy(function(e){var t=this.get_node(e.currentTarget);t&&t.id&&(this._data.core.focused=t.id),this.element.find(".jstree-hovered").not(e.currentTarget).trigger("mouseleave"),E(e.currentTarget).trigger("mouseenter"),this.element.attr("tabindex","-1")},this)).on("focus.jstree",E.proxy(function(){var e;500<new Date-t&&!this._data.core.focused&&this.settings.core.restore_focus&&(t=0,(e=this.get_node(this.element.attr("aria-activedescendant"),!0))&&e.find("> .jstree-anchor").focus())},this)).on("mouseenter.jstree",".jstree-anchor",E.proxy(function(e){this.hover_node(e.currentTarget)},this)).on("mouseleave.jstree",".jstree-anchor",E.proxy(function(e){this.dehover_node(e.currentTarget)},this))},unbind:function(){this.element.off(".jstree"),E(y).off(".jstree-"+this._id)},trigger:function(e,t){((t=t||{}).instance=this).element.triggerHandler(e.replace(".jstree","")+".jstree",t)},get_container:function(){return this.element},get_container_ul:function(){return this.element.children(".jstree-children").first()},get_string:function(e){var t=this.settings.core.strings;return"function"==typeof t?t.call(this,e):t&&t[e]?t[e]:e},_firstChild:function(e){for(e=e?e.firstChild:null;null!==e&&1!==e.nodeType;)e=e.nextSibling;return e},_nextSibling:function(e){for(e=e?e.nextSibling:null;null!==e&&1!==e.nodeType;)e=e.nextSibling;return e},_previousSibling:function(e){for(e=e?e.previousSibling:null;null!==e&&1!==e.nodeType;)e=e.previousSibling;return e},get_node:function(e,t){var r;e&&e.id&&(e=e.id),e instanceof E&&e.length&&e[0].id&&(e=e[0].id);try{if(this._model.data[e])e=this._model.data[e];else if("string"==typeof e&&this._model.data[e.replace(/^#/,"")])e=this._model.data[e.replace(/^#/,"")];else if("string"==typeof e&&(r=E("#"+e.replace(E.jstree.idregex,"\\$&"),this.element)).length&&this._model.data[r.closest(".jstree-node").attr("id")])e=this._model.data[r.closest(".jstree-node").attr("id")];else if((r=this.element.find(e)).length&&this._model.data[r.closest(".jstree-node").attr("id")])e=this._model.data[r.closest(".jstree-node").attr("id")];else{if(!(r=this.element.find(e)).length||!r.hasClass("jstree"))return!1;e=this._model.data[E.jstree.root]}return t&&(e=e.id===E.jstree.root?this.element:E("#"+e.id.replace(E.jstree.idregex,"\\$&"),this.element)),e}catch(e){return!1}},get_path:function(e,t,r){if(!(e=e.parents?e:this.get_node(e))||e.id===E.jstree.root||!e.parents)return!1;var i,s,a=[];for(a.push(r?e.id:e.text),i=0,s=e.parents.length;i<s;i++)a.push(r?e.parents[i]:this.get_text(e.parents[i]));return a=a.reverse().slice(1),t?a.join(t):a},get_next_dom:function(e,t){var r;if((e=this.get_node(e,!0))[0]===this.element[0]){for(r=this._firstChild(this.get_container_ul()[0]);r&&0===r.offsetHeight;)r=this._nextSibling(r);return!!r&&E(r)}if(!e||!e.length)return!1;if(t){for(r=e[0];(r=this._nextSibling(r))&&0===r.offsetHeight;);return!!r&&E(r)}if(e.hasClass("jstree-open")){for(r=this._firstChild(e.children(".jstree-children")[0]);r&&0===r.offsetHeight;)r=this._nextSibling(r);if(null!==r)return E(r)}for(r=e[0];(r=this._nextSibling(r))&&0===r.offsetHeight;);return null!==r?E(r):e.parentsUntil(".jstree",".jstree-node").nextAll(".jstree-node:visible").first()},get_prev_dom:function(e,t){var r;if((e=this.get_node(e,!0))[0]===this.element[0]){for(r=this.get_container_ul()[0].lastChild;r&&0===r.offsetHeight;)r=this._previousSibling(r);return!!r&&E(r)}if(!e||!e.length)return!1;if(t){for(r=e[0];(r=this._previousSibling(r))&&0===r.offsetHeight;);return!!r&&E(r)}for(r=e[0];(r=this._previousSibling(r))&&0===r.offsetHeight;);if(null===r)return!(!(r=e[0].parentNode.parentNode)||!r.className||-1===r.className.indexOf("jstree-node"))&&E(r);for(e=E(r);e.hasClass("jstree-open");)e=e.children(".jstree-children").first().children(".jstree-node:visible:last");return e},get_parent:function(e){return!(!(e=this.get_node(e))||e.id===E.jstree.root)&&e.parent},get_children_dom:function(e){return(e=this.get_node(e,!0))[0]===this.element[0]?this.get_container_ul().children(".jstree-node"):!(!e||!e.length)&&e.children(".jstree-children").children(".jstree-node")},is_parent:function(e){return(e=this.get_node(e))&&(!1===e.state.loaded||0<e.children.length)},is_loaded:function(e){return(e=this.get_node(e))&&e.state.loaded},is_loading:function(e){return(e=this.get_node(e))&&e.state&&e.state.loading},is_open:function(e){return(e=this.get_node(e))&&e.state.opened},is_closed:function(e){return(e=this.get_node(e))&&this.is_parent(e)&&!e.state.opened},is_leaf:function(e){return!this.is_parent(e)},load_node:function(n,o){var e,t,r,i,s;if(Array.isArray(n))return this._load_nodes(n.slice(),o),!0;if(!(n=this.get_node(n)))return o&&o.call(this,n,!1),!1;if(n.state.loaded){for(n.state.loaded=!1,r=0,i=n.parents.length;r<i;r++)this._model.data[n.parents[r]].children_d=E.vakata.array_filter(this._model.data[n.parents[r]].children_d,function(e){return-1===E.inArray(e,n.children_d)});for(e=0,t=n.children_d.length;e<t;e++)this._model.data[n.children_d[e]].state.selected&&(s=!0),delete this._model.data[n.children_d[e]];s&&(this._data.core.selected=E.vakata.array_filter(this._data.core.selected,function(e){return-1===E.inArray(e,n.children_d)})),n.children=[],n.children_d=[],s&&this.trigger("changed",{action:"load_node",node:n,selected:this._data.core.selected})}return n.state.failed=!1,n.state.loading=!0,this.get_node(n,!0).addClass("jstree-loading").attr("aria-busy",!0),this._load_node(n,E.proxy(function(e){(n=this._model.data[n.id]).state.loading=!1,n.state.loaded=e,n.state.failed=!n.state.loaded;for(var t=this.get_node(n,!0),r=0,i=this._model.data,s=!1,r=0,a=n.children.length;r<a;r++)if(i[n.children[r]]&&!i[n.children[r]].state.hidden){s=!0;break}n.state.loaded&&t&&t.length&&(t.removeClass("jstree-closed jstree-open jstree-leaf"),s?"#"!==n.id&&t.addClass(n.state.opened?"jstree-open":"jstree-closed"):t.addClass("jstree-leaf")),t.removeClass("jstree-loading").attr("aria-busy",!1),this.trigger("load_node",{node:n,status:e}),o&&o.call(this,n,e)},this)),!0},_load_nodes:function(e,t,r,i){for(var s=!0,a=function(){this._load_nodes(e,t,!0)},n=this._model.data,o=[],d=0,c=e.length;d<c;d++)n[e[d]]&&(!n[e[d]].state.loaded&&!n[e[d]].state.failed||!r&&i)&&(this.is_loading(e[d])||this.load_node(e[d],a),s=!1);if(s){for(d=0,c=e.length;d<c;d++)n[e[d]]&&n[e[d]].state.loaded&&o.push(e[d]);t&&!t.done&&(t.call(this,o),t.done=!0)}},load_all:function(e,t){if(e=e||E.jstree.root,!(e=this.get_node(e)))return!1;var r,i,s=[],a=this._model.data,n=a[e.id].children_d;for(e.state&&!e.state.loaded&&s.push(e.id),r=0,i=n.length;r<i;r++)a[n[r]]&&a[n[r]].state&&!a[n[r]].state.loaded&&s.push(n[r]);s.length?this._load_nodes(s,function(){this.load_all(e,t)}):(t&&t.call(this,e),this.trigger("load_all",{node:e}))},_load_node:function(s,a){function n(){return 3!==this.nodeType&&8!==this.nodeType}var e,t=this.settings.core.data;return t?"function"==typeof t?t.call(this,s,E.proxy(function(e){!1===e?a.call(this,!1):this["string"==typeof e?"_append_html_data":"_append_json_data"](s,"string"==typeof e?E(E.parseHTML(e)).filter(n):e,function(e){a.call(this,e)})},this)):"object"==typeof t?t.url?("function"==typeof(t=E.extend(!0,{},t)).url&&(t.url=t.url.call(this,s)),"function"==typeof t.data&&(t.data=t.data.call(this,s)),E.ajax(t).done(E.proxy(function(e,t,r){var i=r.getResponseHeader("Content-Type");return i&&-1!==i.indexOf("json")||"object"==typeof e?this._append_json_data(s,e,function(e){a.call(this,e)}):i&&-1!==i.indexOf("html")||"string"==typeof e?this._append_html_data(s,E(E.parseHTML(e)).filter(n),function(e){a.call(this,e)}):(this._data.core.last_error={error:"ajax",plugin:"core",id:"core_04",reason:"Could not load node",data:JSON.stringify({id:s.id,xhr:r})},this.settings.core.error.call(this,this._data.core.last_error),a.call(this,!1))},this)).fail(E.proxy(function(e){this._data.core.last_error={error:"ajax",plugin:"core",id:"core_04",reason:"Could not load node",data:JSON.stringify({id:s.id,xhr:e})},a.call(this,!1),this.settings.core.error.call(this,this._data.core.last_error)},this))):(e=Array.isArray(t)?E.extend(!0,[],t):E.isPlainObject(t)?E.extend(!0,{},t):t,s.id===E.jstree.root?this._append_json_data(s,e,function(e){a.call(this,e)}):(this._data.core.last_error={error:"nodata",plugin:"core",id:"core_05",reason:"Could not load node",data:JSON.stringify({id:s.id})},this.settings.core.error.call(this,this._data.core.last_error),a.call(this,!1))):"string"==typeof t?s.id===E.jstree.root?this._append_html_data(s,E(E.parseHTML(t)).filter(n),function(e){a.call(this,e)}):(this._data.core.last_error={error:"nodata",plugin:"core",id:"core_06",reason:"Could not load node",data:JSON.stringify({id:s.id})},this.settings.core.error.call(this,this._data.core.last_error),a.call(this,!1)):a.call(this,!1):s.id===E.jstree.root?this._append_html_data(s,this._data.core.original_container_html.clone(!0),function(e){a.call(this,e)}):a.call(this,!1)},_node_changed:function(e){(e=this.get_node(e))&&-1===E.inArray(e.id,this._model.changed)&&this._model.changed.push(e.id)},_append_html_data:function(e,t,r){(e=this.get_node(e)).children=[],e.children_d=[];var i,s,a,n=t.is("ul")?t.children():t,o=e.id,d=[],c=[],l=this._model.data,h=l[o],_=this._data.core.selected.length;for(n.each(E.proxy(function(e,t){(i=this._parse_model_from_html(E(t),o,h.parents.concat()))&&(d.push(i),c.push(i),l[i].children_d.length&&(c=c.concat(l[i].children_d)))},this)),h.children=d,h.children_d=c,s=0,a=h.parents.length;s<a;s++)l[h.parents[s]].children_d=l[h.parents[s]].children_d.concat(c);this.trigger("model",{nodes:c,parent:o}),o!==E.jstree.root?(this._node_changed(o),this.redraw()):(this.get_container_ul().children(".jstree-initial-node").remove(),this.redraw(!0)),this._data.core.selected.length!==_&&this.trigger("changed",{action:"model",selected:this._data.core.selected}),r.call(this,!0)},_append_json_data:function(e,t,d,r){if(null!==this.element){(e=this.get_node(e)).children=[],e.children_d=[],t.d&&"string"==typeof(t=t.d)&&(t=JSON.parse(t)),Array.isArray(t)||(t=[t]);var i=null,s={df:this._model.default_state,dat:t,par:e.id,m:this._model.data,t_id:this._id,t_cnt:this._cnt,sel:this._data.core.selected},j=this,a=function(e,c){e.data&&(e=e.data);var t,r,i,s,a=e.dat,n=e.par,o=[],d=[],l=[],h=e.df,_=e.t_id,u=e.t_cnt,g=e.m,f=g[n],p=e.sel,m=function(e,t,r){r=r?r.concat():[],t&&r.unshift(t);var i,s,a,n,o=e.id.toString(),d={id:o,text:e.text||"",icon:e.icon===c||e.icon,parent:t,parents:r,children:e.children||[],children_d:e.children_d||[],data:e.data,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(i in h)h.hasOwnProperty(i)&&(d.state[i]=h[i]);if(e&&e.data&&e.data.jstree&&e.data.jstree.icon&&(d.icon=e.data.jstree.icon),d.icon!==c&&null!==d.icon&&""!==d.icon||(d.icon=!0),e&&e.data&&(d.data=e.data,e.data.jstree))for(i in e.data.jstree)e.data.jstree.hasOwnProperty(i)&&(d.state[i]=e.data.jstree[i]);if(e&&"object"==typeof e.state)for(i in e.state)e.state.hasOwnProperty(i)&&(d.state[i]=e.state[i]);if(e&&"object"==typeof e.li_attr)for(i in e.li_attr)e.li_attr.hasOwnProperty(i)&&(d.li_attr[i]=e.li_attr[i]);if(d.li_attr.id||(d.li_attr.id=o),e&&"object"==typeof e.a_attr)for(i in e.a_attr)e.a_attr.hasOwnProperty(i)&&(d.a_attr[i]=e.a_attr[i]);for(e&&e.children&&!0===e.children&&(d.state.loaded=!1,d.children=[],d.children_d=[]),i=0,s=(g[d.id]=d).children.length;i<s;i++)a=m(g[d.children[i]],d.id,r),n=g[a],d.children_d.push(a),n.children_d.length&&(d.children_d=d.children_d.concat(n.children_d));return delete e.data,delete e.children,g[d.id].original=e,d.state.selected&&l.push(d.id),d.id},v=function(e,t,r){r=r?r.concat():[],t&&r.unshift(t);for(var i,s,a,n,o,d=!1;d="j"+_+"_"+ ++u,g[d];);for(i in o={id:!1,text:"string"==typeof e?e:"",icon:"object"!=typeof e||e.icon===c||e.icon,parent:t,parents:r,children:[],children_d:[],data:null,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1},h)h.hasOwnProperty(i)&&(o.state[i]=h[i]);if(e&&e.id&&(o.id=e.id.toString()),e&&e.text&&(o.text=e.text),e&&e.data&&e.data.jstree&&e.data.jstree.icon&&(o.icon=e.data.jstree.icon),o.icon!==c&&null!==o.icon&&""!==o.icon||(o.icon=!0),e&&e.data&&(o.data=e.data,e.data.jstree))for(i in e.data.jstree)e.data.jstree.hasOwnProperty(i)&&(o.state[i]=e.data.jstree[i]);if(e&&"object"==typeof e.state)for(i in e.state)e.state.hasOwnProperty(i)&&(o.state[i]=e.state[i]);if(e&&"object"==typeof e.li_attr)for(i in e.li_attr)e.li_attr.hasOwnProperty(i)&&(o.li_attr[i]=e.li_attr[i]);if(o.li_attr.id&&!o.id&&(o.id=o.li_attr.id.toString()),o.id||(o.id=d),o.li_attr.id||(o.li_attr.id=o.id),e&&"object"==typeof e.a_attr)for(i in e.a_attr)e.a_attr.hasOwnProperty(i)&&(o.a_attr[i]=e.a_attr[i]);if(e&&e.children&&e.children.length){for(i=0,s=e.children.length;i<s;i++)a=v(e.children[i],o.id,r),n=g[a],o.children.push(a),n.children_d.length&&(o.children_d=o.children_d.concat(n.children_d));o.children_d=o.children_d.concat(o.children)}return e&&e.children&&!0===e.children&&(o.state.loaded=!1,o.children=[],o.children_d=[]),delete e.data,delete e.children,o.original=e,(g[o.id]=o).state.selected&&l.push(o.id),o.id};if(a.length&&a[0].id!==c&&a[0].parent!==c){for(r=0,i=a.length;r<i;r++)a[r].children||(a[r].children=[]),a[r].state||(a[r].state={}),g[a[r].id.toString()]=a[r];for(r=0,i=a.length;r<i;r++)g[a[r].parent.toString()]?(g[a[r].parent.toString()].children.push(a[r].id.toString()),f.children_d.push(a[r].id.toString())):void 0!==j&&(j._data.core.last_error={error:"parse",plugin:"core",id:"core_07",reason:"Node with invalid parent",data:JSON.stringify({id:a[r].id.toString(),parent:a[r].parent.toString()})},j.settings.core.error.call(j,j._data.core.last_error));for(r=0,i=f.children.length;r<i;r++)t=m(g[f.children[r]],n,f.parents.concat()),d.push(t),g[t].children_d.length&&(d=d.concat(g[t].children_d));for(r=0,i=f.parents.length;r<i;r++)g[f.parents[r]].children_d=g[f.parents[r]].children_d.concat(d);s={cnt:u,mod:g,sel:p,par:n,dpc:d,add:l}}else{for(r=0,i=a.length;r<i;r++)(t=v(a[r],n,f.parents.concat()))&&(o.push(t),d.push(t),g[t].children_d.length&&(d=d.concat(g[t].children_d)));for(f.children=o,f.children_d=d,r=0,i=f.parents.length;r<i;r++)g[f.parents[r]].children_d=g[f.parents[r]].children_d.concat(d);s={cnt:u,mod:g,sel:p,par:n,dpc:d,add:l}}if("undefined"!=typeof window&&void 0!==window.document)return s;postMessage(s)},n=function(e,t){if(null!==this.element){this._cnt=e.cnt;var r,i=this._model.data;for(r in i)i.hasOwnProperty(r)&&i[r].state&&i[r].state.loading&&e.mod[r]&&(e.mod[r].state.loading=!0);if(this._model.data=e.mod,t){var s,a=e.add,n=e.sel,o=this._data.core.selected.slice(),i=this._model.data;if(n.length!==o.length||E.vakata.array_unique(n.concat(o)).length!==n.length){for(r=0,s=n.length;r<s;r++)-1===E.inArray(n[r],a)&&-1===E.inArray(n[r],o)&&(i[n[r]].state.selected=!1);for(r=0,s=o.length;r<s;r++)-1===E.inArray(o[r],n)&&(i[o[r]].state.selected=!0)}}e.add.length&&(this._data.core.selected=this._data.core.selected.concat(e.add)),this.trigger("model",{nodes:e.dpc,parent:e.par}),e.par!==E.jstree.root?(this._node_changed(e.par),this.redraw()):this.redraw(!0),e.add.length&&this.trigger("changed",{action:"model",selected:this._data.core.selected}),!t&&c?c(function(){d.call(j,!0)}):d.call(j,!0)}};if(this.settings.core.worker&&window.Blob&&window.URL&&window.Worker)try{null===this._wrk&&(this._wrk=window.URL.createObjectURL(new window.Blob(["self.onmessage = "+a.toString()],{type:"text/javascript"}))),!this._data.core.working||r?(this._data.core.working=!0,(i=new window.Worker(this._wrk)).onmessage=E.proxy(function(e){n.call(this,e.data,!0);try{i.terminate(),i=null}catch(e){}this._data.core.worker_queue.length?this._append_json_data.apply(this,this._data.core.worker_queue.shift()):this._data.core.working=!1},this),s.par?i.postMessage(s):this._data.core.worker_queue.length?this._append_json_data.apply(this,this._data.core.worker_queue.shift()):this._data.core.working=!1):this._data.core.worker_queue.push([e,t,d,!0])}catch(e){n.call(this,a(s),!1),this._data.core.worker_queue.length?this._append_json_data.apply(this,this._data.core.worker_queue.shift()):this._data.core.working=!1}else n.call(this,a(s),!1)}},_parse_model_from_html:function(e,t,r){r=r?[].concat(r):[],t&&r.unshift(t);var i,s,a,n,o,d=this._model.data,c={id:!1,text:!1,icon:!0,parent:t,parents:r,children:[],children_d:[],data:null,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(a in this._model.default_state)this._model.default_state.hasOwnProperty(a)&&(c.state[a]=this._model.default_state[a]);if(n=E.vakata.attributes(e,!0),E.each(n,function(e,t){return!(t=t.trim()).length||(c.li_attr[e]=t,void("id"===e&&(c.id=t.toString())))}),(n=e.children("a").first()).length&&(n=E.vakata.attributes(n,!0),E.each(n,function(e,t){(t=t.trim()).length&&(c.a_attr[e]=t)})),(n=e.children("a").first().length?e.children("a").first().clone():e.clone()).children("ins, i, ul").remove(),n=n.html(),n=E("<div></div>").html(n),c.text=this.settings.core.force_text?n.text():n.html(),n=e.data(),c.data=n?E.extend(!0,{},n):null,c.state.opened=e.hasClass("jstree-open"),c.state.selected=e.children("a").hasClass("jstree-clicked"),c.state.disabled=e.children("a").hasClass("jstree-disabled"),c.data&&c.data.jstree)for(a in c.data.jstree)c.data.jstree.hasOwnProperty(a)&&(c.state[a]=c.data.jstree[a]);for((n=e.children("a").children(".jstree-themeicon")).length&&(c.icon=!n.hasClass("jstree-themeicon-hidden")&&n.attr("rel")),c.state.icon!==P&&(c.icon=c.state.icon),c.icon!==P&&null!==c.icon&&""!==c.icon||(c.icon=!0),n=e.children("ul").children("li");d[o="j"+this._id+"_"+ ++this._cnt];);return c.id=c.li_attr.id?c.li_attr.id.toString():o,n.length?(n.each(E.proxy(function(e,t){i=this._parse_model_from_html(E(t),c.id,r),s=this._model.data[i],c.children.push(i),s.children_d.length&&(c.children_d=c.children_d.concat(s.children_d))},this)),c.children_d=c.children_d.concat(c.children)):e.hasClass("jstree-closed")&&(c.state.loaded=!1),c.li_attr.class&&(c.li_attr.class=c.li_attr.class.replace("jstree-closed","").replace("jstree-open","")),c.a_attr.class&&(c.a_attr.class=c.a_attr.class.replace("jstree-clicked","").replace("jstree-disabled","")),(d[c.id]=c).state.selected&&this._data.core.selected.push(c.id),c.id},_parse_model_from_flat_json:function(e,t,r){r=r?r.concat():[],t&&r.unshift(t);var i,s,a,n,o=e.id.toString(),d=this._model.data,c=this._model.default_state,l={id:o,text:e.text||"",icon:e.icon===P||e.icon,parent:t,parents:r,children:e.children||[],children_d:e.children_d||[],data:e.data,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(i in c)c.hasOwnProperty(i)&&(l.state[i]=c[i]);if(e&&e.data&&e.data.jstree&&e.data.jstree.icon&&(l.icon=e.data.jstree.icon),l.icon!==P&&null!==l.icon&&""!==l.icon||(l.icon=!0),e&&e.data&&(l.data=e.data,e.data.jstree))for(i in e.data.jstree)e.data.jstree.hasOwnProperty(i)&&(l.state[i]=e.data.jstree[i]);if(e&&"object"==typeof e.state)for(i in e.state)e.state.hasOwnProperty(i)&&(l.state[i]=e.state[i]);if(e&&"object"==typeof e.li_attr)for(i in e.li_attr)e.li_attr.hasOwnProperty(i)&&(l.li_attr[i]=e.li_attr[i]);if(l.li_attr.id||(l.li_attr.id=o),e&&"object"==typeof e.a_attr)for(i in e.a_attr)e.a_attr.hasOwnProperty(i)&&(l.a_attr[i]=e.a_attr[i]);for(e&&e.children&&!0===e.children&&(l.state.loaded=!1,l.children=[],l.children_d=[]),i=0,s=(d[l.id]=l).children.length;i<s;i++)n=d[a=this._parse_model_from_flat_json(d[l.children[i]],l.id,r)],l.children_d.push(a),n.children_d.length&&(l.children_d=l.children_d.concat(n.children_d));return delete e.data,delete e.children,d[l.id].original=e,l.state.selected&&this._data.core.selected.push(l.id),l.id},_parse_model_from_json:function(e,t,r){r=r?r.concat():[],t&&r.unshift(t);for(var i,s,a,n,o,d=!1,c=this._model.data,l=this._model.default_state;c[d="j"+this._id+"_"+ ++this._cnt];);for(i in o={id:!1,text:"string"==typeof e?e:"",icon:"object"!=typeof e||e.icon===P||e.icon,parent:t,parents:r,children:[],children_d:[],data:null,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1},l)l.hasOwnProperty(i)&&(o.state[i]=l[i]);if(e&&e.id&&(o.id=e.id.toString()),e&&e.text&&(o.text=e.text),e&&e.data&&e.data.jstree&&e.data.jstree.icon&&(o.icon=e.data.jstree.icon),o.icon!==P&&null!==o.icon&&""!==o.icon||(o.icon=!0),e&&e.data&&(o.data=e.data,e.data.jstree))for(i in e.data.jstree)e.data.jstree.hasOwnProperty(i)&&(o.state[i]=e.data.jstree[i]);if(e&&"object"==typeof e.state)for(i in e.state)e.state.hasOwnProperty(i)&&(o.state[i]=e.state[i]);if(e&&"object"==typeof e.li_attr)for(i in e.li_attr)e.li_attr.hasOwnProperty(i)&&(o.li_attr[i]=e.li_attr[i]);if(o.li_attr.id&&!o.id&&(o.id=o.li_attr.id.toString()),o.id||(o.id=d),o.li_attr.id||(o.li_attr.id=o.id),e&&"object"==typeof e.a_attr)for(i in e.a_attr)e.a_attr.hasOwnProperty(i)&&(o.a_attr[i]=e.a_attr[i]);if(e&&e.children&&e.children.length){for(i=0,s=e.children.length;i<s;i++)n=c[a=this._parse_model_from_json(e.children[i],o.id,r)],o.children.push(a),n.children_d.length&&(o.children_d=o.children_d.concat(n.children_d));o.children_d=o.children.concat(o.children_d)}return e&&e.children&&!0===e.children&&(o.state.loaded=!1,o.children=[],o.children_d=[]),delete e.data,delete e.children,o.original=e,(c[o.id]=o).state.selected&&this._data.core.selected.push(o.id),o.id},_redraw:function(){for(var e,t=this._model.force_full_redraw?this._model.data[E.jstree.root].children.concat([]):this._model.changed.concat([]),r=y.createElement("UL"),i=this._data.core.focused,s=0,a=t.length;s<a;s++)(e=this.redraw_node(t[s],!0,this._model.force_full_redraw))&&this._model.force_full_redraw&&r.appendChild(e);this._model.force_full_redraw&&(r.className=this.get_container_ul()[0].className,r.setAttribute("role","group"),this.element.empty().append(r)),null!==i&&this.settings.core.restore_focus&&((e=this.get_node(i,!0))&&e.length&&e.children(".jstree-anchor")[0]!==y.activeElement?e.children(".jstree-anchor").focus():this._data.core.focused=null),this._model.force_full_redraw=!1,this._model.changed=[],this.trigger("redraw",{nodes:t})},redraw:function(e){e&&(this._model.force_full_redraw=!0),this._redraw()},draw_children:function(e){var t=this.get_node(e),r=!1,i=!1,s=!1,a=y;if(!t)return!1;if(t.id===E.jstree.root)return this.redraw(!0);if(!(e=this.get_node(e,!0))||!e.length)return!1;if(e.children(".jstree-children").remove(),e=e[0],t.children.length&&t.state.loaded){for((s=a.createElement("UL")).setAttribute("role","group"),s.className="jstree-children",r=0,i=t.children.length;r<i;r++)s.appendChild(this.redraw_node(t.children[r],!0,!0));e.appendChild(s)}},redraw_node:function(e,t,r,i){var s=this.get_node(e),a=!1,n=!1,o=!1,d=!1,c=!1,l=!1,h="",_=y,u=this._model.data,g=!1,f=null,p=0,m=0,v=!1,j=!1;if(!s)return!1;if(s.id===E.jstree.root)return this.redraw(!0);if(t=t||0===s.children.length,e=y.querySelector?this.element[0].querySelector("#"+(-1!=="0123456789".indexOf(s.id[0])?"\\3"+s.id[0]+" "+s.id.substr(1).replace(E.jstree.idregex,"\\$&"):s.id.replace(E.jstree.idregex,"\\$&"))):y.getElementById(s.id))e=E(e),r||((a=e.parent().parent()[0])===this.element[0]&&(a=null),n=e.index()),t||!s.children.length||e.children(".jstree-children").length||(t=!0),t||(o=e.children(".jstree-children")[0]),g=e.children(".jstree-anchor")[0]===y.activeElement,e.remove();else if(t=!0,!r){if(!(null===(a=s.parent!==E.jstree.root?E("#"+s.parent.replace(E.jstree.idregex,"\\$&"),this.element)[0]:null)||a&&u[s.parent].state.opened))return!1;n=E.inArray(s.id,null===a?u[E.jstree.root].children:u[s.parent].children)}for(d in e=this._data.core.node.cloneNode(!0),h="jstree-node ",s.li_attr)if(s.li_attr.hasOwnProperty(d)){if("id"===d)continue;"class"!==d?e.setAttribute(d,s.li_attr[d]):h+=s.li_attr[d]}for(s.a_attr.id||(s.a_attr.id=s.id+"_anchor"),e.setAttribute("aria-selected",!!s.state.selected),e.childNodes[1].setAttribute("aria-selected",!!s.state.selected),e.setAttribute("aria-level",s.parents.length),e.childNodes[1].setAttribute("aria-level",s.parents.length),e.setAttribute("aria-labelledby",s.a_attr.id),s.state.disabled&&(e.setAttribute("aria-disabled",!0),e.childNodes[1].setAttribute("aria-disabled",!0)),d=0,c=s.children.length;d<c;d++)if(!u[s.children[d]].state.hidden){v=!0;break}if(null!==s.parent&&u[s.parent]&&!s.state.hidden&&(d=E.inArray(s.id,u[s.parent].children),j=s.id,-1!==d))for(d++,c=u[s.parent].children.length;d<c&&(u[u[s.parent].children[d]].state.hidden||(j=u[s.parent].children[d]),j===s.id);d++);for(c in s.state.hidden&&(h+=" jstree-hidden"),s.state.loading&&(h+=" jstree-loading"),s.state.loaded&&!v?h+=" jstree-leaf":(h+=s.state.opened&&s.state.loaded?" jstree-open":" jstree-closed",e.setAttribute("aria-expanded",s.state.opened&&s.state.loaded),e.childNodes[1].setAttribute("aria-expanded",s.state.opened&&s.state.loaded)),j===s.id&&(h+=" jstree-last"),e.id=s.id,e.className=h,h=(s.state.selected?" jstree-clicked":"")+(s.state.disabled?" jstree-disabled":""),s.a_attr)if(s.a_attr.hasOwnProperty(c)){if("href"===c&&"#"===s.a_attr[c])continue;"class"!==c?e.childNodes[1].setAttribute(c,s.a_attr[c]):h+=" "+s.a_attr[c]}if(h.length&&(e.childNodes[1].className="jstree-anchor "+h),(s.icon&&!0!==s.icon||!1===s.icon)&&(!1===s.icon?e.childNodes[1].childNodes[0].className+=" jstree-themeicon-hidden":-1===s.icon.indexOf("/")&&-1===s.icon.indexOf(".")?e.childNodes[1].childNodes[0].className+=" "+s.icon+" jstree-themeicon-custom":(e.childNodes[1].childNodes[0].style.backgroundImage='url("'+s.icon+'")',e.childNodes[1].childNodes[0].style.backgroundPosition="center center",e.childNodes[1].childNodes[0].style.backgroundSize="auto",e.childNodes[1].childNodes[0].className+=" jstree-themeicon-custom")),this.settings.core.force_text?e.childNodes[1].appendChild(_.createTextNode(s.text)):e.childNodes[1].innerHTML+=s.text,t&&s.children.length&&(s.state.opened||i)&&s.state.loaded){for((l=_.createElement("UL")).setAttribute("role","group"),l.className="jstree-children",d=0,c=s.children.length;d<c;d++)l.appendChild(this.redraw_node(s.children[d],t,!0));e.appendChild(l)}if(o&&e.appendChild(o),!r){for(d=0,c=(a=a||this.element[0]).childNodes.length;d<c;d++)if(a.childNodes[d]&&a.childNodes[d].className&&-1!==a.childNodes[d].className.indexOf("jstree-children")){f=a.childNodes[d];break}f||((f=_.createElement("UL")).setAttribute("role","group"),f.className="jstree-children",a.appendChild(f)),n<(a=f).childNodes.length?a.insertBefore(e,a.childNodes[n]):a.appendChild(e),g&&(p=this.element[0].scrollTop,m=this.element[0].scrollLeft,e.childNodes[1].focus(),this.element[0].scrollTop=p,this.element[0].scrollLeft=m)}return s.state.opened&&!s.state.loaded&&(s.state.opened=!1,setTimeout(E.proxy(function(){this.open_node(s.id,!1,0)},this),0)),e},open_node:function(e,r,i){var t,s,a,n;if(Array.isArray(e)){for(t=0,s=(e=e.slice()).length;t<s;t++)this.open_node(e[t],r,i);return!0}return!(!(e=this.get_node(e))||e.id===E.jstree.root)&&(i=i===P?this.settings.core.animation:i,this.is_closed(e)?this.is_loaded(e)?(a=this.get_node(e,!0),n=this,a.length&&(i&&a.children(".jstree-children").length&&a.children(".jstree-children").stop(!0,!0),e.children.length&&!this._firstChild(a.children(".jstree-children")[0])&&this.draw_children(e),i?(this.trigger("before_open",{node:e}),a.children(".jstree-children").css("display","none").end().removeClass("jstree-closed").addClass("jstree-open").attr("aria-expanded",!0).children(".jstree-anchor").attr("aria-expanded",!0).end().children(".jstree-children").stop(!0,!0).slideDown(i,function(){this.style.display="",n.element&&n.trigger("after_open",{node:e})})):(this.trigger("before_open",{node:e}),a[0].className=a[0].className.replace("jstree-closed","jstree-open"),a[0].setAttribute("aria-expanded",!0),a[0].childNodes[1].setAttribute("aria-expanded",!0))),e.state.opened=!0,r&&r.call(this,e,!0),a.length||this.trigger("before_open",{node:e}),this.trigger("open_node",{node:e}),i&&a.length||this.trigger("after_open",{node:e}),!0):this.is_loading(e)?setTimeout(E.proxy(function(){this.open_node(e,r,i)},this),500):void this.load_node(e,function(e,t){return t?this.open_node(e,r,i):!!r&&r.call(this,e,!1)}):(r&&r.call(this,e,!1),!1))},_open_to:function(e){if(!(e=this.get_node(e))||e.id===E.jstree.root)return!1;for(var t=e.parents,r=0,i=t.length;r<i;r+=1)r!==E.jstree.root&&this.open_node(t[r],!1,0);return E("#"+e.id.replace(E.jstree.idregex,"\\$&"),this.element)},close_node:function(e,t){var r,i,s,a;if(Array.isArray(e)){for(r=0,i=(e=e.slice()).length;r<i;r++)this.close_node(e[r],t);return!0}return!(!(e=this.get_node(e))||e.id===E.jstree.root)&&(!this.is_closed(e)&&(t=t===P?this.settings.core.animation:t,a=(s=this).get_node(e,!0),e.state.opened=!1,this.trigger("close_node",{node:e}),void(a.length?t?a.children(".jstree-children").attr("style","display:block !important").end().removeClass("jstree-open").addClass("jstree-closed").attr("aria-expanded",!1).children(".jstree-anchor").attr("aria-expanded",!1).end().children(".jstree-children").stop(!0,!0).slideUp(t,function(){this.style.display="",a.children(".jstree-children").remove(),s.element&&s.trigger("after_close",{node:e})}):(a[0].className=a[0].className.replace("jstree-open","jstree-closed"),a.children(".jstree-anchor").attr("aria-expanded",!1),a.attr("aria-expanded",!1).children(".jstree-children").remove(),this.trigger("after_close",{node:e})):this.trigger("after_close",{node:e}))))},toggle_node:function(e){var t,r;if(Array.isArray(e)){for(t=0,r=(e=e.slice()).length;t<r;t++)this.toggle_node(e[t]);return!0}return this.is_closed(e)?this.open_node(e):this.is_open(e)?this.close_node(e):void 0},open_all:function(e,r,i){if(e=e||E.jstree.root,!(e=this.get_node(e)))return!1;var t,s,a,n=e.id===E.jstree.root?this.get_container_ul():this.get_node(e,!0);if(!n.length){for(t=0,s=e.children_d.length;t<s;t++)this.is_closed(this._model.data[e.children_d[t]])&&(this._model.data[e.children_d[t]].state.opened=!0);return this.trigger("open_all",{node:e})}i=i||n,(n=(a=this).is_closed(e)?n.find(".jstree-closed").addBack():n.find(".jstree-closed")).each(function(){a.open_node(this,function(e,t){t&&this.is_parent(e)&&this.open_all(e,r,i)},r||0)}),0===i.find(".jstree-closed").length&&this.trigger("open_all",{node:this.get_node(i)})},close_all:function(e,t){if(e=e||E.jstree.root,!(e=this.get_node(e)))return!1;var r,i,s=e.id===E.jstree.root?this.get_container_ul():this.get_node(e,!0),a=this;for(s.length&&(s=this.is_open(e)?s.find(".jstree-open").addBack():s.find(".jstree-open"),E(s.get().reverse()).each(function(){a.close_node(this,t||0)})),r=0,i=e.children_d.length;r<i;r++)this._model.data[e.children_d[r]].state.opened=!1;this.trigger("close_all",{node:e})},is_disabled:function(e){return(e=this.get_node(e))&&e.state&&e.state.disabled},enable_node:function(e){var t,r;if(Array.isArray(e)){for(t=0,r=(e=e.slice()).length;t<r;t++)this.enable_node(e[t]);return!0}if(!(e=this.get_node(e))||e.id===E.jstree.root)return!1;e.state.disabled=!1,this.get_node(e,!0).children(".jstree-anchor").removeClass("jstree-disabled").attr("aria-disabled",!1),this.trigger("enable_node",{node:e})},disable_node:function(e){var t,r;if(Array.isArray(e)){for(t=0,r=(e=e.slice()).length;t<r;t++)this.disable_node(e[t]);return!0}if(!(e=this.get_node(e))||e.id===E.jstree.root)return!1;e.state.disabled=!0,this.get_node(e,!0).children(".jstree-anchor").addClass("jstree-disabled").attr("aria-disabled",!0),this.trigger("disable_node",{node:e})},is_hidden:function(e){return!0===(e=this.get_node(e)).state.hidden},hide_node:function(e,t){var r,i;if(Array.isArray(e)){for(r=0,i=(e=e.slice()).length;r<i;r++)this.hide_node(e[r],!0);return t||this.redraw(),!0}if(!(e=this.get_node(e))||e.id===E.jstree.root)return!1;e.state.hidden||(e.state.hidden=!0,this._node_changed(e.parent),t||this.redraw(),this.trigger("hide_node",{node:e}))},show_node:function(e,t){var r,i;if(Array.isArray(e)){for(r=0,i=(e=e.slice()).length;r<i;r++)this.show_node(e[r],!0);return t||this.redraw(),!0}if(!(e=this.get_node(e))||e.id===E.jstree.root)return!1;e.state.hidden&&(e.state.hidden=!1,this._node_changed(e.parent),t||this.redraw(),this.trigger("show_node",{node:e}))},hide_all:function(e){var t,r=this._model.data,i=[];for(t in r)r.hasOwnProperty(t)&&t!==E.jstree.root&&!r[t].state.hidden&&(r[t].state.hidden=!0,i.push(t));return this._model.force_full_redraw=!0,e||this.redraw(),this.trigger("hide_all",{nodes:i}),i},show_all:function(e){var t,r=this._model.data,i=[];for(t in r)r.hasOwnProperty(t)&&t!==E.jstree.root&&r[t].state.hidden&&(r[t].state.hidden=!1,i.push(t));return this._model.force_full_redraw=!0,e||this.redraw(),this.trigger("show_all",{nodes:i}),i},activate_node:function(e,t){if(this.is_disabled(e))return!1;if(t&&"object"==typeof t||(t={}),this._data.core.last_clicked=this._data.core.last_clicked&&this._data.core.last_clicked.id!==P?this.get_node(this._data.core.last_clicked.id):null,this._data.core.last_clicked&&!this._data.core.last_clicked.state.selected&&(this._data.core.last_clicked=null),!this._data.core.last_clicked&&this._data.core.selected.length&&(this._data.core.last_clicked=this.get_node(this._data.core.selected[this._data.core.selected.length-1])),this.settings.core.multiple&&(t.metaKey||t.ctrlKey||t.shiftKey)&&(!t.shiftKey||this._data.core.last_clicked&&this.get_parent(e)&&this.get_parent(e)===this._data.core.last_clicked.parent))if(t.shiftKey){for(var r=this.get_node(e).id,i=this._data.core.last_clicked.id,s=this.get_node(this._data.core.last_clicked.parent).children,a=!1,n=0,o=s.length;n<o;n+=1)s[n]===r&&(a=!a),s[n]===i&&(a=!a),this.is_disabled(s[n])||!a&&s[n]!==r&&s[n]!==i?this.deselect_node(s[n],!0,t):this.is_hidden(s[n])||this.select_node(s[n],!0,!1,t);this.trigger("changed",{action:"select_node",node:this.get_node(e),selected:this._data.core.selected,event:t})}else this.is_selected(e)?this.deselect_node(e,!1,t):this.select_node(e,!1,!1,t);else!this.settings.core.multiple&&(t.metaKey||t.ctrlKey||t.shiftKey)&&this.is_selected(e)?this.deselect_node(e,!1,t):(this.deselect_all(!0),this.select_node(e,!1,!1,t),this._data.core.last_clicked=this.get_node(e));this.trigger("activate_node",{node:this.get_node(e),event:t})},hover_node:function(e){if(!(e=this.get_node(e,!0))||!e.length||e.children(".jstree-hovered").length)return!1;var t=this.element.find(".jstree-hovered"),r=this.element;t&&t.length&&this.dehover_node(t),e.children(".jstree-anchor").addClass("jstree-hovered"),this.trigger("hover_node",{node:this.get_node(e)}),setTimeout(function(){r.attr("aria-activedescendant",e[0].id)},0)},dehover_node:function(e){if(!(e=this.get_node(e,!0))||!e.length||!e.children(".jstree-hovered").length)return!1;e.children(".jstree-anchor").removeClass("jstree-hovered"),this.trigger("dehover_node",{node:this.get_node(e)})},select_node:function(e,t,r,i){var s,a,n;if(Array.isArray(e)){for(a=0,n=(e=e.slice()).length;a<n;a++)this.select_node(e[a],t,r,i);return!0}if(!(e=this.get_node(e))||e.id===E.jstree.root)return!1;s=this.get_node(e,!0),e.state.selected||(e.state.selected=!0,this._data.core.selected.push(e.id),r||(s=this._open_to(e)),s&&s.length&&s.attr("aria-selected",!0).children(".jstree-anchor").addClass("jstree-clicked").attr("aria-selected",!0),this.trigger("select_node",{node:e,selected:this._data.core.selected,event:i}),t||this.trigger("changed",{action:"select_node",node:e,selected:this._data.core.selected,event:i}))},deselect_node:function(e,t,r){var i,s,a;if(Array.isArray(e)){for(i=0,s=(e=e.slice()).length;i<s;i++)this.deselect_node(e[i],t,r);return!0}if(!(e=this.get_node(e))||e.id===E.jstree.root)return!1;a=this.get_node(e,!0),e.state.selected&&(e.state.selected=!1,this._data.core.selected=E.vakata.array_remove_item(this._data.core.selected,e.id),a.length&&a.attr("aria-selected",!1).children(".jstree-anchor").removeClass("jstree-clicked").attr("aria-selected",!1),this.trigger("deselect_node",{node:e,selected:this._data.core.selected,event:r}),t||this.trigger("changed",{action:"deselect_node",node:e,selected:this._data.core.selected,event:r}))},select_all:function(e){var t,r,i=this._data.core.selected.concat([]);for(this._data.core.selected=this._model.data[E.jstree.root].children_d.concat(),t=0,r=this._data.core.selected.length;t<r;t++)this._model.data[this._data.core.selected[t]]&&(this._model.data[this._data.core.selected[t]].state.selected=!0);this.redraw(!0),this.trigger("select_all",{selected:this._data.core.selected}),e||this.trigger("changed",{action:"select_all",selected:this._data.core.selected,old_selection:i})},deselect_all:function(e){for(var t=this._data.core.selected.concat([]),r=0,i=this._data.core.selected.length;r<i;r++)this._model.data[this._data.core.selected[r]]&&(this._model.data[this._data.core.selected[r]].state.selected=!1);this._data.core.selected=[],this.element.find(".jstree-clicked").removeClass("jstree-clicked").attr("aria-selected",!1).parent().attr("aria-selected",!1),this.trigger("deselect_all",{selected:this._data.core.selected,node:t}),e||this.trigger("changed",{action:"deselect_all",selected:this._data.core.selected,old_selection:t})},is_selected:function(e){return!(!(e=this.get_node(e))||e.id===E.jstree.root)&&e.state.selected},get_selected:function(e){return e?E.map(this._data.core.selected,E.proxy(function(e){return this.get_node(e)},this)):this._data.core.selected.slice()},get_top_selected:function(e){for(var t,r,i=this.get_selected(!0),s={},a=0,n=i.length;a<n;a++)s[i[a].id]=i[a];for(a=0,n=i.length;a<n;a++)for(t=0,r=i[a].children_d.length;t<r;t++)s[i[a].children_d[t]]&&delete s[i[a].children_d[t]];for(a in i=[],s)s.hasOwnProperty(a)&&i.push(a);return e?E.map(i,E.proxy(function(e){return this.get_node(e)},this)):i},get_bottom_selected:function(e){for(var t=this.get_selected(!0),r=[],i=0,s=t.length;i<s;i++)t[i].children.length||r.push(t[i].id);return e?E.map(r,E.proxy(function(e){return this.get_node(e)},this)):r},get_state:function(){var e,t={core:{open:[],loaded:[],scroll:{left:this.element.scrollLeft(),top:this.element.scrollTop()},selected:[]}};for(e in this._model.data)this._model.data.hasOwnProperty(e)&&e!==E.jstree.root&&(this._model.data[e].state.loaded&&this.settings.core.loaded_state&&t.core.loaded.push(e),this._model.data[e].state.opened&&t.core.open.push(e),this._model.data[e].state.selected&&t.core.selected.push(e));return t},set_state:function(t,r){if(t){if(t.core&&t.core.selected&&t.core.initial_selection===P&&(t.core.initial_selection=this._data.core.selected.concat([]).sort().join(",")),t.core){var i,e;if(t.core.loaded)return this.settings.core.loaded_state&&Array.isArray(t.core.loaded)&&t.core.loaded.length?this._load_nodes(t.core.loaded,function(e){delete t.core.loaded,this.set_state(t,r)}):(delete t.core.loaded,this.set_state(t,r)),!1;if(t.core.open)return Array.isArray(t.core.open)&&t.core.open.length?this._load_nodes(t.core.open,function(e){this.open_node(e,!1,0),delete t.core.open,this.set_state(t,r)}):(delete t.core.open,this.set_state(t,r)),!1;if(t.core.scroll)return t.core.scroll&&t.core.scroll.left!==P&&this.element.scrollLeft(t.core.scroll.left),t.core.scroll&&t.core.scroll.top!==P&&this.element.scrollTop(t.core.scroll.top),delete t.core.scroll,this.set_state(t,r),!1;if(t.core.selected)return i=this,t.core.initial_selection!==P&&t.core.initial_selection!==this._data.core.selected.concat([]).sort().join(",")||(this.deselect_all(),E.each(t.core.selected,function(e,t){i.select_node(t,!1,!0)})),delete t.core.initial_selection,delete t.core.selected,this.set_state(t,r),!1;for(e in t)t.hasOwnProperty(e)&&"core"!==e&&-1===E.inArray(e,this.settings.plugins)&&delete t[e];if(E.isEmptyObject(t.core))return delete t.core,this.set_state(t,r),!1}return E.isEmptyObject(t)?(t=null,r&&r.call(this),this.trigger("set_state"),!1):!0}return!1},refresh:function(e,t){this._data.core.state=!0===t?{}:this.get_state(),t&&"function"==typeof t&&(this._data.core.state=t.call(this,this._data.core.state)),this._cnt=0,this._model.data={},this._model.data[E.jstree.root]={id:E.jstree.root,parent:null,parents:[],children:[],children_d:[],state:{loaded:!1}},this._data.core.selected=[],this._data.core.last_clicked=null,this._data.core.focused=null;var r=this.get_container_ul()[0].className;e||(this.element.html("<ul class='"+r+"' role='group'><li class='jstree-initial-node jstree-loading jstree-leaf jstree-last' role='presentation' id='j"+this._id+"_loading'><i class='jstree-icon jstree-ocl'></i><a class='jstree-anchor' role='treeitem' href='#'><i class='jstree-icon jstree-themeicon-hidden'></i>"+this.get_string("Loading ...")+"</a></li></ul>"),this.element.attr("aria-activedescendant","j"+this._id+"_loading")),this.load_node(E.jstree.root,function(e,t){t&&(this.get_container_ul()[0].className=r,this._firstChild(this.get_container_ul()[0])&&this.element.attr("aria-activedescendant",this._firstChild(this.get_container_ul()[0]).id),this.set_state(E.extend(!0,{},this._data.core.state),function(){this.trigger("refresh")})),this._data.core.state=null})},refresh_node:function(t){if(!(t=this.get_node(t))||t.id===E.jstree.root)return!1;var r=[],e=[],i=this._data.core.selected.concat([]);e.push(t.id),!0===t.state.opened&&r.push(t.id),this.get_node(t,!0).find(".jstree-open").each(function(){e.push(this.id),r.push(this.id)}),this._load_nodes(e,E.proxy(function(e){this.open_node(r,!1,0),this.select_node(i),this.trigger("refresh_node",{node:t,nodes:e})},this),!1,!0)},set_id:function(e,t){if(!(e=this.get_node(e))||e.id===E.jstree.root)return!1;var r,i,s=this._model.data,a=e.id;for(t=t.toString(),s[e.parent].children[E.inArray(e.id,s[e.parent].children)]=t,r=0,i=e.parents.length;r<i;r++)s[e.parents[r]].children_d[E.inArray(e.id,s[e.parents[r]].children_d)]=t;for(r=0,i=e.children.length;r<i;r++)s[e.children[r]].parent=t;for(r=0,i=e.children_d.length;r<i;r++)s[e.children_d[r]].parents[E.inArray(e.id,s[e.children_d[r]].parents)]=t;return-1!==(r=E.inArray(e.id,this._data.core.selected))&&(this._data.core.selected[r]=t),(r=this.get_node(e.id,!0))&&(r.attr("id",t),this.element.attr("aria-activedescendant")===e.id&&this.element.attr("aria-activedescendant",t)),delete s[e.id],e.id=t,s[e.li_attr.id=t]=e,this.trigger("set_id",{node:e,new:e.id,old:a}),!0},get_text:function(e){return!(!(e=this.get_node(e))||e.id===E.jstree.root)&&e.text},set_text:function(e,t){var r,i;if(Array.isArray(e)){for(r=0,i=(e=e.slice()).length;r<i;r++)this.set_text(e[r],t);return!0}return!(!(e=this.get_node(e))||e.id===E.jstree.root)&&(e.text=t,this.get_node(e,!0).length&&this.redraw_node(e.id),this.trigger("set_text",{obj:e,text:t}),!0)},get_json:function(e,t,r){if(!(e=this.get_node(e||E.jstree.root)))return!1;t&&t.flat&&!r&&(r=[]);var i,s,a={id:e.id,text:e.text,icon:this.get_icon(e),li_attr:E.extend(!0,{},e.li_attr),a_attr:E.extend(!0,{},e.a_attr),state:{},data:(!t||!t.no_data)&&E.extend(!0,Array.isArray(e.data)?[]:{},e.data)};if(t&&t.flat?a.parent=e.parent:a.children=[],t&&t.no_state)delete a.state;else for(i in e.state)e.state.hasOwnProperty(i)&&(a.state[i]=e.state[i]);if(t&&t.no_li_attr&&delete a.li_attr,t&&t.no_a_attr&&delete a.a_attr,t&&t.no_id&&(delete a.id,a.li_attr&&a.li_attr.id&&delete a.li_attr.id,a.a_attr&&a.a_attr.id&&delete a.a_attr.id),t&&t.flat&&e.id!==E.jstree.root&&r.push(a),!t||!t.no_children)for(i=0,s=e.children.length;i<s;i++)t&&t.flat?this.get_json(e.children[i],t,r):a.children.push(this.get_json(e.children[i],t));return t&&t.flat?r:e.id===E.jstree.root?a.children:a},create_node:function(e,t,r,i,s){if(null===e&&(e=E.jstree.root),!(e=this.get_node(e)))return!1;if(!(r=r===P?"last":r).toString().match(/^(before|after)$/)&&!s&&!this.is_loaded(e))return this.load_node(e,function(){this.create_node(e,t,r,i,!0)});var a,n,o,d;switch((t="string"==typeof(t=t||{text:this.get_string("New node")})?{text:t}:E.extend(!0,{},t)).text===P&&(t.text=this.get_string("New node")),e.id===E.jstree.root&&("before"===r&&(r="first"),"after"===r&&(r="last")),r){case"before":a=this.get_node(e.parent),r=E.inArray(e.id,a.children),e=a;break;case"after":a=this.get_node(e.parent),r=E.inArray(e.id,a.children)+1,e=a;break;case"inside":case"first":r=0;break;case"last":r=e.children.length;break;default:r=r||0}if(r>e.children.length&&(r=e.children.length),t.id||(t.id=!0),!this.check("create_node",t,e,r))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(!0===t.id&&delete t.id,!(t=this._parse_model_from_json(t,e.id,e.parents.concat())))return!1;for(a=this.get_node(t),(n=[]).push(t),n=n.concat(a.children_d),this.trigger("model",{nodes:n,parent:e.id}),e.children_d=e.children_d.concat(n),o=0,d=e.parents.length;o<d;o++)this._model.data[e.parents[o]].children_d=this._model.data[e.parents[o]].children_d.concat(n);for(t=a,a=[],o=0,d=e.children.length;o<d;o++)a[r<=o?o+1:o]=e.children[o];return a[r]=t.id,e.children=a,this.redraw_node(e,!0),this.trigger("create_node",{node:this.get_node(t),parent:e.id,position:r}),i&&i.call(this,this.get_node(t)),t.id},rename_node:function(e,t){var r,i,s;if(Array.isArray(e)){for(r=0,i=(e=e.slice()).length;r<i;r++)this.rename_node(e[r],t);return!0}return!(!(e=this.get_node(e))||e.id===E.jstree.root)&&(s=e.text,this.check("rename_node",e,this.get_parent(e),t)?(this.set_text(e,t),this.trigger("rename_node",{node:e,text:t,old:s}),!0):(this.settings.core.error.call(this,this._data.core.last_error),!1))},delete_node:function(e){var t,r,i,s,a,n,o,d,c,l,h,_;if(Array.isArray(e)){for(t=0,r=(e=e.slice()).length;t<r;t++)this.delete_node(e[t]);return!0}if(!(e=this.get_node(e))||e.id===E.jstree.root)return!1;if(i=this.get_node(e.parent),s=E.inArray(e.id,i.children),l=!1,!this.check("delete_node",e,i,s))return this.settings.core.error.call(this,this._data.core.last_error),!1;for(-1!==s&&(i.children=E.vakata.array_remove(i.children,s)),(a=e.children_d.concat([])).push(e.id),n=0,o=e.parents.length;n<o;n++)this._model.data[e.parents[n]].children_d=E.vakata.array_filter(this._model.data[e.parents[n]].children_d,function(e){return-1===E.inArray(e,a)});for(d=0,c=a.length;d<c;d++)if(this._model.data[a[d]].state.selected){l=!0;break}for(l&&(this._data.core.selected=E.vakata.array_filter(this._data.core.selected,function(e){return-1===E.inArray(e,a)})),this.trigger("delete_node",{node:e,parent:i.id}),l&&this.trigger("changed",{action:"delete_node",node:e,selected:this._data.core.selected,parent:i.id}),d=0,c=a.length;d<c;d++)delete this._model.data[a[d]];return-1!==E.inArray(this._data.core.focused,a)&&(this._data.core.focused=null,h=this.element[0].scrollTop,_=this.element[0].scrollLeft,i.id===E.jstree.root?this._model.data[E.jstree.root].children[0]&&this.get_node(this._model.data[E.jstree.root].children[0],!0).children(".jstree-anchor").focus():this.get_node(i,!0).children(".jstree-anchor").focus(),this.element[0].scrollTop=h,this.element[0].scrollLeft=_),this.redraw_node(i,!0),!0},check:function(e,t,r,i,s){t=t&&t.id?t:this.get_node(t),r=r&&r.id?r:this.get_node(r);var a=e.match(/^move_node|copy_node|create_node$/i)?r:t,n=this.settings.core.check_callback;if("move_node"===e||"copy_node"===e){if(!(s&&s.is_multi||"move_node"!==e||E.inArray(t.id,r.children)!==i))return!(this._data.core.last_error={error:"check",plugin:"core",id:"core_08",reason:"Moving node to its current position",data:JSON.stringify({chk:e,pos:i,obj:!(!t||!t.id)&&t.id,par:!(!r||!r.id)&&r.id})});if(!(s&&s.is_multi||t.id!==r.id&&("move_node"!==e||E.inArray(t.id,r.children)!==i)&&-1===E.inArray(r.id,t.children_d)))return!(this._data.core.last_error={error:"check",plugin:"core",id:"core_01",reason:"Moving parent inside child",data:JSON.stringify({chk:e,pos:i,obj:!(!t||!t.id)&&t.id,par:!(!r||!r.id)&&r.id})})}return a&&a.data&&(a=a.data),a&&a.functions&&(!1===a.functions[e]||!0===a.functions[e])?(!1===a.functions[e]&&(this._data.core.last_error={error:"check",plugin:"core",id:"core_02",reason:"Node data prevents function: "+e,data:JSON.stringify({chk:e,pos:i,obj:!(!t||!t.id)&&t.id,par:!(!r||!r.id)&&r.id})}),a.functions[e]):!(!1===n||"function"==typeof n&&!1===n.call(this,e,t,r,i,s)||n&&!1===n[e])||!(this._data.core.last_error={error:"check",plugin:"core",id:"core_03",reason:"User config for core.check_callback prevents function: "+e,data:JSON.stringify({chk:e,pos:i,obj:!(!t||!t.id)&&t.id,par:!(!r||!r.id)&&r.id})})},last_error:function(){return this._data.core.last_error},move_node:function(e,t,r,i,s,a,n){var o,d,c,l,h,_,u,g,f,p,m,v,j,y;if(t=this.get_node(t),r=r===P?0:r,!t)return!1;if(!r.toString().match(/^(before|after)$/)&&!s&&!this.is_loaded(t))return this.load_node(t,function(){this.move_node(e,t,r,i,!0,!1,n)});if(Array.isArray(e)){if(1!==e.length){for(o=0,d=e.length;o<d;o++)(f=this.move_node(e[o],t,r,i,s,!1,n))&&(t=f,r="after");return this.redraw(),!0}e=e[0]}if(!(e=e&&e.id?e:this.get_node(e))||e.id===E.jstree.root)return!1;if(c=(e.parent||E.jstree.root).toString(),h=r.toString().match(/^(before|after)$/)&&t.id!==E.jstree.root?this.get_node(t.parent):t,u=!(_=n||(this._model.data[e.id]?this:E.jstree.reference(e.id)))||!_._id||this._id!==_._id,l=_&&_._id&&c&&_._model.data[c]&&_._model.data[c].children?E.inArray(e.id,_._model.data[c].children):-1,_&&_._id&&(e=_._model.data[e.id]),u)return!!(f=this.copy_node(e,t,r,i,s,!1,n))&&(_&&_.delete_node(e),f);switch(t.id===E.jstree.root&&("before"===r&&(r="first"),"after"===r&&(r="last")),r){case"before":r=E.inArray(t.id,h.children);break;case"after":r=E.inArray(t.id,h.children)+1;break;case"inside":case"first":r=0;break;case"last":r=h.children.length;break;default:r=r||0}if(r>h.children.length&&(r=h.children.length),!this.check("move_node",e,h,r,{core:!0,origin:n,is_multi:_&&_._id&&_._id!==this._id,is_foreign:!_||!_._id}))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(e.parent===h.id){for(g=h.children.concat(),-1!==(f=E.inArray(e.id,g))&&(g=E.vakata.array_remove(g,f),f<r&&r--),f=[],p=0,m=g.length;p<m;p++)f[r<=p?p+1:p]=g[p];f[r]=e.id,h.children=f,this._node_changed(h.id),this.redraw(h.id===E.jstree.root)}else{for((f=e.children_d.concat()).push(e.id),p=0,m=e.parents.length;p<m;p++){for(g=[],v=0,j=(y=_._model.data[e.parents[p]].children_d).length;v<j;v++)-1===E.inArray(y[v],f)&&g.push(y[v]);_._model.data[e.parents[p]].children_d=g}for(_._model.data[c].children=E.vakata.array_remove_item(_._model.data[c].children,e.id),p=0,m=h.parents.length;p<m;p++)this._model.data[h.parents[p]].children_d=this._model.data[h.parents[p]].children_d.concat(f);for(g=[],p=0,m=h.children.length;p<m;p++)g[r<=p?p+1:p]=h.children[p];for(g[r]=e.id,h.children=g,h.children_d.push(e.id),h.children_d=h.children_d.concat(e.children_d),e.parent=h.id,(f=h.parents.concat()).unshift(h.id),y=e.parents.length,f=(e.parents=f).concat(),p=0,m=e.children_d.length;p<m;p++)this._model.data[e.children_d[p]].parents=this._model.data[e.children_d[p]].parents.slice(0,-1*y),Array.prototype.push.apply(this._model.data[e.children_d[p]].parents,f);c!==E.jstree.root&&h.id!==E.jstree.root||(this._model.force_full_redraw=!0),this._model.force_full_redraw||(this._node_changed(c),this._node_changed(h.id)),a||this.redraw()}return i&&i.call(this,e,h,r),this.trigger("move_node",{node:e,parent:h.id,position:r,old_parent:c,old_position:l,is_multi:_&&_._id&&_._id!==this._id,is_foreign:!_||!_._id,old_instance:_,new_instance:this}),e.id},copy_node:function(e,t,r,i,s,a,n){var o,d,c,l,h,_,u,g,f,p;if(t=this.get_node(t),r=r===P?0:r,!t)return!1;if(!r.toString().match(/^(before|after)$/)&&!s&&!this.is_loaded(t))return this.load_node(t,function(){this.copy_node(e,t,r,i,!0,!1,n)});if(Array.isArray(e)){if(1!==e.length){for(o=0,d=e.length;o<d;o++)(l=this.copy_node(e[o],t,r,i,s,!0,n))&&(t=l,r="after");return this.redraw(),!0}e=e[0]}if(!(e=e&&e.id?e:this.get_node(e))||e.id===E.jstree.root)return!1;switch(g=(e.parent||E.jstree.root).toString(),f=r.toString().match(/^(before|after)$/)&&t.id!==E.jstree.root?this.get_node(t.parent):t,(p=n||(this._model.data[e.id]?this:E.jstree.reference(e.id)))&&p._id&&(this._id,p._id),p&&p._id&&(e=p._model.data[e.id]),t.id===E.jstree.root&&("before"===r&&(r="first"),"after"===r&&(r="last")),r){case"before":r=E.inArray(t.id,f.children);break;case"after":r=E.inArray(t.id,f.children)+1;break;case"inside":case"first":r=0;break;case"last":r=f.children.length;break;default:r=r||0}if(r>f.children.length&&(r=f.children.length),!this.check("copy_node",e,f,r,{core:!0,origin:n,is_multi:p&&p._id&&p._id!==this._id,is_foreign:!p||!p._id}))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(!(u=p?p.get_json(e,{no_id:!0,no_data:!0,no_state:!0}):e))return!1;if(!0===u.id&&delete u.id,!(u=this._parse_model_from_json(u,f.id,f.parents.concat())))return!1;for(l=this.get_node(u),e&&e.state&&!1===e.state.loaded&&(l.state.loaded=!1),(c=[]).push(u),c=c.concat(l.children_d),this.trigger("model",{nodes:c,parent:f.id}),h=0,_=f.parents.length;h<_;h++)this._model.data[f.parents[h]].children_d=this._model.data[f.parents[h]].children_d.concat(c);for(c=[],h=0,_=f.children.length;h<_;h++)c[r<=h?h+1:h]=f.children[h];return c[r]=l.id,f.children=c,f.children_d.push(l.id),f.children_d=f.children_d.concat(l.children_d),f.id===E.jstree.root&&(this._model.force_full_redraw=!0),this._model.force_full_redraw||this._node_changed(f.id),a||this.redraw(f.id===E.jstree.root),i&&i.call(this,l,f,r),this.trigger("copy_node",{node:l,original:e,parent:f.id,position:r,old_parent:g,old_position:p&&p._id&&g&&p._model.data[g]&&p._model.data[g].children?E.inArray(e.id,p._model.data[g].children):-1,is_multi:p&&p._id&&p._id!==this._id,is_foreign:!p||!p._id,old_instance:p,new_instance:this}),l.id},cut:function(e){if(e=e||this._data.core.selected.concat(),Array.isArray(e)||(e=[e]),!e.length)return!1;for(var t,r=[],i=0,s=e.length;i<s;i++)(t=this.get_node(e[i]))&&t.id&&t.id!==E.jstree.root&&r.push(t);if(!r.length)return!1;a=r,n="move_node",(o=this).trigger("cut",{node:e})},copy:function(e){if(e=e||this._data.core.selected.concat(),Array.isArray(e)||(e=[e]),!e.length)return!1;for(var t,r=[],i=0,s=e.length;i<s;i++)(t=this.get_node(e[i]))&&t.id&&t.id!==E.jstree.root&&r.push(t);if(!r.length)return!1;a=r,n="copy_node",(o=this).trigger("copy",{node:e})},get_buffer:function(){return{mode:n,node:a,inst:o}},can_paste:function(){return!1!==n&&!1!==a},paste:function(e,t){if(!((e=this.get_node(e))&&n&&n.match(/^(copy_node|move_node)$/)&&a))return!1;this[n](a,e,t,!1,!1,!1,o)&&this.trigger("paste",{parent:e.id,node:a,mode:n}),o=n=a=!1},clear_buffer:function(){o=n=a=!1,this.trigger("clear_buffer")},edit:function(s,e,a){var t,r,n,o,d,c,l,i,h,_=!1;return!!(s=this.get_node(s))&&(this.check("edit",s,this.get_parent(s))?(h=s,e="string"==typeof e?e:s.text,this.set_text(s,""),s=this._open_to(s),h.text=e,t=this._data.core.rtl,r=this.element.width(),this._data.core.focused=h.id,n=s.children(".jstree-anchor").focus(),o=E("<span></span>"),d=e,c=E("<div></div>",{css:{position:"absolute",top:"-200px",left:t?"0px":"-1000px",visibility:"hidden"}}).appendTo(y.body),l=E("<input />",{value:d,class:"jstree-rename-input",css:{padding:"0",border:"1px solid silver","box-sizing":"border-box",display:"inline-block",height:this._data.core.li_height+"px",lineHeight:this._data.core.li_height+"px",width:"150px"},blur:E.proxy(function(e){e.stopImmediatePropagation(),e.preventDefault();var t,r=o.children(".jstree-rename-input").val(),i=this.settings.core.force_text;""===r&&(r=d),c.remove(),o.replaceWith(n),o.remove(),d=i?d:E("<div></div>").append(E.parseHTML(d)).html(),s=this.get_node(s),this.set_text(s,d),(t=!!this.rename_node(s,i?E("<div></div>").text(r).text():E("<div></div>").append(E.parseHTML(r)).html()))||this.set_text(s,d),this._data.core.focused=h.id,setTimeout(E.proxy(function(){var e=this.get_node(h.id,!0);e.length&&(this._data.core.focused=h.id,e.children(".jstree-anchor").focus())},this),0),a&&a.call(this,h,t,_),l=null},this),keydown:function(e){var t=e.which;27===t&&(_=!0,this.value=d),27!==t&&13!==t&&37!==t&&38!==t&&39!==t&&40!==t&&32!==t||e.stopImmediatePropagation(),27!==t&&13!==t||(e.preventDefault(),this.blur())},click:function(e){e.stopImmediatePropagation()},mousedown:function(e){e.stopImmediatePropagation()},keyup:function(e){l.width(Math.min(c.text("pW"+this.value).width(),r))},keypress:function(e){if(13===e.which)return!1}}),i={fontFamily:n.css("fontFamily")||"",fontSize:n.css("fontSize")||"",fontWeight:n.css("fontWeight")||"",fontStyle:n.css("fontStyle")||"",fontStretch:n.css("fontStretch")||"",fontVariant:n.css("fontVariant")||"",letterSpacing:n.css("letterSpacing")||"",wordSpacing:n.css("wordSpacing")||""},o.attr("class",n.attr("class")).append(n.contents().clone()).append(l),n.replaceWith(o),c.css(i),l.css(i).width(Math.min(c.text("pW"+l[0].value).width(),r))[0].select(),void E(y).one("mousedown.jstree touchstart.jstree dnd_start.vakata",function(e){l&&e.target!==l&&E(l).trigger("blur")})):(this.settings.core.error.call(this,this._data.core.last_error),!1))},set_theme:function(e,t){if(!e)return!1;!0===t&&(t=(this.settings.core.themes.dir||E.jstree.path+"/themes")+"/"+e+"/style.css"),t&&-1===E.inArray(t,r)&&(E("head").append('<link rel="stylesheet" href="'+t+'" type="text/css" />'),r.push(t)),this._data.core.themes.name&&this.element.removeClass("jstree-"+this._data.core.themes.name),this._data.core.themes.name=e,this.element.addClass("jstree-"+e),this.element[this.settings.core.themes.responsive?"addClass":"removeClass"]("jstree-"+e+"-responsive"),this.trigger("set_theme",{theme:e})},get_theme:function(){return this._data.core.themes.name},set_theme_variant:function(e){this._data.core.themes.variant&&this.element.removeClass("jstree-"+this._data.core.themes.name+"-"+this._data.core.themes.variant),(this._data.core.themes.variant=e)&&this.element.addClass("jstree-"+this._data.core.themes.name+"-"+this._data.core.themes.variant)},get_theme_variant:function(){return this._data.core.themes.variant},show_stripes:function(){this._data.core.themes.stripes=!0,this.get_container_ul().addClass("jstree-striped"),this.trigger("show_stripes")},hide_stripes:function(){this._data.core.themes.stripes=!1,this.get_container_ul().removeClass("jstree-striped"),this.trigger("hide_stripes")},toggle_stripes:function(){this._data.core.themes.stripes?this.hide_stripes():this.show_stripes()},show_dots:function(){this._data.core.themes.dots=!0,this.get_container_ul().removeClass("jstree-no-dots"),this.trigger("show_dots")},hide_dots:function(){this._data.core.themes.dots=!1,this.get_container_ul().addClass("jstree-no-dots"),this.trigger("hide_dots")},toggle_dots:function(){this._data.core.themes.dots?this.hide_dots():this.show_dots()},show_icons:function(){this._data.core.themes.icons=!0,this.get_container_ul().removeClass("jstree-no-icons"),this.trigger("show_icons")},hide_icons:function(){this._data.core.themes.icons=!1,this.get_container_ul().addClass("jstree-no-icons"),this.trigger("hide_icons")},toggle_icons:function(){this._data.core.themes.icons?this.hide_icons():this.show_icons()},show_ellipsis:function(){this._data.core.themes.ellipsis=!0,this.get_container_ul().addClass("jstree-ellipsis"),this.trigger("show_ellipsis")},hide_ellipsis:function(){this._data.core.themes.ellipsis=!1,this.get_container_ul().removeClass("jstree-ellipsis"),this.trigger("hide_ellipsis")},toggle_ellipsis:function(){this._data.core.themes.ellipsis?this.hide_ellipsis():this.show_ellipsis()},set_icon:function(e,t){var r,i,s,a;if(Array.isArray(e)){for(r=0,i=(e=e.slice()).length;r<i;r++)this.set_icon(e[r],t);return!0}return!(!(e=this.get_node(e))||e.id===E.jstree.root)&&(a=e.icon,e.icon=!0===t||null===t||t===P||""===t||t,s=this.get_node(e,!0).children(".jstree-anchor").children(".jstree-themeicon"),!1===t?(s.removeClass("jstree-themeicon-custom "+a).css("background","").removeAttr("rel"),this.hide_icon(e)):(!0===t||null===t||t===P||""===t?s.removeClass("jstree-themeicon-custom "+a).css("background","").removeAttr("rel"):-1===t.indexOf("/")&&-1===t.indexOf(".")?(s.removeClass(a).css("background",""),s.addClass(t+" jstree-themeicon-custom").attr("rel",t)):(s.removeClass(a).css("background",""),s.addClass("jstree-themeicon-custom").css("background","url('"+t+"') center center no-repeat").attr("rel",t)),!1===a&&this.show_icon(e)),!0)},get_icon:function(e){return!(!(e=this.get_node(e))||e.id===E.jstree.root)&&e.icon},hide_icon:function(e){var t,r;if(Array.isArray(e)){for(t=0,r=(e=e.slice()).length;t<r;t++)this.hide_icon(e[t]);return!0}return!(!(e=this.get_node(e))||e===E.jstree.root)&&(e.icon=!1,this.get_node(e,!0).children(".jstree-anchor").children(".jstree-themeicon").addClass("jstree-themeicon-hidden"),!0)},show_icon:function(e){var t,r,i;if(Array.isArray(e)){for(t=0,r=(e=e.slice()).length;t<r;t++)this.show_icon(e[t]);return!0}return!(!(e=this.get_node(e))||e===E.jstree.root)&&(i=this.get_node(e,!0),e.icon=!i.length||i.children(".jstree-anchor").children(".jstree-themeicon").attr("rel"),e.icon||(e.icon=!0),i.children(".jstree-anchor").children(".jstree-themeicon").removeClass("jstree-themeicon-hidden"),!0)}},E.vakata={},E.vakata.attributes=function(e,r){e=E(e)[0];var i=r?{}:[];return e&&e.attributes&&E.each(e.attributes,function(e,t){-1===E.inArray(t.name.toLowerCase(),["style","contenteditable","hasfocus","tabindex"])&&null!==t.value&&""!==t.value.trim()&&(r?i[t.name]=t.value:i.push(t.name))}),i},E.vakata.array_unique=function(e){for(var t=[],r={},i=0,s=e.length;i<s;i++)r[e[i]]===P&&(t.push(e[i]),r[e[i]]=!0);return t},E.vakata.array_remove=function(e,t){return e.splice(t,1),e},E.vakata.array_remove_item=function(e,t){var r=E.inArray(t,e);return-1!==r?E.vakata.array_remove(e,r):e},E.vakata.array_filter=function(e,t,r,i,s){if(e.filter)return e.filter(t,r);for(s in i=[],e)~~s+""==s+""&&0<=s&&t.call(r,e[s],+s,e)&&i.push(e[s]);return i},E.jstree.plugins.changed=function(e,a){var n=[];this.trigger=function(e,t){if(t=t||{},"changed"===e.replace(".jstree","")){t.changed={selected:[],deselected:[]};for(var r={},i=0,s=n.length;i<s;i++)r[n[i]]=1;for(i=0,s=t.selected.length;i<s;i++)r[t.selected[i]]?r[t.selected[i]]=2:t.changed.selected.push(t.selected[i]);for(i=0,s=n.length;i<s;i++)1===r[n[i]]&&t.changed.deselected.push(n[i]);n=t.selected.slice()}a.trigger.call(this,e,t)},this.refresh=function(e,t){return n=[],a.refresh.apply(this,arguments)}};var h,_,u,d,l,g,f,w,p=y.createElement("I");p.className="jstree-icon jstree-checkbox",p.setAttribute("role","presentation"),E.jstree.defaults.checkbox={visible:!0,three_state:!0,whole_node:!0,keep_selected_style:!0,cascade:"",tie_selection:!0,cascade_to_disabled:!0,cascade_to_hidden:!0},E.jstree.plugins.checkbox=function(e,d){this.bind=function(){d.bind.call(this),this._data.checkbox.uto=!1,this._data.checkbox.selected=[],this.settings.checkbox.three_state&&(this.settings.checkbox.cascade="up+down+undetermined"),this.element.on("init.jstree",E.proxy(function(){this._data.checkbox.visible=this.settings.checkbox.visible,this.settings.checkbox.keep_selected_style||this.element.addClass("jstree-checkbox-no-clicked"),this.settings.checkbox.tie_selection&&this.element.addClass("jstree-checkbox-selection")},this)).on("loading.jstree",E.proxy(function(){this[this._data.checkbox.visible?"show_checkboxes":"hide_checkboxes"]()},this)),-1!==this.settings.checkbox.cascade.indexOf("undetermined")&&this.element.on("changed.jstree uncheck_node.jstree check_node.jstree uncheck_all.jstree check_all.jstree move_node.jstree copy_node.jstree redraw.jstree open_node.jstree",E.proxy(function(){this._data.checkbox.uto&&clearTimeout(this._data.checkbox.uto),this._data.checkbox.uto=setTimeout(E.proxy(this._undetermined,this),50)},this)),this.settings.checkbox.tie_selection||this.element.on("model.jstree",E.proxy(function(e,t){for(var r=this._model.data,i=(r[t.parent],t.nodes),s=0,a=i.length;s<a;s++)r[i[s]].state.checked=r[i[s]].state.checked||r[i[s]].original&&r[i[s]].original.state&&r[i[s]].original.state.checked,r[i[s]].state.checked&&this._data.checkbox.selected.push(i[s])},this)),-1===this.settings.checkbox.cascade.indexOf("up")&&-1===this.settings.checkbox.cascade.indexOf("down")||this.element.on("model.jstree",E.proxy(function(e,t){var r,i,s,a,n,o,d=this._model.data,c=d[t.parent],l=t.nodes,h=[],_=this.settings.checkbox.cascade,u=this.settings.checkbox.tie_selection;if(-1!==_.indexOf("down"))if(c.state[u?"selected":"checked"]){for(i=0,s=l.length;i<s;i++)d[l[i]].state[u?"selected":"checked"]=!0;this._data[u?"core":"checkbox"].selected=this._data[u?"core":"checkbox"].selected.concat(l)}else for(i=0,s=l.length;i<s;i++)if(d[l[i]].state[u?"selected":"checked"]){for(a=0,n=d[l[i]].children_d.length;a<n;a++)d[d[l[i]].children_d[a]].state[u?"selected":"checked"]=!0;this._data[u?"core":"checkbox"].selected=this._data[u?"core":"checkbox"].selected.concat(d[l[i]].children_d)}if(-1!==_.indexOf("up")){for(i=0,s=c.children_d.length;i<s;i++)d[c.children_d[i]].children.length||h.push(d[c.children_d[i]].parent);for(a=0,n=(h=E.vakata.array_unique(h)).length;a<n;a++)for(c=d[h[a]];c&&c.id!==E.jstree.root;){for(i=r=0,s=c.children.length;i<s;i++)r+=d[c.children[i]].state[u?"selected":"checked"];if(r!==s)break;c.state[u?"selected":"checked"]=!0,this._data[u?"core":"checkbox"].selected.push(c.id),(o=this.get_node(c,!0))&&o.length&&o.attr("aria-selected",!0).children(".jstree-anchor").addClass(u?"jstree-clicked":"jstree-checked"),c=this.get_node(c.parent)}}this._data[u?"core":"checkbox"].selected=E.vakata.array_unique(this._data[u?"core":"checkbox"].selected)},this)).on(this.settings.checkbox.tie_selection?"select_node.jstree":"check_node.jstree",E.proxy(function(e,t){var r,i,s=t.node,a=this._model.data,n=this.get_node(s.parent),o=this.settings.checkbox.cascade,d=this.settings.checkbox.tie_selection,c={},l=this._data[d?"core":"checkbox"].selected;for(u=0,g=l.length;u<g;u++)c[l[u]]=!0;if(-1!==o.indexOf("down"))for(var h=this._cascade_new_checked_state(s.id,!0),_=s.children_d.concat(s.id),u=0,g=_.length;u<g;u++)-1<h.indexOf(_[u])?c[_[u]]=!0:delete c[_[u]];if(-1!==o.indexOf("up"))for(;n&&n.id!==E.jstree.root;){for(u=r=0,g=n.children.length;u<g;u++)r+=a[n.children[u]].state[d?"selected":"checked"];if(r!==g)break;n.state[d?"selected":"checked"]=!0,c[n.id]=!0,(i=this.get_node(n,!0))&&i.length&&i.attr("aria-selected",!0).children(".jstree-anchor").addClass(d?"jstree-clicked":"jstree-checked"),n=this.get_node(n.parent)}for(u in l=[],c)c.hasOwnProperty(u)&&l.push(u);this._data[d?"core":"checkbox"].selected=l},this)).on(this.settings.checkbox.tie_selection?"deselect_all.jstree":"uncheck_all.jstree",E.proxy(function(e,t){for(var r,i=this.get_node(E.jstree.root),s=this._model.data,a=0,n=i.children_d.length;a<n;a++)(r=s[i.children_d[a]])&&r.original&&r.original.state&&r.original.state.undetermined&&(r.original.state.undetermined=!1)},this)).on(this.settings.checkbox.tie_selection?"deselect_node.jstree":"uncheck_node.jstree",E.proxy(function(e,t){var r,i,s,a,n=t.node,o=(this.get_node(n,!0),this.settings.checkbox.cascade),d=this.settings.checkbox.tie_selection,c=this._data[d?"core":"checkbox"].selected,l=n.children_d.concat(n.id);if(-1!==o.indexOf("down")&&(a=this._cascade_new_checked_state(n.id,!1),c=E.vakata.array_filter(c,function(e){return-1===l.indexOf(e)||-1<a.indexOf(e)})),-1!==o.indexOf("up")&&-1===c.indexOf(n.id)){for(r=0,i=n.parents.length;r<i;r++)(s=this._model.data[n.parents[r]]).state[d?"selected":"checked"]=!1,s&&s.original&&s.original.state&&s.original.state.undetermined&&(s.original.state.undetermined=!1),(s=this.get_node(n.parents[r],!0))&&s.length&&s.attr("aria-selected",!1).children(".jstree-anchor").removeClass(d?"jstree-clicked":"jstree-checked");c=E.vakata.array_filter(c,function(e){return-1===n.parents.indexOf(e)})}this._data[d?"core":"checkbox"].selected=c},this)),-1!==this.settings.checkbox.cascade.indexOf("up")&&this.element.on("delete_node.jstree",E.proxy(function(e,t){for(var r,i,s,a,n=this.get_node(t.parent),o=this._model.data,d=this.settings.checkbox.tie_selection;n&&n.id!==E.jstree.root&&!n.state[d?"selected":"checked"];){for(r=s=0,i=n.children.length;r<i;r++)s+=o[n.children[r]].state[d?"selected":"checked"];if(!(0<i&&s===i))break;n.state[d?"selected":"checked"]=!0,this._data[d?"core":"checkbox"].selected.push(n.id),(a=this.get_node(n,!0))&&a.length&&a.attr("aria-selected",!0).children(".jstree-anchor").addClass(d?"jstree-clicked":"jstree-checked"),n=this.get_node(n.parent)}},this)).on("move_node.jstree",E.proxy(function(e,t){var r,i,s,a,n,o=t.is_multi,d=t.old_parent,c=this.get_node(t.parent),l=this._model.data,h=this.settings.checkbox.tie_selection;if(!o)for(r=this.get_node(d);r&&r.id!==E.jstree.root&&!r.state[h?"selected":"checked"];){for(s=i=0,a=r.children.length;s<a;s++)i+=l[r.children[s]].state[h?"selected":"checked"];if(!(0<a&&i===a))break;r.state[h?"selected":"checked"]=!0,this._data[h?"core":"checkbox"].selected.push(r.id),(n=this.get_node(r,!0))&&n.length&&n.attr("aria-selected",!0).children(".jstree-anchor").addClass(h?"jstree-clicked":"jstree-checked"),r=this.get_node(r.parent)}for(r=c;r&&r.id!==E.jstree.root;){for(s=i=0,a=r.children.length;s<a;s++)i+=l[r.children[s]].state[h?"selected":"checked"];if(i===a)r.state[h?"selected":"checked"]||(r.state[h?"selected":"checked"]=!0,this._data[h?"core":"checkbox"].selected.push(r.id),(n=this.get_node(r,!0))&&n.length&&n.attr("aria-selected",!0).children(".jstree-anchor").addClass(h?"jstree-clicked":"jstree-checked"));else{if(!r.state[h?"selected":"checked"])break;r.state[h?"selected":"checked"]=!1,this._data[h?"core":"checkbox"].selected=E.vakata.array_remove_item(this._data[h?"core":"checkbox"].selected,r.id),(n=this.get_node(r,!0))&&n.length&&n.attr("aria-selected",!1).children(".jstree-anchor").removeClass(h?"jstree-clicked":"jstree-checked")}r=this.get_node(r.parent)}},this))},this.get_undetermined=function(e){if(-1===this.settings.checkbox.cascade.indexOf("undetermined"))return[];for(var r,i,s={},a=this._model.data,t=this.settings.checkbox.tie_selection,n=this._data[t?"core":"checkbox"].selected,o=[],d=this,c=[],l=0,h=n.length;l<h;l++)if(a[n[l]]&&a[n[l]].parents)for(r=0,i=a[n[l]].parents.length;r<i&&s[a[n[l]].parents[r]]===P;r++)a[n[l]].parents[r]!==E.jstree.root&&(s[a[n[l]].parents[r]]=!0,o.push(a[n[l]].parents[r]));for(this.element.find(".jstree-closed").not(":has(.jstree-children)").each(function(){var e,t=d.get_node(this);if(t)if(t.state.loaded){for(l=0,h=t.children_d.length;l<h;l++)if(!(e=a[t.children_d[l]]).state.loaded&&e.original&&e.original.state&&e.original.state.undetermined&&!0===e.original.state.undetermined)for(s[e.id]===P&&e.id!==E.jstree.root&&(s[e.id]=!0,o.push(e.id)),r=0,i=e.parents.length;r<i;r++)s[e.parents[r]]===P&&e.parents[r]!==E.jstree.root&&(s[e.parents[r]]=!0,o.push(e.parents[r]))}else if(t.original&&t.original.state&&t.original.state.undetermined&&!0===t.original.state.undetermined)for(s[t.id]===P&&t.id!==E.jstree.root&&(s[t.id]=!0,o.push(t.id)),r=0,i=t.parents.length;r<i;r++)s[t.parents[r]]===P&&t.parents[r]!==E.jstree.root&&(s[t.parents[r]]=!0,o.push(t.parents[r]))}),l=0,h=o.length;l<h;l++)a[o[l]].state[t?"selected":"checked"]||c.push(e?a[o[l]]:o[l]);return c},this._undetermined=function(){if(null!==this.element){var e,t,r,i=this.get_undetermined(!1);for(this.element.find(".jstree-undetermined").removeClass("jstree-undetermined"),e=0,t=i.length;e<t;e++)(r=this.get_node(i[e],!0))&&r.length&&r.children(".jstree-anchor").children(".jstree-checkbox").addClass("jstree-undetermined")}},this.redraw_node=function(e,t,r,i){if(e=d.redraw_node.apply(this,arguments)){for(var s=null,a=null,n=0,o=e.childNodes.length;n<o;n++)if(e.childNodes[n]&&e.childNodes[n].className&&-1!==e.childNodes[n].className.indexOf("jstree-anchor")){s=e.childNodes[n];break}s&&(!this.settings.checkbox.tie_selection&&this._model.data[e.id].state.checked&&(s.className+=" jstree-checked"),a=p.cloneNode(!1),this._model.data[e.id].state.checkbox_disabled&&(a.className+=" jstree-checkbox-disabled"),s.insertBefore(a,s.childNodes[0]))}return r||-1===this.settings.checkbox.cascade.indexOf("undetermined")||(this._data.checkbox.uto&&clearTimeout(this._data.checkbox.uto),this._data.checkbox.uto=setTimeout(E.proxy(this._undetermined,this),50)),e},this.show_checkboxes=function(){this._data.core.themes.checkboxes=!0,this.get_container_ul().removeClass("jstree-no-checkboxes")},this.hide_checkboxes=function(){this._data.core.themes.checkboxes=!1,this.get_container_ul().addClass("jstree-no-checkboxes")},this.toggle_checkboxes=function(){this._data.core.themes.checkboxes?this.hide_checkboxes():this.show_checkboxes()},this.is_undetermined=function(e){e=this.get_node(e);var t,r,i=this.settings.checkbox.cascade,s=this.settings.checkbox.tie_selection,a=this._data[s?"core":"checkbox"].selected,n=this._model.data;if(!e||!0===e.state[s?"selected":"checked"]||-1===i.indexOf("undetermined")||-1===i.indexOf("down")&&-1===i.indexOf("up"))return!1;if(!e.state.loaded&&!0===e.original.state.undetermined)return!0;for(t=0,r=e.children_d.length;t<r;t++)if(-1!==E.inArray(e.children_d[t],a)||!n[e.children_d[t]].state.loaded&&n[e.children_d[t]].original.state.undetermined)return!0;return!1},this.disable_checkbox=function(e){var t,r,i;if(Array.isArray(e)){for(t=0,r=(e=e.slice()).length;t<r;t++)this.disable_checkbox(e[t]);return!0}if(!(e=this.get_node(e))||e.id===E.jstree.root)return!1;i=this.get_node(e,!0),e.state.checkbox_disabled||(e.state.checkbox_disabled=!0,i&&i.length&&i.children(".jstree-anchor").children(".jstree-checkbox").addClass("jstree-checkbox-disabled"),this.trigger("disable_checkbox",{node:e}))},this.enable_checkbox=function(e){var t,r,i;if(Array.isArray(e)){for(t=0,r=(e=e.slice()).length;t<r;t++)this.enable_checkbox(e[t]);return!0}if(!(e=this.get_node(e))||e.id===E.jstree.root)return!1;i=this.get_node(e,!0),e.state.checkbox_disabled&&(e.state.checkbox_disabled=!1,i&&i.length&&i.children(".jstree-anchor").children(".jstree-checkbox").removeClass("jstree-checkbox-disabled"),this.trigger("enable_checkbox",{node:e}))},this.activate_node=function(e,t){return!E(t.target).hasClass("jstree-checkbox-disabled")&&(this.settings.checkbox.tie_selection&&(this.settings.checkbox.whole_node||E(t.target).hasClass("jstree-checkbox"))&&(t.ctrlKey=!0),this.settings.checkbox.tie_selection||!this.settings.checkbox.whole_node&&!E(t.target).hasClass("jstree-checkbox")?d.activate_node.call(this,e,t):!this.is_disabled(e)&&(this.is_checked(e)?this.uncheck_node(e,t):this.check_node(e,t),void this.trigger("activate_node",{node:this.get_node(e)})))},this._cascade_new_checked_state=function(e,t){var r,i,s=this.settings.checkbox.tie_selection,a=this._model.data[e],n=[],o=[];if(!this.settings.checkbox.cascade_to_disabled&&a.state.disabled||!this.settings.checkbox.cascade_to_hidden&&a.state.hidden)c=this.get_checked_descendants(e),a.state[s?"selected":"checked"]&&c.push(a.id),n=n.concat(c);else{if(a.children)for(r=0,i=a.children.length;r<i;r++){var d=a.children[r],c=this._cascade_new_checked_state(d,t),n=n.concat(c);-1<c.indexOf(d)&&o.push(d)}var l=this.get_node(a,!0),h=0<o.length&&o.length<a.children.length;a.original&&a.original.state&&a.original.state.undetermined&&(a.original.state.undetermined=h),!h&&t&&o.length===a.children.length?(a.state[s?"selected":"checked"]=t,n.push(a.id),l.attr("aria-selected",!0).children(".jstree-anchor").addClass(s?"jstree-clicked":"jstree-checked")):(a.state[s?"selected":"checked"]=!1,l.attr("aria-selected",!1).children(".jstree-anchor").removeClass(s?"jstree-clicked":"jstree-checked"))}return n},this.get_checked_descendants=function(e){var t=this,r=t.settings.checkbox.tie_selection,i=t._model.data[e];return E.vakata.array_filter(i.children_d,function(e){return t._model.data[e].state[r?"selected":"checked"]})},this.check_node=function(e,t){if(this.settings.checkbox.tie_selection)return this.select_node(e,!1,!0,t);var r,i,s;if(Array.isArray(e)){for(i=0,s=(e=e.slice()).length;i<s;i++)this.check_node(e[i],t);return!0}if(!(e=this.get_node(e))||e.id===E.jstree.root)return!1;r=this.get_node(e,!0),e.state.checked||(e.state.checked=!0,this._data.checkbox.selected.push(e.id),r&&r.length&&r.children(".jstree-anchor").addClass("jstree-checked"),this.trigger("check_node",{node:e,selected:this._data.checkbox.selected,event:t}))},this.uncheck_node=function(e,t){if(this.settings.checkbox.tie_selection)return this.deselect_node(e,!1,t);var r,i,s;if(Array.isArray(e)){for(r=0,i=(e=e.slice()).length;r<i;r++)this.uncheck_node(e[r],t);return!0}if(!(e=this.get_node(e))||e.id===E.jstree.root)return!1;s=this.get_node(e,!0),e.state.checked&&(e.state.checked=!1,this._data.checkbox.selected=E.vakata.array_remove_item(this._data.checkbox.selected,e.id),s.length&&s.children(".jstree-anchor").removeClass("jstree-checked"),this.trigger("uncheck_node",{node:e,selected:this._data.checkbox.selected,event:t}))},this.check_all=function(){if(this.settings.checkbox.tie_selection)return this.select_all();var e,t;this._data.checkbox.selected.concat([]);for(this._data.checkbox.selected=this._model.data[E.jstree.root].children_d.concat(),e=0,t=this._data.checkbox.selected.length;e<t;e++)this._model.data[this._data.checkbox.selected[e]]&&(this._model.data[this._data.checkbox.selected[e]].state.checked=!0);this.redraw(!0),this.trigger("check_all",{selected:this._data.checkbox.selected})},this.uncheck_all=function(){if(this.settings.checkbox.tie_selection)return this.deselect_all();for(var e=this._data.checkbox.selected.concat([]),t=0,r=this._data.checkbox.selected.length;t<r;t++)this._model.data[this._data.checkbox.selected[t]]&&(this._model.data[this._data.checkbox.selected[t]].state.checked=!1);this._data.checkbox.selected=[],this.element.find(".jstree-checked").removeClass("jstree-checked"),this.trigger("uncheck_all",{selected:this._data.checkbox.selected,node:e})},this.is_checked=function(e){return this.settings.checkbox.tie_selection?this.is_selected(e):!(!(e=this.get_node(e))||e.id===E.jstree.root)&&e.state.checked},this.get_checked=function(e){return this.settings.checkbox.tie_selection?this.get_selected(e):e?E.map(this._data.checkbox.selected,E.proxy(function(e){return this.get_node(e)},this)):this._data.checkbox.selected.slice()},this.get_top_checked=function(e){if(this.settings.checkbox.tie_selection)return this.get_top_selected(e);for(var t,r,i=this.get_checked(!0),s={},a=0,n=i.length;a<n;a++)s[i[a].id]=i[a];for(a=0,n=i.length;a<n;a++)for(t=0,r=i[a].children_d.length;t<r;t++)s[i[a].children_d[t]]&&delete s[i[a].children_d[t]];for(a in i=[],s)s.hasOwnProperty(a)&&i.push(a);return e?E.map(i,E.proxy(function(e){return this.get_node(e)},this)):i},this.get_bottom_checked=function(e){if(this.settings.checkbox.tie_selection)return this.get_bottom_selected(e);for(var t=this.get_checked(!0),r=[],i=0,s=t.length;i<s;i++)t[i].children.length||r.push(t[i].id);return e?E.map(r,E.proxy(function(e){return this.get_node(e)},this)):r},this.load_node=function(e,t){var r,i,s;if(!Array.isArray(e)&&!this.settings.checkbox.tie_selection&&(s=this.get_node(e))&&s.state.loaded)for(r=0,i=s.children_d.length;r<i;r++)this._model.data[s.children_d[r]].state.checked&&(this._data.checkbox.selected=E.vakata.array_remove_item(this._data.checkbox.selected,s.children_d[r]));return d.load_node.apply(this,arguments)},this.get_state=function(){var e=d.get_state.apply(this,arguments);return this.settings.checkbox.tie_selection||(e.checkbox=this._data.checkbox.selected.slice()),e},this.set_state=function(e,t){var r,i=d.set_state.apply(this,arguments);return i&&e.checkbox?(this.settings.checkbox.tie_selection||(this.uncheck_all(),r=this,E.each(e.checkbox,function(e,t){r.check_node(t)})),delete e.checkbox,this.set_state(e,t),!1):i},this.refresh=function(e,t){return this.settings.checkbox.tie_selection&&(this._data.checkbox.selected=[]),d.refresh.apply(this,arguments)}},E.jstree.defaults.conditionalselect=function(){return!0},E.jstree.plugins.conditionalselect=function(e,r){this.activate_node=function(e,t){if(this.settings.conditionalselect.call(this,this.get_node(e),t))return r.activate_node.call(this,e,t)}},E.jstree.defaults.contextmenu={select_node:!0,show_at_node:!0,items:function(e,t){return{create:{separator_before:!1,separator_after:!0,_disabled:!1,label:"Create",action:function(e){var r=E.jstree.reference(e.reference),t=r.get_node(e.reference);r.create_node(t,{},"last",function(t){try{r.edit(t)}catch(e){setTimeout(function(){r.edit(t)},0)}})}},rename:{separator_before:!1,separator_after:!1,_disabled:!1,label:"Rename",action:function(e){var t=E.jstree.reference(e.reference),r=t.get_node(e.reference);t.edit(r)}},remove:{separator_before:!1,icon:!1,separator_after:!1,_disabled:!1,label:"Delete",action:function(e){var t=E.jstree.reference(e.reference),r=t.get_node(e.reference);t.is_selected(r)?t.delete_node(t.get_selected()):t.delete_node(r)}},ccp:{separator_before:!0,icon:!1,separator_after:!1,label:"Edit",action:!1,submenu:{cut:{separator_before:!1,separator_after:!1,label:"Cut",action:function(e){var t=E.jstree.reference(e.reference),r=t.get_node(e.reference);t.is_selected(r)?t.cut(t.get_top_selected()):t.cut(r)}},copy:{separator_before:!1,icon:!1,separator_after:!1,label:"Copy",action:function(e){var t=E.jstree.reference(e.reference),r=t.get_node(e.reference);t.is_selected(r)?t.copy(t.get_top_selected()):t.copy(r)}},paste:{separator_before:!1,icon:!1,_disabled:function(e){return!E.jstree.reference(e.reference).can_paste()},separator_after:!1,label:"Paste",action:function(e){var t=E.jstree.reference(e.reference),r=t.get_node(e.reference);t.paste(r)}}}}}}},E.jstree.plugins.contextmenu=function(e,a){this.bind=function(){a.bind.call(this);var t,r,i=0,s=null;this.element.on("init.jstree loading.jstree ready.jstree",E.proxy(function(){this.get_container_ul().addClass("jstree-contextmenu")},this)).on("contextmenu.jstree",".jstree-anchor",E.proxy(function(e,t){"input"!==e.target.tagName.toLowerCase()&&(e.preventDefault(),i=e.ctrlKey?+new Date:0,(t||s)&&(i=+new Date+1e4),s&&clearTimeout(s),this.is_loading(e.currentTarget)||this.show_contextmenu(e.currentTarget,e.pageX,e.pageY,e))},this)).on("click.jstree",".jstree-anchor",E.proxy(function(e){this._data.contextmenu.visible&&(!i||250<new Date-i)&&E.vakata.context.hide(),i=0},this)).on("touchstart.jstree",".jstree-anchor",function(e){e.originalEvent&&e.originalEvent.changedTouches&&e.originalEvent.changedTouches[0]&&(t=e.originalEvent.changedTouches[0].clientX,r=e.originalEvent.changedTouches[0].clientY,s=setTimeout(function(){E(e.currentTarget).trigger("contextmenu",!0)},750))}).on("touchmove.vakata.jstree",function(e){s&&e.originalEvent&&e.originalEvent.changedTouches&&e.originalEvent.changedTouches[0]&&(10<Math.abs(t-e.originalEvent.changedTouches[0].clientX)||10<Math.abs(r-e.originalEvent.changedTouches[0].clientY))&&(clearTimeout(s),E.vakata.context.hide())}).on("touchend.vakata.jstree",function(e){s&&clearTimeout(s)}),E(y).on("context_hide.vakata.jstree",E.proxy(function(e,t){this._data.contextmenu.visible=!1,E(t.reference).removeClass("jstree-context")},this))},this.teardown=function(){this._data.contextmenu.visible&&E.vakata.context.hide(),a.teardown.call(this)},this.show_contextmenu=function(t,r,i,e){if(!(t=this.get_node(t))||t.id===E.jstree.root)return!1;var s=this.settings.contextmenu,a=this.get_node(t,!0).children(".jstree-anchor"),n=!1,o=!1;!s.show_at_node&&r!==P&&i!==P||(n=a.offset(),r=n.left,i=n.top+this._data.core.li_height),this.settings.contextmenu.select_node&&!this.is_selected(t)&&this.activate_node(t,e),"function"==typeof(o=s.items)&&(o=o.call(this,t,E.proxy(function(e){this._show_contextmenu(t,r,i,e)},this))),E.isPlainObject(o)&&this._show_contextmenu(t,r,i,o)},this._show_contextmenu=function(e,t,r,i){var s=this.get_node(e,!0).children(".jstree-anchor");E(y).one("context_show.vakata.jstree",E.proxy(function(e,t){var r="jstree-contextmenu jstree-"+this.get_theme()+"-contextmenu";E(t.element).addClass(r),s.addClass("jstree-context")},this)),this._data.contextmenu.visible=!0,E.vakata.context.show(s,{x:t,y:r},i),this.trigger("show_contextmenu",{node:e,x:t,y:r})}},u={element:_=!1,reference:!1,position_x:0,position_y:0,items:[],html:"",is_visible:!1},(h=E).vakata.context={settings:{hide_onmouseleave:0,icons:!0},_trigger:function(e){h(y).triggerHandler("context_"+e+".vakata",{reference:u.reference,element:u.element,position:{x:u.position_x,y:u.position_y}})},_execute:function(e){return!(!(e=u.items[e])||e._disabled&&("function"!=typeof e._disabled||e._disabled({item:e,reference:u.reference,element:u.element}))||!e.action)&&e.action.call(null,{item:e,reference:u.reference,element:u.element,position:{x:u.position_x,y:u.position_y}})},_parse:function(e,t){if(!e)return!1;t||(u.html="",u.items=[]);var r,i="",s=!1;return t&&(i+="<ul>"),h.each(e,function(e,t){return!t||(u.items.push(t),!s&&t.separator_before&&(i+="<li class='vakata-context-separator'><a href='#' "+(h.vakata.context.settings.icons?"":'style="margin-left:0px;"')+"> </a></li>"),s=!1,i+="<li class='"+(t._class||"")+(!0===t._disabled||"function"==typeof t._disabled&&t._disabled({item:t,reference:u.reference,element:u.element})?" vakata-contextmenu-disabled ":"")+"' "+(t.shortcut?" data-shortcut='"+t.shortcut+"' ":"")+">",i+="<a href='#' rel='"+(u.items.length-1)+"' "+(t.title?"title='"+t.title+"'":"")+">",h.vakata.context.settings.icons&&(i+="<i ",t.icon&&(-1!==t.icon.indexOf("/")||-1!==t.icon.indexOf(".")?i+=" style='background:url(\""+t.icon+"\") center center no-repeat' ":i+=" class='"+t.icon+"' "),i+="></i><span class='vakata-contextmenu-sep'> </span>"),i+=("function"==typeof t.label?t.label({item:e,reference:u.reference,element:u.element}):t.label)+(t.shortcut?' <span class="vakata-contextmenu-shortcut vakata-contextmenu-shortcut-'+t.shortcut+'">'+(t.shortcut_label||"")+"</span>":"")+"</a>",t.submenu&&(r=h.vakata.context._parse(t.submenu,!0))&&(i+=r),i+="</li>",void(t.separator_after&&(i+="<li class='vakata-context-separator'><a href='#' "+(h.vakata.context.settings.icons?"":'style="margin-left:0px;"')+"> </a></li>",s=!0)))}),i=i.replace(/<li class\='vakata-context-separator'\><\/li\>$/,""),t&&(i+="</ul>"),t||(u.html=i,h.vakata.context._trigger("parse")),10<i.length&&i},_show_submenu:function(e){var t,r,i,s,a,n,o,d;(e=h(e)).length&&e.children("ul").length&&(t=e.children("ul"),i=(r=e.offset().left)+e.outerWidth(),s=e.offset().top,a=t.width(),n=t.height(),o=h(window).width()+h(window).scrollLeft(),d=h(window).height()+h(window).scrollTop(),_?e[i-(a+10+e.outerWidth())<0?"addClass":"removeClass"]("vakata-context-left"):e[o<i+a&&o-i<r?"addClass":"removeClass"]("vakata-context-right"),d<s+n+10&&t.css("bottom","-1px"),e.hasClass("vakata-context-right")?r<a&&t.css("margin-right",r-a):o-i<a&&t.css("margin-left",o-i-a),t.show())},show:function(e,t,r){var i,s,a,n,o,d,c,l;switch(u.element&&u.element.length&&u.element.width(""),!0){case!t&&!e:return!1;case!!t&&!!e:u.reference=e,u.position_x=t.x,u.position_y=t.y;break;case!t&&!!e:i=(u.reference=e).offset(),u.position_x=i.left+e.outerHeight(),u.position_y=i.top;break;case!!t&&!e:u.position_x=t.x,u.position_y=t.y}e&&!r&&h(e).data("vakata_contextmenu")&&(r=h(e).data("vakata_contextmenu")),h.vakata.context._parse(r)&&u.element.html(u.html),u.items.length&&(u.element.appendTo(y.body),s=u.element,a=u.position_x,n=u.position_y,o=s.width(),d=s.height(),c=h(window).width()+h(window).scrollLeft(),l=h(window).height()+h(window).scrollTop(),_&&(a-=s.outerWidth()-h(e).outerWidth())<h(window).scrollLeft()+20&&(a=h(window).scrollLeft()+20),c<a+o+20&&(a=c-(o+20)),l<n+d+20&&(n=l-(d+20)),u.element.css({left:a,top:n}).show().find("a").first().focus().parent().addClass("vakata-context-hover"),u.is_visible=!0,h.vakata.context._trigger("show"))},hide:function(){u.is_visible&&(u.element.hide().find("ul").hide().end().find(":focus").blur().end().detach(),u.is_visible=!1,h.vakata.context._trigger("hide"))}},h(function(){_="rtl"===h(y.body).css("direction");var t=!1;u.element=h("<ul class='vakata-context'></ul>"),u.element.on("mouseenter","li",function(e){e.stopImmediatePropagation(),h.contains(this,e.relatedTarget)||(t&&clearTimeout(t),u.element.find(".vakata-context-hover").removeClass("vakata-context-hover").end(),h(this).siblings().find("ul").hide().end().end().parentsUntil(".vakata-context","li").addBack().addClass("vakata-context-hover"),h.vakata.context._show_submenu(this))}).on("mouseleave","li",function(e){h.contains(this,e.relatedTarget)||h(this).find(".vakata-context-hover").addBack().removeClass("vakata-context-hover")}).on("mouseleave",function(e){h(this).find(".vakata-context-hover").removeClass("vakata-context-hover"),h.vakata.context.settings.hide_onmouseleave&&(t=setTimeout(function(){h.vakata.context.hide()},h.vakata.context.settings.hide_onmouseleave))}).on("click","a",function(e){e.preventDefault(),h(this).trigger("blur").parent().hasClass("vakata-context-disabled")||!1===h.vakata.context._execute(h(this).attr("rel"))||h.vakata.context.hide()}).on("keydown","a",function(e){var t=null;switch(e.which){case 13:case 32:e.type="click",e.preventDefault(),h(e.currentTarget).trigger(e);break;case 37:u.is_visible&&(u.element.find(".vakata-context-hover").last().closest("li").first().find("ul").hide().find(".vakata-context-hover").removeClass("vakata-context-hover").end().end().children("a").focus(),e.stopImmediatePropagation(),e.preventDefault());break;case 38:u.is_visible&&((t=u.element.find("ul:visible").addBack().last().children(".vakata-context-hover").removeClass("vakata-context-hover").prevAll("li:not(.vakata-context-separator)").first()).length||(t=u.element.find("ul:visible").addBack().last().children("li:not(.vakata-context-separator)").last()),t.addClass("vakata-context-hover").children("a").focus(),e.stopImmediatePropagation(),e.preventDefault());break;case 39:u.is_visible&&(u.element.find(".vakata-context-hover").last().children("ul").show().children("li:not(.vakata-context-separator)").removeClass("vakata-context-hover").first().addClass("vakata-context-hover").children("a").focus(),e.stopImmediatePropagation(),e.preventDefault());break;case 40:u.is_visible&&((t=u.element.find("ul:visible").addBack().last().children(".vakata-context-hover").removeClass("vakata-context-hover").nextAll("li:not(.vakata-context-separator)").first()).length||(t=u.element.find("ul:visible").addBack().last().children("li:not(.vakata-context-separator)").first()),t.addClass("vakata-context-hover").children("a").focus(),e.stopImmediatePropagation(),e.preventDefault());break;case 27:h.vakata.context.hide(),e.preventDefault()}}).on("keydown",function(e){e.preventDefault();var t=u.element.find(".vakata-contextmenu-shortcut-"+e.which).parent();t.parent().not(".vakata-context-disabled")&&t.trigger("click")}),h(y).on("mousedown.vakata.jstree",function(e){u.is_visible&&u.element[0]!==e.target&&!h.contains(u.element[0],e.target)&&h.vakata.context.hide()}).on("context_show.vakata.jstree",function(e,t){u.element.find("li:has(ul)").children("a").addClass("vakata-context-parent"),_&&u.element.addClass("vakata-context-rtl").css("direction","rtl"),u.element.find("ul").hide().end()})}),E.jstree.defaults.dnd={copy:!0,open_timeout:500,is_draggable:!0,check_while_dragging:!0,always_copy:!1,inside_pos:0,drag_selection:!0,touch:!0,large_drop_target:!1,large_drag_target:!1,use_html5:!1},E.jstree.plugins.dnd=function(e,o){this.init=function(e,t){o.init.call(this,e,t),this.settings.dnd.use_html5=this.settings.dnd.use_html5&&"draggable"in y.createElement("span")},this.bind=function(){o.bind.call(this),this.element.on(this.settings.dnd.use_html5?"dragstart.jstree":"mousedown.jstree touchstart.jstree",this.settings.dnd.large_drag_target?".jstree-node":".jstree-anchor",E.proxy(function(e){if(this.settings.dnd.large_drag_target&&E(e.target).closest(".jstree-node")[0]!==e.currentTarget)return!0;if("touchstart"===e.type&&(!this.settings.dnd.touch||"selected"===this.settings.dnd.touch&&!E(e.currentTarget).closest(".jstree-node").children(".jstree-anchor").hasClass("jstree-clicked")))return!0;var t=this.get_node(e.target),r=this.is_selected(t)&&this.settings.dnd.drag_selection?this.get_top_selected().length:1,i=1<r?r+" "+this.get_string("nodes"):this.get_text(e.currentTarget);if(this.settings.core.force_text&&(i=E.vakata.html.escape(i)),t&&t.id&&t.id!==E.jstree.root&&(1===e.which||"touchstart"===e.type||"dragstart"===e.type)&&(!0===this.settings.dnd.is_draggable||"function"==typeof this.settings.dnd.is_draggable&&this.settings.dnd.is_draggable.call(this,1<r?this.get_top_selected(!0):[t],e))){if(d={jstree:!0,origin:this,obj:this.get_node(t,!0),nodes:1<r?this.get_top_selected():[t.id]},l=e.currentTarget,!this.settings.dnd.use_html5)return this.element.trigger("mousedown.jstree"),E.vakata.dnd.start(e,d,'<div id="jstree-dnd" class="jstree-'+this.get_theme()+" jstree-"+this.get_theme()+"-"+this.get_theme_variant()+" "+(this.settings.core.themes.responsive?" jstree-dnd-responsive":"")+'"><i class="jstree-icon jstree-er"></i>'+i+'<ins class="jstree-copy" style="display:none;">+</ins></div>');E.vakata.dnd._trigger("start",e,{helper:E(),element:l,data:d})}},this)),this.settings.dnd.use_html5&&this.element.on("dragover.jstree",function(e){return e.preventDefault(),E.vakata.dnd._trigger("move",e,{helper:E(),element:l,data:d}),!1}).on("drop.jstree",E.proxy(function(e){return e.preventDefault(),E.vakata.dnd._trigger("stop",e,{helper:E(),element:l,data:d}),!1},this))},this.redraw_node=function(e,t,r,i){if((e=o.redraw_node.apply(this,arguments))&&this.settings.dnd.use_html5)if(this.settings.dnd.large_drag_target)e.setAttribute("draggable",!0);else{for(var s=null,a=0,n=e.childNodes.length;a<n;a++)if(e.childNodes[a]&&e.childNodes[a].className&&-1!==e.childNodes[a].className.indexOf("jstree-anchor")){s=e.childNodes[a];break}s&&s.setAttribute("draggable",!0)}return e}},E(function(){var A=!1,N=!1,T=!1,O=!1,S=E('<div id="jstree-marker"> </div>').hide();E(y).on("dragover.vakata.jstree",function(e){l&&E.vakata.dnd._trigger("move",e,{helper:E(),element:l,data:d})}).on("drop.vakata.jstree",function(e){l&&(E.vakata.dnd._trigger("stop",e,{helper:E(),element:l,data:d}),d=l=null)}).on("dnd_start.vakata.jstree",function(e,t){T=A=!1,t&&t.data&&t.data.jstree&&S.appendTo(y.body)}).on("dnd_move.vakata.jstree",function(e,s){var a=s.event.target!==T.target;if(O&&(s.event&&"dragover"===s.event.type&&!a||clearTimeout(O)),s&&s.data&&s.data.jstree&&(!s.event.target.id||"jstree-marker"!==s.event.target.id)){T=s.event;var n,o,d,c,l,h,_,u,g,f,p,m,v,j,y,k,x,b=E.jstree.reference(s.event.target),w=!1,C=!1,t=!1;if(b&&b._data&&b._data.dnd)if(S.attr("class","jstree-"+b.get_theme()+(b.settings.core.themes.responsive?" jstree-dnd-responsive":"")),y=s.data.origin&&(s.data.origin.settings.dnd.always_copy||s.data.origin.settings.dnd.copy&&(s.event.metaKey||s.event.ctrlKey)),s.helper.children().attr("class","jstree-"+b.get_theme()+" jstree-"+b.get_theme()+"-"+b.get_theme_variant()+" "+(b.settings.core.themes.responsive?" jstree-dnd-responsive":"")).find(".jstree-copy").first()[y?"show":"hide"](),s.event.target!==b.element[0]&&s.event.target!==b.get_container_ul()[0]||0!==b.get_container_ul().children().length){if((w=b.settings.dnd.large_drop_target?E(s.event.target).closest(".jstree-node").children(".jstree-anchor"):E(s.event.target).closest(".jstree-anchor"))&&w.length&&w.parent().is(".jstree-closed, .jstree-open, .jstree-leaf")&&(C=w.offset(),t=(s.event.pageY!==P?s.event.pageY:s.event.originalEvent.pageY)-C.top,d=w.outerHeight(),h=t<d/3?["b","i","a"]:d-d/3<t?["a","i","b"]:d/2<t?["i","a","b"]:["i","b","a"],E.each(h,function(e,t){switch(t){case"b":n=C.left-6,o=C.top,c=b.get_parent(w),l=w.parent().index(),x="jstree-below";break;case"i":v=b.settings.dnd.inside_pos,j=b.get_node(w.parent()),n=C.left-2,o=C.top+d/2+1,c=j.id,l="first"===v?0:"last"===v?j.children.length:Math.min(v,j.children.length),x="jstree-inside";break;case"a":n=C.left-6,o=C.top+d,c=b.get_parent(w),l=w.parent().index()+1,x="jstree-above"}for(_=!0,u=0,g=s.data.nodes.length;u<g;u++)if(f=s.data.origin&&(s.data.origin.settings.dnd.always_copy||s.data.origin.settings.dnd.copy&&(s.event.metaKey||s.event.ctrlKey))?"copy_node":"move_node",p=l,"move_node"==f&&"a"===t&&s.data.origin&&s.data.origin===b&&c===b.get_parent(s.data.nodes[u])&&(m=b.get_node(c),p>E.inArray(s.data.nodes[u],m.children)&&--p),!(_=_&&(b&&b.settings&&b.settings.dnd&&!1===b.settings.dnd.check_while_dragging||b.check(f,s.data.origin&&s.data.origin!==b?s.data.origin.get_node(s.data.nodes[u]):s.data.nodes[u],c,p,{dnd:!0,ref:b.get_node(w.parent()),pos:t,origin:s.data.origin,is_multi:s.data.origin&&s.data.origin!==b,is_foreign:!s.data.origin})))){b&&b.last_error&&(N=b.last_error());break}var r,i;if("i"===t&&w.parent().is(".jstree-closed")&&b.settings.dnd.open_timeout&&(s.event&&"dragover"===s.event.type&&!a||(O&&clearTimeout(O),O=setTimeout((i=w,function(){r.open_node(i)}),(r=b).settings.dnd.open_timeout))),_)return(k=b.get_node(c,!0)).hasClass(".jstree-dnd-parent")||(E(".jstree-dnd-parent").removeClass("jstree-dnd-parent"),k.addClass("jstree-dnd-parent")),A={ins:b,par:c,pos:"i"!==t||"last"!==v||0!==l||b.is_loaded(j)?l:"last"},S.css({left:n+"px",top:o+"px"}).show(),S.removeClass("jstree-above jstree-inside jstree-below").addClass(x),s.helper.find(".jstree-icon").first().removeClass("jstree-er").addClass("jstree-ok"),s.event.originalEvent&&s.event.originalEvent.dataTransfer&&(s.event.originalEvent.dataTransfer.dropEffect=y?"copy":"move"),N={},!(h=!0)}),!0===h))return}else{for(_=!0,u=0,g=s.data.nodes.length;u<g&&(_=_&&b.check(s.data.origin&&(s.data.origin.settings.dnd.always_copy||s.data.origin.settings.dnd.copy&&(s.event.metaKey||s.event.ctrlKey))?"copy_node":"move_node",s.data.origin&&s.data.origin!==b?s.data.origin.get_node(s.data.nodes[u]):s.data.nodes[u],E.jstree.root,"last",{dnd:!0,ref:b.get_node(E.jstree.root),pos:"i",origin:s.data.origin,is_multi:s.data.origin&&s.data.origin!==b,is_foreign:!s.data.origin}));u++);if(_)return A={ins:b,par:E.jstree.root,pos:"last"},S.hide(),s.helper.find(".jstree-icon").first().removeClass("jstree-er").addClass("jstree-ok"),void(s.event.originalEvent&&s.event.originalEvent.dataTransfer&&(s.event.originalEvent.dataTransfer.dropEffect=y?"copy":"move"))}E(".jstree-dnd-parent").removeClass("jstree-dnd-parent"),A=!1,s.helper.find(".jstree-icon").removeClass("jstree-ok").addClass("jstree-er"),s.event.originalEvent&&s.event.originalEvent.dataTransfer,S.hide()}}).on("dnd_scroll.vakata.jstree",function(e,t){t&&t.data&&t.data.jstree&&(S.hide(),T=A=!1,t.helper.find(".jstree-icon").first().removeClass("jstree-ok").addClass("jstree-er"))}).on("dnd_stop.vakata.jstree",function(e,t){if(E(".jstree-dnd-parent").removeClass("jstree-dnd-parent"),O&&clearTimeout(O),t&&t.data&&t.data.jstree){S.hide().detach();var r,i,s=[];if(A){for(r=0,i=t.data.nodes.length;r<i;r++)s[r]=t.data.origin?t.data.origin.get_node(t.data.nodes[r]):t.data.nodes[r];A.ins[t.data.origin&&(t.data.origin.settings.dnd.always_copy||t.data.origin.settings.dnd.copy&&(t.event.metaKey||t.event.ctrlKey))?"copy_node":"move_node"](s,A.par,A.pos,!1,!1,!1,t.data.origin)}else(r=E(t.event.target).closest(".jstree")).length&&N&&N.error&&"check"===N.error&&(r=r.jstree(!0))&&r.settings.core.error.call(this,N);A=T=!1}}).on("keyup.jstree keydown.jstree",function(e,t){(t=E.vakata.dnd._get())&&t.data&&t.data.jstree&&("keyup"===e.type&&27===e.which?(O&&clearTimeout(O),O=T=N=A=!1,S.hide().detach(),E.vakata.dnd._clean()):(t.helper.find(".jstree-copy").first()[t.data.origin&&(t.data.origin.settings.dnd.always_copy||t.data.origin.settings.dnd.copy&&(e.metaKey||e.ctrlKey))?"show":"hide"](),T&&(T.metaKey=e.metaKey,T.ctrlKey=e.ctrlKey,E.vakata.dnd._trigger("move",T))))})}),f={element:!((g=E).vakata.html={div:g("<div></div>"),escape:function(e){return g.vakata.html.div.text(e).html()},strip:function(e){return g.vakata.html.div.empty().append(g.parseHTML(e)).text()}}),target:!1,is_down:!1,is_drag:!1,helper:!1,helper_w:0,data:!1,init_x:0,init_y:0,scroll_l:0,scroll_t:0,scroll_e:!1,scroll_i:!1,is_touch:!1},g.vakata.dnd={settings:{scroll_speed:10,scroll_proximity:20,helper_left:5,helper_top:10,threshold:5,threshold_touch:10},_trigger:function(e,t,r){r===P&&(r=g.vakata.dnd._get()),r.event=t,g(y).triggerHandler("dnd_"+e+".vakata",r)},_get:function(){return{data:f.data,element:f.element,helper:f.helper}},_clean:function(){f.helper&&f.helper.remove(),f.scroll_i&&(clearInterval(f.scroll_i),f.scroll_i=!1),f={element:!1,target:!1,is_down:!1,is_drag:!1,helper:!1,helper_w:0,data:!1,init_x:0,init_y:0,scroll_l:0,scroll_t:0,scroll_e:!1,scroll_i:!1,is_touch:!1},l=null,g(y).off("mousemove.vakata.jstree touchmove.vakata.jstree",g.vakata.dnd.drag),g(y).off("mouseup.vakata.jstree touchend.vakata.jstree",g.vakata.dnd.stop)},_scroll:function(e){if(!f.scroll_e||!f.scroll_l&&!f.scroll_t)return f.scroll_i&&(clearInterval(f.scroll_i),f.scroll_i=!1),!1;if(!f.scroll_i)return f.scroll_i=setInterval(g.vakata.dnd._scroll,100),!1;if(!0===e)return!1;var t=f.scroll_e.scrollTop(),r=f.scroll_e.scrollLeft();f.scroll_e.scrollTop(t+f.scroll_t*g.vakata.dnd.settings.scroll_speed),f.scroll_e.scrollLeft(r+f.scroll_l*g.vakata.dnd.settings.scroll_speed),t===f.scroll_e.scrollTop()&&r===f.scroll_e.scrollLeft()||g.vakata.dnd._trigger("scroll",f.scroll_e)},start:function(e,t,r){"touchstart"===e.type&&e.originalEvent&&e.originalEvent.changedTouches&&e.originalEvent.changedTouches[0]&&(e.pageX=e.originalEvent.changedTouches[0].pageX,e.pageY=e.originalEvent.changedTouches[0].pageY,e.target=y.elementFromPoint(e.originalEvent.changedTouches[0].pageX-window.pageXOffset,e.originalEvent.changedTouches[0].pageY-window.pageYOffset)),f.is_drag&&g.vakata.dnd.stop({});try{e.currentTarget.unselectable="on",e.currentTarget.onselectstart=function(){return!1},e.currentTarget.style&&(e.currentTarget.style.touchAction="none",e.currentTarget.style.msTouchAction="none",e.currentTarget.style.MozUserSelect="none")}catch(e){}return f.init_x=e.pageX,f.init_y=e.pageY,f.data=t,f.is_down=!0,f.element=e.currentTarget,f.target=e.target,f.is_touch="touchstart"===e.type,!1!==r&&(f.helper=g("<div id='vakata-dnd'></div>").html(r).css({display:"block",margin:"0",padding:"0",position:"absolute",top:"-2000px",lineHeight:"16px",zIndex:"10000"})),g(y).on("mousemove.vakata.jstree touchmove.vakata.jstree",g.vakata.dnd.drag),g(y).on("mouseup.vakata.jstree touchend.vakata.jstree",g.vakata.dnd.stop),!1},drag:function(r){if("touchmove"===r.type&&r.originalEvent&&r.originalEvent.changedTouches&&r.originalEvent.changedTouches[0]&&(r.pageX=r.originalEvent.changedTouches[0].pageX,r.pageY=r.originalEvent.changedTouches[0].pageY,r.target=y.elementFromPoint(r.originalEvent.changedTouches[0].pageX-window.pageXOffset,r.originalEvent.changedTouches[0].pageY-window.pageYOffset)),f.is_down){if(!f.is_drag){if(!(Math.abs(r.pageX-f.init_x)>(f.is_touch?g.vakata.dnd.settings.threshold_touch:g.vakata.dnd.settings.threshold)||Math.abs(r.pageY-f.init_y)>(f.is_touch?g.vakata.dnd.settings.threshold_touch:g.vakata.dnd.settings.threshold)))return;f.helper&&(f.helper.appendTo(y.body),f.helper_w=f.helper.outerWidth()),f.is_drag=!0,g(f.target).one("click.vakata",!1),g.vakata.dnd._trigger("start",r)}var e=!1,t=!1,i=!1,s=!1,a=!1,n=!1,o=!1,d=!1,c=!1,l=!1;return f.scroll_t=0,f.scroll_l=0,f.scroll_e=!1,g(g(r.target).parentsUntil("body").addBack().get().reverse()).filter(function(){return/^auto|scroll$/.test(g(this).css("overflow"))&&(this.scrollHeight>this.offsetHeight||this.scrollWidth>this.offsetWidth)}).each(function(){var e=g(this),t=e.offset();if(this.scrollHeight>this.offsetHeight&&(t.top+e.height()-r.pageY<g.vakata.dnd.settings.scroll_proximity&&(f.scroll_t=1),r.pageY-t.top<g.vakata.dnd.settings.scroll_proximity&&(f.scroll_t=-1)),this.scrollWidth>this.offsetWidth&&(t.left+e.width()-r.pageX<g.vakata.dnd.settings.scroll_proximity&&(f.scroll_l=1),r.pageX-t.left<g.vakata.dnd.settings.scroll_proximity&&(f.scroll_l=-1)),f.scroll_t||f.scroll_l)return f.scroll_e=g(this),!1}),f.scroll_e||(e=g(y),t=g(window),i=e.height(),s=t.height(),a=e.width(),n=t.width(),o=e.scrollTop(),d=e.scrollLeft(),s<i&&r.pageY-o<g.vakata.dnd.settings.scroll_proximity&&(f.scroll_t=-1),s<i&&s-(r.pageY-o)<g.vakata.dnd.settings.scroll_proximity&&(f.scroll_t=1),n<a&&r.pageX-d<g.vakata.dnd.settings.scroll_proximity&&(f.scroll_l=-1),n<a&&n-(r.pageX-d)<g.vakata.dnd.settings.scroll_proximity&&(f.scroll_l=1),(f.scroll_t||f.scroll_l)&&(f.scroll_e=e)),f.scroll_e&&g.vakata.dnd._scroll(!0),f.helper&&(c=parseInt(r.pageY+g.vakata.dnd.settings.helper_top,10),l=parseInt(r.pageX+g.vakata.dnd.settings.helper_left,10),i&&i<c+25&&(c=i-50),a&&l+f.helper_w>a&&(l=a-(f.helper_w+2)),f.helper.css({left:l+"px",top:c+"px"})),g.vakata.dnd._trigger("move",r),!1}},stop:function(e){var t;return"touchend"===e.type&&e.originalEvent&&e.originalEvent.changedTouches&&e.originalEvent.changedTouches[0]&&(e.pageX=e.originalEvent.changedTouches[0].pageX,e.pageY=e.originalEvent.changedTouches[0].pageY,e.target=y.elementFromPoint(e.originalEvent.changedTouches[0].pageX-window.pageXOffset,e.originalEvent.changedTouches[0].pageY-window.pageYOffset)),f.is_drag?(e.target!==f.target&&g(f.target).off("click.vakata"),g.vakata.dnd._trigger("stop",e)):"touchend"===e.type&&e.target===f.target&&(t=setTimeout(function(){g(e.target).trigger("click")},100),g(e.target).one("click",function(){t&&clearTimeout(t)})),g.vakata.dnd._clean(),!1}},E.jstree.defaults.massload=null,E.jstree.plugins.massload=function(e,l){this.init=function(e,t){this._data.massload={},l.init.call(this,e,t)},this._load_nodes=function(a,n,o,d){var e,t,c,r=this.settings.massload,i=[],s=this._model.data;if(!o){for(e=0,t=a.length;e<t;e++)s[a[e]]&&(s[a[e]].state.loaded||s[a[e]].state.failed)&&!d||(i.push(a[e]),(c=this.get_node(a[e],!0))&&c.length&&c.addClass("jstree-loading").attr("aria-busy",!0));if(this._data.massload={},i.length){if("function"==typeof r)return r.call(this,i,E.proxy(function(e){var t,r;if(e)for(t in e)e.hasOwnProperty(t)&&(this._data.massload[t]=e[t]);for(t=0,r=a.length;t<r;t++)(c=this.get_node(a[t],!0))&&c.length&&c.removeClass("jstree-loading").attr("aria-busy",!1);l._load_nodes.call(this,a,n,o,d)},this));if("object"==typeof r&&r&&r.url)return"function"==typeof(r=E.extend(!0,{},r)).url&&(r.url=r.url.call(this,i)),"function"==typeof r.data&&(r.data=r.data.call(this,i)),E.ajax(r).done(E.proxy(function(e,t,r){var i,s;if(e)for(i in e)e.hasOwnProperty(i)&&(this._data.massload[i]=e[i]);for(i=0,s=a.length;i<s;i++)(c=this.get_node(a[i],!0))&&c.length&&c.removeClass("jstree-loading").attr("aria-busy",!1);l._load_nodes.call(this,a,n,o,d)},this)).fail(E.proxy(function(e){l._load_nodes.call(this,a,n,o,d)},this))}}return l._load_nodes.call(this,a,n,o,d)},this._load_node=function(e,t){var r,i=this._data.massload[e.id],s=null;return i?(s=this["string"==typeof i?"_append_html_data":"_append_json_data"](e,"string"==typeof i?E(E.parseHTML(i)).filter(function(){return 3!==this.nodeType}):i,function(e){t.call(this,e)}),(r=this.get_node(e.id,!0))&&r.length&&r.removeClass("jstree-loading").attr("aria-busy",!1),delete this._data.massload[e.id],s):l._load_node.call(this,e,t)}},E.jstree.defaults.search={ajax:!1,fuzzy:!1,case_sensitive:!1,show_only_matches:!1,show_only_matches_children:!1,close_opened_onclear:!0,search_leaves_only:!1,search_callback:!1},E.jstree.plugins.search=function(e,o){this.bind=function(){o.bind.call(this),this._data.search.str="",this._data.search.dom=E(),this._data.search.res=[],this._data.search.opn=[],this._data.search.som=!1,this._data.search.smc=!1,this._data.search.hdn=[],this.element.on("search.jstree",E.proxy(function(e,t){if(this._data.search.som&&t.res.length){for(var r,i,s=this._model.data,a=[],n=0,o=t.res.length;n<o;n++)if(s[t.res[n]]&&!s[t.res[n]].state.hidden&&(a.push(t.res[n]),a=a.concat(s[t.res[n]].parents),this._data.search.smc))for(r=0,i=s[t.res[n]].children_d.length;r<i;r++)s[s[t.res[n]].children_d[r]]&&!s[s[t.res[n]].children_d[r]].state.hidden&&a.push(s[t.res[n]].children_d[r]);a=E.vakata.array_remove_item(E.vakata.array_unique(a),E.jstree.root),this._data.search.hdn=this.hide_all(!0),this.show_node(a,!0),this.redraw(!0)}},this)).on("clear_search.jstree",E.proxy(function(e,t){this._data.search.som&&t.res.length&&(this.show_node(this._data.search.hdn,!0),this.redraw(!0))},this))},this.search=function(i,e,t,r,s,a){if(!1===i||""===i.toString().trim())return this.clear_search();r=(r=this.get_node(r))&&r.id?r.id:null,i=i.toString();var n,o,d=this.settings.search,c=!!d.ajax&&d.ajax,l=this._model.data,h=null,_=[],u=[];if(this._data.search.res.length&&!s&&this.clear_search(),t===P&&(t=d.show_only_matches),a===P&&(a=d.show_only_matches_children),!e&&!1!==c)return"function"==typeof c?c.call(this,i,E.proxy(function(e){e&&e.d&&(e=e.d),this._load_nodes(Array.isArray(e)?E.vakata.array_unique(e):[],function(){this.search(i,!0,t,r,s,a)})},this),r):((c=E.extend({},c)).data||(c.data={}),c.data.str=i,r&&(c.data.inside=r),this._data.search.lastRequest&&this._data.search.lastRequest.abort(),this._data.search.lastRequest=E.ajax(c).fail(E.proxy(function(){this._data.core.last_error={error:"ajax",plugin:"search",id:"search_01",reason:"Could not load search parents",data:JSON.stringify(c)},this.settings.core.error.call(this,this._data.core.last_error)},this)).done(E.proxy(function(e){e&&e.d&&(e=e.d),this._load_nodes(Array.isArray(e)?E.vakata.array_unique(e):[],function(){this.search(i,!0,t,r,s,a)})},this)),this._data.search.lastRequest);if(s||(this._data.search.str=i,this._data.search.dom=E(),this._data.search.res=[],this._data.search.opn=[],this._data.search.som=t,this._data.search.smc=a),h=new E.vakata.search(i,!0,{caseSensitive:d.case_sensitive,fuzzy:d.fuzzy}),E.each(l[r||E.jstree.root].children_d,function(e,t){var r=l[t];r.text&&!r.state.hidden&&(!d.search_leaves_only||r.state.loaded&&0===r.children.length)&&(d.search_callback&&d.search_callback.call(this,i,r)||!d.search_callback&&h.search(r.text).isMatch)&&(_.push(t),u=u.concat(r.parents))}),_.length){for(n=0,o=(u=E.vakata.array_unique(u)).length;n<o;n++)u[n]!==E.jstree.root&&l[u[n]]&&!0===this.open_node(u[n],null,0)&&this._data.search.opn.push(u[n]);s?(this._data.search.dom=this._data.search.dom.add(E(this.element[0].querySelectorAll("#"+E.map(_,function(e){return-1!=="0123456789".indexOf(e[0])?"\\3"+e[0]+" "+e.substr(1).replace(E.jstree.idregex,"\\$&"):e.replace(E.jstree.idregex,"\\$&")}).join(", #")))),this._data.search.res=E.vakata.array_unique(this._data.search.res.concat(_))):(this._data.search.dom=E(this.element[0].querySelectorAll("#"+E.map(_,function(e){return-1!=="0123456789".indexOf(e[0])?"\\3"+e[0]+" "+e.substr(1).replace(E.jstree.idregex,"\\$&"):e.replace(E.jstree.idregex,"\\$&")}).join(", #"))),this._data.search.res=_),this._data.search.dom.children(".jstree-anchor").addClass("jstree-search")}this.trigger("search",{nodes:this._data.search.dom,str:i,res:this._data.search.res,show_only_matches:t})},this.clear_search=function(){this.settings.search.close_opened_onclear&&this.close_node(this._data.search.opn,0),this.trigger("clear_search",{nodes:this._data.search.dom,str:this._data.search.str,res:this._data.search.res}),this._data.search.res.length&&(this._data.search.dom=E(this.element[0].querySelectorAll("#"+E.map(this._data.search.res,function(e){return-1!=="0123456789".indexOf(e[0])?"\\3"+e[0]+" "+e.substr(1).replace(E.jstree.idregex,"\\$&"):e.replace(E.jstree.idregex,"\\$&")}).join(", #"))),this._data.search.dom.children(".jstree-anchor").removeClass("jstree-search")),this._data.search.str="",this._data.search.res=[],this._data.search.opn=[],this._data.search.dom=E()},this.redraw_node=function(e,t,r,i){if((e=o.redraw_node.apply(this,arguments))&&-1!==E.inArray(e.id,this._data.search.res)){for(var s=null,a=0,n=e.childNodes.length;a<n;a++)if(e.childNodes[a]&&e.childNodes[a].className&&-1!==e.childNodes[a].className.indexOf("jstree-anchor")){s=e.childNodes[a];break}s&&(s.className+=" jstree-search")}return e}},(w=E).vakata.search=function(p,e,m){m=m||{},!1!==(m=w.extend({},w.vakata.search.defaults,m)).fuzzy&&(m.fuzzy=!0),p=m.caseSensitive?p:p.toLowerCase();var v,j,y,t,k=m.location,s=m.distance,x=m.threshold,b=p.length;return 32<b&&(m.fuzzy=!1),m.fuzzy&&(v=1<<b-1,j=function(){for(var e={},t=0,t=0;t<b;t++)e[p.charAt(t)]=0;for(t=0;t<b;t++)e[p.charAt(t)]|=1<<b-t-1;return e}(),y=function(e,t){var r=e/b,i=Math.abs(k-t);return s?r+i/s:i?1:r}),t=function(e){if(e=m.caseSensitive?e:e.toLowerCase(),p===e||-1!==e.indexOf(p))return{isMatch:!0,score:0};if(!m.fuzzy)return{isMatch:!1,score:1};var t,r,i,s,a,n,o,d,c,l=e.length,h=x,_=e.indexOf(p,k),u=b+l,g=1,f=[];for(-1!==_&&(h=Math.min(y(0,_),h),-1!==(_=e.lastIndexOf(p,k+b))&&(h=Math.min(y(0,_),h))),_=-1,t=0;t<b;t++){for(i=0,s=u;i<s;)y(t,k+s)<=h?i=s:u=s,s=Math.floor((u-i)/2+i);for(u=s,n=Math.max(1,k-s+1),o=Math.min(k+s,l)+b,(d=new Array(o+2))[o+1]=(1<<t)-1,r=o;n<=r;r--)if(c=j[e.charAt(r-1)],d[r]=0===t?(d[r+1]<<1|1)&c:(d[r+1]<<1|1)&c|(a[r+1]|a[r])<<1|1|a[r+1],d[r]&v&&(g=y(t,r-1))<=h){if(h=g,_=r-1,f.push(_),!(k<_))break;n=Math.max(1,2*k-_)}if(y(t+1,k)>h)break;a=d}return{isMatch:0<=_,score:g}},!0===e?{search:t}:t(e)},w.vakata.search.defaults={location:0,distance:100,threshold:.6,fuzzy:!1,caseSensitive:!1},E.jstree.defaults.sort=function(e,t){return this.get_text(e)>this.get_text(t)?1:-1};var m=!(E.jstree.plugins.sort=function(e,t){this.bind=function(){t.bind.call(this),this.element.on("model.jstree",E.proxy(function(e,t){this.sort(t.parent,!0)},this)).on("rename_node.jstree create_node.jstree",E.proxy(function(e,t){this.sort(t.parent||t.node.parent,!1),this.redraw_node(t.parent||t.node.parent,!0)},this)).on("move_node.jstree copy_node.jstree",E.proxy(function(e,t){this.sort(t.parent,!1),this.redraw_node(t.parent,!0)},this))},this.sort=function(e,t){var r,i;if((e=this.get_node(e))&&e.children&&e.children.length&&(e.children.sort(E.proxy(this.settings.sort,this)),t))for(r=0,i=e.children_d.length;r<i;r++)this.sort(e.children_d[r],!1)}});E.jstree.defaults.state={key:"jstree",events:"changed.jstree open_node.jstree close_node.jstree check_node.jstree uncheck_node.jstree",ttl:!1,filter:!1,preserve_loaded:!1},E.jstree.plugins.state=function(e,t){this.bind=function(){t.bind.call(this);var r=E.proxy(function(){this.element.on(this.settings.state.events,E.proxy(function(){m&&clearTimeout(m),m=setTimeout(E.proxy(function(){this.save_state()},this),100)},this)),this.trigger("state_ready")},this);this.element.on("ready.jstree",E.proxy(function(e,t){this.element.one("restore_state.jstree",r),this.restore_state()||r()},this))},this.save_state=function(){var e=this.get_state();this.settings.state.preserve_loaded||delete e.core.loaded;var t={state:e,ttl:this.settings.state.ttl,sec:+new Date};E.vakata.storage.set(this.settings.state.key,JSON.stringify(t))},this.restore_state=function(){var r=E.vakata.storage.get(this.settings.state.key);if(r)try{r=JSON.parse(r)}catch(e){return!1}return!(r&&r.ttl&&r.sec&&new Date-r.sec>r.ttl)&&(r&&r.state&&(r=r.state),r&&"function"==typeof this.settings.state.filter&&(r=this.settings.state.filter.call(this,r)),!!r&&(this.settings.state.preserve_loaded||delete r.core.loaded,this.element.one("set_state.jstree",function(e,t){t.instance.trigger("restore_state",{state:E.extend(!0,{},r)})}),this.set_state(r),!0))},this.clear_state=function(){return E.vakata.storage.del(this.settings.state.key)}},E.vakata.storage={set:function(e,t){return window.localStorage.setItem(e,t)},get:function(e){return window.localStorage.getItem(e)},del:function(e){return window.localStorage.removeItem(e)}},E.jstree.defaults.types={default:{}},E.jstree.defaults.types[E.jstree.root]={},E.jstree.plugins.types=function(e,l){this.init=function(e,t){var r,i;if(t&&t.types&&t.types.default)for(r in t.types)if("default"!==r&&r!==E.jstree.root&&t.types.hasOwnProperty(r))for(i in t.types.default)t.types.default.hasOwnProperty(i)&&t.types[r][i]===P&&(t.types[r][i]=t.types.default[i]);l.init.call(this,e,t),this._model.data[E.jstree.root].type=E.jstree.root},this.refresh=function(e,t){l.refresh.call(this,e,t),this._model.data[E.jstree.root].type=E.jstree.root},this.bind=function(){this.element.on("model.jstree",E.proxy(function(e,t){for(var r,i=this._model.data,s=t.nodes,a=this.settings.types,n="default",o=0,d=s.length;o<d;o++){if(n="default",i[s[o]].original&&i[s[o]].original.type&&a[i[s[o]].original.type]&&(n=i[s[o]].original.type),i[s[o]].data&&i[s[o]].data.jstree&&i[s[o]].data.jstree.type&&a[i[s[o]].data.jstree.type]&&(n=i[s[o]].data.jstree.type),i[s[o]].type=n,!0===i[s[o]].icon&&a[n].icon!==P&&(i[s[o]].icon=a[n].icon),a[n].li_attr!==P&&"object"==typeof a[n].li_attr)for(r in a[n].li_attr)if(a[n].li_attr.hasOwnProperty(r)){if("id"===r)continue;i[s[o]].li_attr[r]===P?i[s[o]].li_attr[r]=a[n].li_attr[r]:"class"===r&&(i[s[o]].li_attr.class=a[n].li_attr.class+" "+i[s[o]].li_attr.class)}if(a[n].a_attr!==P&&"object"==typeof a[n].a_attr)for(r in a[n].a_attr)if(a[n].a_attr.hasOwnProperty(r)){if("id"===r)continue;i[s[o]].a_attr[r]===P?i[s[o]].a_attr[r]=a[n].a_attr[r]:"href"===r&&"#"===i[s[o]].a_attr[r]?i[s[o]].a_attr.href=a[n].a_attr.href:"class"===r&&(i[s[o]].a_attr.class=a[n].a_attr.class+" "+i[s[o]].a_attr.class)}}i[E.jstree.root].type=E.jstree.root},this)),l.bind.call(this)},this.get_json=function(e,t,r){var i,s,a=this._model.data,n=t?E.extend(!0,{},t,{no_id:!1}):{},o=l.get_json.call(this,e,n,r);if(!1===o)return!1;if(Array.isArray(o))for(i=0,s=o.length;i<s;i++)o[i].type=o[i].id&&a[o[i].id]&&a[o[i].id].type?a[o[i].id].type:"default",t&&t.no_id&&(delete o[i].id,o[i].li_attr&&o[i].li_attr.id&&delete o[i].li_attr.id,o[i].a_attr&&o[i].a_attr.id&&delete o[i].a_attr.id);else o.type=o.id&&a[o.id]&&a[o.id].type?a[o.id].type:"default",t&&t.no_id&&(o=this._delete_ids(o));return o},this._delete_ids=function(e){if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)e[t]=this._delete_ids(e[t]);return e}return delete e.id,e.li_attr&&e.li_attr.id&&delete e.li_attr.id,e.a_attr&&e.a_attr.id&&delete e.a_attr.id,e.children&&Array.isArray(e.children)&&(e.children=this._delete_ids(e.children)),e},this.check=function(e,t,r,i,s){if(!1===l.check.call(this,e,t,r,i,s))return!1;t=t&&t.id?t:this.get_node(t),r=r&&r.id?r:this.get_node(r);var a,n,o,d,c=(c=t&&t.id?s&&s.origin?s.origin:E.jstree.reference(t.id):null)&&c._model&&c._model.data?c._model.data:null;switch(e){case"create_node":case"move_node":case"copy_node":if("move_node"!==e||-1===E.inArray(t.id,r.children)){if((a=this.get_rules(r)).max_children!==P&&-1!==a.max_children&&a.max_children===r.children.length)return!(this._data.core.last_error={error:"check",plugin:"types",id:"types_01",reason:"max_children prevents function: "+e,data:JSON.stringify({chk:e,pos:i,obj:!(!t||!t.id)&&t.id,par:!(!r||!r.id)&&r.id})});if(a.valid_children!==P&&-1!==a.valid_children&&-1===E.inArray(t.type||"default",a.valid_children))return!(this._data.core.last_error={error:"check",plugin:"types",id:"types_02",reason:"valid_children prevents function: "+e,data:JSON.stringify({chk:e,pos:i,obj:!(!t||!t.id)&&t.id,par:!(!r||!r.id)&&r.id})});if(c&&t.children_d&&t.parents){for(o=n=0,d=t.children_d.length;o<d;o++)n=Math.max(n,c[t.children_d[o]].parents.length);n=n-t.parents.length+1}(n<=0||n===P)&&(n=1);do{if(a.max_depth!==P&&-1!==a.max_depth&&a.max_depth<n)return!(this._data.core.last_error={error:"check",plugin:"types",id:"types_03",reason:"max_depth prevents function: "+e,data:JSON.stringify({chk:e,pos:i,obj:!(!t||!t.id)&&t.id,par:!(!r||!r.id)&&r.id})});r=this.get_node(r.parent),a=this.get_rules(r),n++}while(r)}}return!0},this.get_rules=function(e){if(!(e=this.get_node(e)))return!1;var t=this.get_type(e,!0);return t.max_depth===P&&(t.max_depth=-1),t.max_children===P&&(t.max_children=-1),t.valid_children===P&&(t.valid_children=-1),t},this.get_type=function(e,t){return!!(e=this.get_node(e))&&(t?E.extend({type:e.type},this.settings.types[e.type]):e.type)},this.set_type=function(e,t){var r,i,s,a,n,o,d,c,l=this._model.data;if(Array.isArray(e)){for(i=0,s=(e=e.slice()).length;i<s;i++)this.set_type(e[i],t);return!0}if(r=this.settings.types,e=this.get_node(e),!r[t]||!e)return!1;if((d=this.get_node(e,!0))&&d.length&&(c=d.children(".jstree-anchor")),a=e.type,n=this.get_icon(e),e.type=t,!0!==n&&r[a]&&(r[a].icon===P||n!==r[a].icon)||this.set_icon(e,r[t].icon===P||r[t].icon),r[a]&&r[a].li_attr!==P&&"object"==typeof r[a].li_attr)for(o in r[a].li_attr)if(r[a].li_attr.hasOwnProperty(o)){if("id"===o)continue;"class"===o?(l[e.id].li_attr.class=(l[e.id].li_attr.class||"").replace(r[a].li_attr[o],""),d&&d.removeClass(r[a].li_attr[o])):l[e.id].li_attr[o]===r[a].li_attr[o]&&(l[e.id].li_attr[o]=null,d&&d.removeAttr(o))}if(r[a]&&r[a].a_attr!==P&&"object"==typeof r[a].a_attr)for(o in r[a].a_attr)if(r[a].a_attr.hasOwnProperty(o)){if("id"===o)continue;"class"===o?(l[e.id].a_attr.class=(l[e.id].a_attr.class||"").replace(r[a].a_attr[o],""),c&&c.removeClass(r[a].a_attr[o])):l[e.id].a_attr[o]===r[a].a_attr[o]&&("href"===o?(l[e.id].a_attr[o]="#",c&&c.attr("href","#")):(delete l[e.id].a_attr[o],c&&c.removeAttr(o)))}if(r[t].li_attr!==P&&"object"==typeof r[t].li_attr)for(o in r[t].li_attr)if(r[t].li_attr.hasOwnProperty(o)){if("id"===o)continue;l[e.id].li_attr[o]===P?(l[e.id].li_attr[o]=r[t].li_attr[o],d&&("class"===o?d.addClass(r[t].li_attr[o]):d.attr(o,r[t].li_attr[o]))):"class"===o&&(l[e.id].li_attr.class=r[t].li_attr[o]+" "+l[e.id].li_attr.class,d&&d.addClass(r[t].li_attr[o]))}if(r[t].a_attr!==P&&"object"==typeof r[t].a_attr)for(o in r[t].a_attr)if(r[t].a_attr.hasOwnProperty(o)){if("id"===o)continue;l[e.id].a_attr[o]===P?(l[e.id].a_attr[o]=r[t].a_attr[o],c&&("class"===o?c.addClass(r[t].a_attr[o]):c.attr(o,r[t].a_attr[o]))):"href"===o&&"#"===l[e.id].a_attr[o]?(l[e.id].a_attr.href=r[t].a_attr.href,c&&c.attr("href",r[t].a_attr.href)):"class"===o&&(l[e.id].a_attr.class=r[t].a_attr.class+" "+l[e.id].a_attr.class,c&&c.addClass(r[t].a_attr[o]))}return!0}},E.jstree.defaults.unique={case_sensitive:!1,trim_whitespace:!1,duplicate:function(e,t){return e+" ("+t+")"}},E.jstree.plugins.unique=function(e,f){this.check=function(e,t,r,i,s){if(!1===f.check.call(this,e,t,r,i,s))return!1;if(t=t&&t.id?t:this.get_node(t),!(r=r&&r.id?r:this.get_node(r))||!r.children)return!0;for(var a,n="rename_node"===e?i:t.text,o=[],d=this.settings.unique.case_sensitive,c=this.settings.unique.trim_whitespace,l=this._model.data,h=0,_=r.children.length;h<_;h++)a=l[r.children[h]].text,d||(a=a.toLowerCase()),c&&(a=a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")),o.push(a);switch(d||(n=n.toLowerCase()),c&&(n=n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")),e){case"delete_node":return!0;case"rename_node":return a=t.text||"",d||(a=a.toLowerCase()),c&&(a=a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")),(h=-1===E.inArray(n,o)||t.text&&a===n)||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_01",reason:"Child with name "+n+" already exists. Preventing: "+e,data:JSON.stringify({chk:e,pos:i,obj:!(!t||!t.id)&&t.id,par:!(!r||!r.id)&&r.id})}),h;case"create_node":return(h=-1===E.inArray(n,o))||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_04",reason:"Child with name "+n+" already exists. Preventing: "+e,data:JSON.stringify({chk:e,pos:i,obj:!(!t||!t.id)&&t.id,par:!(!r||!r.id)&&r.id})}),h;case"copy_node":return(h=-1===E.inArray(n,o))||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_02",reason:"Child with name "+n+" already exists. Preventing: "+e,data:JSON.stringify({chk:e,pos:i,obj:!(!t||!t.id)&&t.id,par:!(!r||!r.id)&&r.id})}),h;case"move_node":return(h=t.parent===r.id&&(!s||!s.is_multi)||-1===E.inArray(n,o))||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_03",reason:"Child with name "+n+" already exists. Preventing: "+e,data:JSON.stringify({chk:e,pos:i,obj:!(!t||!t.id)&&t.id,par:!(!r||!r.id)&&r.id})}),h}return!0},this.create_node=function(e,t,r,i,s){if(!t||t.text===P){if(null===e&&(e=E.jstree.root),!(e=this.get_node(e)))return f.create_node.call(this,e,t,r,i,s);if(!(r=r===P?"last":r).toString().match(/^(before|after)$/)&&!s&&!this.is_loaded(e))return f.create_node.call(this,e,t,r,i,s);t=t||{};for(var a,n,o=this._model.data,d=this.settings.unique.case_sensitive,c=this.settings.unique.trim_whitespace,l=this.settings.unique.duplicate,h=a=this.get_string("New node"),_=[],u=0,g=e.children.length;u<g;u++)n=o[e.children[u]].text,d||(n=n.toLowerCase()),c&&(n=n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")),_.push(n);for(u=1,n=h,d||(n=n.toLowerCase()),c&&(n=n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""));-1!==E.inArray(n,_);)n=h=l.call(this,a,++u).toString(),d||(n=n.toLowerCase()),c&&(n=n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""));t.text=h}return f.create_node.call(this,e,t,r,i,s)}};var v=y.createElement("DIV");if(v.setAttribute("unselectable","on"),v.setAttribute("role","presentation"),v.className="jstree-wholerow",v.innerHTML=" ",E.jstree.plugins.wholerow=function(e,a){this.bind=function(){a.bind.call(this),this.element.on("ready.jstree set_state.jstree",E.proxy(function(){this.hide_dots()},this)).on("init.jstree loading.jstree ready.jstree",E.proxy(function(){this.get_container_ul().addClass("jstree-wholerow-ul")},this)).on("deselect_all.jstree",E.proxy(function(e,t){this.element.find(".jstree-wholerow-clicked").removeClass("jstree-wholerow-clicked")},this)).on("changed.jstree",E.proxy(function(e,t){this.element.find(".jstree-wholerow-clicked").removeClass("jstree-wholerow-clicked");for(var r=!1,i=0,s=t.selected.length;i<s;i++)(r=this.get_node(t.selected[i],!0))&&r.length&&r.children(".jstree-wholerow").addClass("jstree-wholerow-clicked")},this)).on("open_node.jstree",E.proxy(function(e,t){this.get_node(t.node,!0).find(".jstree-clicked").parent().children(".jstree-wholerow").addClass("jstree-wholerow-clicked")},this)).on("hover_node.jstree dehover_node.jstree",E.proxy(function(e,t){"hover_node"===e.type&&this.is_disabled(t.node)||this.get_node(t.node,!0).children(".jstree-wholerow")["hover_node"===e.type?"addClass":"removeClass"]("jstree-wholerow-hovered")},this)).on("contextmenu.jstree",".jstree-wholerow",E.proxy(function(e){var t;this._data.contextmenu&&(e.preventDefault(),t=E.Event("contextmenu",{metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey,shiftKey:e.shiftKey,pageX:e.pageX,pageY:e.pageY}),E(e.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(t))},this)).on("click.jstree",".jstree-wholerow",function(e){e.stopImmediatePropagation();var t=E.Event("click",{metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey,shiftKey:e.shiftKey});E(e.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(t).focus()}).on("dblclick.jstree",".jstree-wholerow",function(e){e.stopImmediatePropagation();var t=E.Event("dblclick",{metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey,shiftKey:e.shiftKey});E(e.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(t).focus()}).on("click.jstree",".jstree-leaf > .jstree-ocl",E.proxy(function(e){e.stopImmediatePropagation();var t=E.Event("click",{metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey,shiftKey:e.shiftKey});E(e.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(t).focus()},this)).on("mouseover.jstree",".jstree-wholerow, .jstree-icon",E.proxy(function(e){return e.stopImmediatePropagation(),this.is_disabled(e.currentTarget)||this.hover_node(e.currentTarget),!1},this)).on("mouseleave.jstree",".jstree-node",E.proxy(function(e){this.dehover_node(e.currentTarget)},this))},this.teardown=function(){this.settings.wholerow&&this.element.find(".jstree-wholerow").remove(),a.teardown.call(this)},this.redraw_node=function(e,t,r,i){var s;return(e=a.redraw_node.apply(this,arguments))&&(s=v.cloneNode(!0),-1!==E.inArray(e.id,this._data.core.selected)&&(s.className+=" jstree-wholerow-clicked"),this._data.core.focused&&this._data.core.focused===e.id&&(s.className+=" jstree-wholerow-hovered"),e.insertBefore(s,e.childNodes[0])),e}},window.customElements&&Object&&Object.create){var t=Object.create(HTMLElement.prototype);t.createdCallback=function(){var e,t={core:{},plugins:[]};for(e in E.jstree.plugins)E.jstree.plugins.hasOwnProperty(e)&&this.attributes[e]&&(t.plugins.push(e),this.getAttribute(e)&&JSON.parse(this.getAttribute(e))&&(t[e]=JSON.parse(this.getAttribute(e))));for(e in E.jstree.defaults.core)E.jstree.defaults.core.hasOwnProperty(e)&&this.attributes[e]&&(t.core[e]=JSON.parse(this.getAttribute(e))||this.getAttribute(e));E(this).jstree(t)};try{window.customElements.define("vakata-jstree",function(){},{prototype:t})}catch(e){}}}});
|
|
|
|
|
|
|
|
|
|
1 |
+
/*! jsTree - v3.3.12 - 2021-09-03 - (MIT) */
|
2 |
+
!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof module&&module.exports?module.exports=a(require("jquery")):a(jQuery)}(function(a,b){"use strict";if(!a.jstree){var c=0,d=!1,e=!1,f=!1,g=[],h=a("script:last").attr("src"),i=window.document,j=window.setImmediate,k=window.Promise;!j&&k&&(j=function(a,b){k.resolve(b).then(a)}),a.jstree={version:"3.3.12",defaults:{plugins:[]},plugins:{},path:h&&-1!==h.indexOf("/")?h.replace(/\/[^\/]+$/,""):"",idregex:/[\\:&!^|()\[\]<>@*'+~#";.,=\- \/${}%?`]/g,root:"#"},a.jstree.create=function(b,d){var e=new a.jstree.core(++c),f=d;return d=a.extend(!0,{},a.jstree.defaults,d),f&&f.plugins&&(d.plugins=f.plugins),a.each(d.plugins,function(a,b){"core"!==a&&(e=e.plugin(b,d[b]))}),a(b).data("jstree",e),e.init(b,d),e},a.jstree.destroy=function(){a(".jstree:jstree").jstree("destroy"),a(i).off(".jstree")},a.jstree.core=function(a){this._id=a,this._cnt=0,this._wrk=null,this._data={core:{themes:{name:!1,dots:!1,icons:!1,ellipsis:!1},selected:[],last_error:{},working:!1,worker_queue:[],focused:null}}},a.jstree.reference=function(b){var c=null,d=null;if(!b||!b.id||b.tagName&&b.nodeType||(b=b.id),!d||!d.length)try{d=a(b)}catch(e){}if(!d||!d.length)try{d=a("#"+b.replace(a.jstree.idregex,"\\$&"))}catch(e){}return d&&d.length&&(d=d.closest(".jstree")).length&&(d=d.data("jstree"))?c=d:a(".jstree").each(function(){var d=a(this).data("jstree");return d&&d._model.data[b]?(c=d,!1):void 0}),c},a.fn.jstree=function(c){var d="string"==typeof c,e=Array.prototype.slice.call(arguments,1),f=null;return c!==!0||this.length?(this.each(function(){var g=a.jstree.reference(this),h=d&&g?g[c]:null;return f=d&&h?h.apply(g,e):null,g||d||c!==b&&!a.isPlainObject(c)||a.jstree.create(this,c),(g&&!d||c===!0)&&(f=g||!1),null!==f&&f!==b?!1:void 0}),null!==f&&f!==b?f:this):!1},a.expr.pseudos.jstree=a.expr.createPseudo(function(c){return function(c){return a(c).hasClass("jstree")&&a(c).data("jstree")!==b}}),a.jstree.defaults.core={data:!1,strings:!1,check_callback:!1,error:a.noop,animation:200,multiple:!0,themes:{name:!1,url:!1,dir:!1,dots:!0,icons:!0,ellipsis:!1,stripes:!1,variant:!1,responsive:!1},expand_selected_onload:!0,worker:!0,force_text:!1,dblclick_toggle:!0,loaded_state:!1,restore_focus:!0,compute_elements_positions:!1,keyboard:{"ctrl-space":function(b){b.type="click",a(b.currentTarget).trigger(b)},enter:function(b){b.type="click",a(b.currentTarget).trigger(b)},left:function(b){if(b.preventDefault(),this.is_open(b.currentTarget))this.close_node(b.currentTarget);else{var c=this.get_parent(b.currentTarget);c&&c.id!==a.jstree.root&&this.get_node(c,!0).children(".jstree-anchor").trigger("focus")}},up:function(a){a.preventDefault();var b=this.get_prev_dom(a.currentTarget);b&&b.length&&b.children(".jstree-anchor").trigger("focus")},right:function(b){if(b.preventDefault(),this.is_closed(b.currentTarget))this.open_node(b.currentTarget,function(a){this.get_node(a,!0).children(".jstree-anchor").trigger("focus")});else if(this.is_open(b.currentTarget)){var c=this.get_node(b.currentTarget,!0).children(".jstree-children")[0];c&&a(this._firstChild(c)).children(".jstree-anchor").trigger("focus")}},down:function(a){a.preventDefault();var b=this.get_next_dom(a.currentTarget);b&&b.length&&b.children(".jstree-anchor").trigger("focus")},"*":function(a){this.open_all()},home:function(b){b.preventDefault();var c=this._firstChild(this.get_container_ul()[0]);c&&a(c).children(".jstree-anchor").filter(":visible").trigger("focus")},end:function(a){a.preventDefault(),this.element.find(".jstree-anchor").filter(":visible").last().trigger("focus")},f2:function(a){a.preventDefault(),this.edit(a.currentTarget)}}},a.jstree.core.prototype={plugin:function(b,c){var d=a.jstree.plugins[b];return d?(this._data[b]={},d.prototype=this,new d(c,this)):this},init:function(b,c){this._model={data:{},changed:[],force_full_redraw:!1,redraw_timeout:!1,default_state:{loaded:!0,opened:!1,selected:!1,disabled:!1}},this._model.data[a.jstree.root]={id:a.jstree.root,parent:null,parents:[],children:[],children_d:[],state:{loaded:!1}},this.element=a(b).addClass("jstree jstree-"+this._id),this.settings=c,this._data.core.ready=!1,this._data.core.loaded=!1,this._data.core.rtl="rtl"===this.element.css("direction"),this.element[this._data.core.rtl?"addClass":"removeClass"]("jstree-rtl"),this.element.attr("role","tree"),this.settings.core.multiple&&this.element.attr("aria-multiselectable",!0),this.element.attr("tabindex")||this.element.attr("tabindex","0"),this.bind(),this.trigger("init"),this._data.core.original_container_html=this.element.find(" > ul > li").clone(!0),this._data.core.original_container_html.find("li").addBack().contents().filter(function(){return 3===this.nodeType&&(!this.nodeValue||/^\s+$/.test(this.nodeValue))}).remove(),this.element.html("<ul class='jstree-container-ul jstree-children' role='group'><li id='j"+this._id+"_loading' class='jstree-initial-node jstree-loading jstree-leaf jstree-last' role='none'><i class='jstree-icon jstree-ocl'></i><a class='jstree-anchor' role='treeitem' href='#'><i class='jstree-icon jstree-themeicon-hidden'></i>"+this.get_string("Loading ...")+"</a></li></ul>"),this.element.attr("aria-activedescendant","j"+this._id+"_loading"),this._data.core.li_height=this.get_container_ul().children("li").first().outerHeight()||24,this._data.core.node=this._create_prototype_node(),this.trigger("loading"),this.load_node(a.jstree.root)},destroy:function(a){if(this.trigger("destroy"),this._wrk)try{window.URL.revokeObjectURL(this._wrk),this._wrk=null}catch(b){}a||this.element.empty(),this.teardown()},_create_prototype_node:function(){var a=i.createElement("LI"),b,c;return a.setAttribute("role","none"),b=i.createElement("I"),b.className="jstree-icon jstree-ocl",b.setAttribute("role","presentation"),a.appendChild(b),b=i.createElement("A"),b.className="jstree-anchor",b.setAttribute("href","#"),b.setAttribute("tabindex","-1"),b.setAttribute("role","treeitem"),c=i.createElement("I"),c.className="jstree-icon jstree-themeicon",c.setAttribute("role","presentation"),b.appendChild(c),a.appendChild(b),b=c=null,a},_kbevent_to_func:function(a){var b={8:"Backspace",9:"Tab",13:"Enter",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock",16:"Shift",17:"Ctrl",18:"Alt",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*",173:"-"},c=[];if(a.ctrlKey&&c.push("ctrl"),a.altKey&&c.push("alt"),a.shiftKey&&c.push("shift"),c.push(b[a.which]||a.which),c=c.sort().join("-").toLowerCase(),"shift-shift"===c||"ctrl-ctrl"===c||"alt-alt"===c)return null;var d=this.settings.core.keyboard,e,f;for(e in d)if(d.hasOwnProperty(e)&&(f=e,"-"!==f&&"+"!==f&&(f=f.replace("--","-MINUS").replace("+-","-MINUS").replace("++","-PLUS").replace("-+","-PLUS"),f=f.split(/-|\+/).sort().join("-").replace("MINUS","-").replace("PLUS","+").toLowerCase()),f===c))return d[e];return null},teardown:function(){this.unbind(),this.element.removeClass("jstree").removeData("jstree").find("[class^='jstree']").addBack().attr("class",function(){return this.className.replace(/jstree[^ ]*|$/gi,"")}),this.element=null},bind:function(){var b="",c=null,d=0;this.element.on("dblclick.jstree",function(a){if(a.target.tagName&&"input"===a.target.tagName.toLowerCase())return!0;if(i.selection&&i.selection.empty)i.selection.empty();else if(window.getSelection){var b=window.getSelection();try{b.removeAllRanges(),b.collapse()}catch(c){}}}).on("mousedown.jstree",function(a){a.target===this.element[0]&&(a.preventDefault(),d=+new Date)}.bind(this)).on("mousedown.jstree",".jstree-ocl",function(a){a.preventDefault()}).on("click.jstree",".jstree-ocl",function(a){this.toggle_node(a.target)}.bind(this)).on("dblclick.jstree",".jstree-anchor",function(a){return a.target.tagName&&"input"===a.target.tagName.toLowerCase()?!0:void(this.settings.core.dblclick_toggle&&this.toggle_node(a.target))}.bind(this)).on("click.jstree",".jstree-anchor",function(b){b.preventDefault(),b.currentTarget!==i.activeElement&&a(b.currentTarget).trigger("focus"),this.activate_node(b.currentTarget,b)}.bind(this)).on("keydown.jstree",".jstree-anchor",function(a){if(a.target.tagName&&"input"===a.target.tagName.toLowerCase())return!0;this._data.core.rtl&&(37===a.which?a.which=39:39===a.which&&(a.which=37));var b=this._kbevent_to_func(a);if(b){var c=b.call(this,a);if(c===!1||c===!0)return c}}.bind(this)).on("load_node.jstree",function(b,c){c.status&&(c.node.id!==a.jstree.root||this._data.core.loaded||(this._data.core.loaded=!0,this._firstChild(this.get_container_ul()[0])&&this.element.attr("aria-activedescendant",this._firstChild(this.get_container_ul()[0]).id),this.trigger("loaded")),this._data.core.ready||setTimeout(function(){if(this.element&&!this.get_container_ul().find(".jstree-loading").length){if(this._data.core.ready=!0,this._data.core.selected.length){if(this.settings.core.expand_selected_onload){var b=[],c,d;for(c=0,d=this._data.core.selected.length;d>c;c++)b=b.concat(this._model.data[this._data.core.selected[c]].parents);for(b=a.vakata.array_unique(b),c=0,d=b.length;d>c;c++)this.open_node(b[c],!1,0)}this.trigger("changed",{action:"ready",selected:this._data.core.selected})}this.trigger("ready")}}.bind(this),0))}.bind(this)).on("keypress.jstree",function(d){if(d.target.tagName&&"input"===d.target.tagName.toLowerCase())return!0;c&&clearTimeout(c),c=setTimeout(function(){b=""},500);var e=String.fromCharCode(d.which).toLowerCase(),f=this.element.find(".jstree-anchor").filter(":visible"),g=f.index(i.activeElement)||0,h=!1;if(b+=e,b.length>1){if(f.slice(g).each(function(c,d){return 0===a(d).text().toLowerCase().indexOf(b)?(a(d).trigger("focus"),h=!0,!1):void 0}.bind(this)),h)return;if(f.slice(0,g).each(function(c,d){return 0===a(d).text().toLowerCase().indexOf(b)?(a(d).trigger("focus"),h=!0,!1):void 0}.bind(this)),h)return}if(new RegExp("^"+e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+"+$").test(b)){if(f.slice(g+1).each(function(b,c){return a(c).text().toLowerCase().charAt(0)===e?(a(c).trigger("focus"),h=!0,!1):void 0}.bind(this)),h)return;if(f.slice(0,g+1).each(function(b,c){return a(c).text().toLowerCase().charAt(0)===e?(a(c).trigger("focus"),h=!0,!1):void 0}.bind(this)),h)return}}.bind(this)).on("init.jstree",function(){var a=this.settings.core.themes;this._data.core.themes.dots=a.dots,this._data.core.themes.stripes=a.stripes,this._data.core.themes.icons=a.icons,this._data.core.themes.ellipsis=a.ellipsis,this.set_theme(a.name||"default",a.url),this.set_theme_variant(a.variant)}.bind(this)).on("loading.jstree",function(){this[this._data.core.themes.dots?"show_dots":"hide_dots"](),this[this._data.core.themes.icons?"show_icons":"hide_icons"](),this[this._data.core.themes.stripes?"show_stripes":"hide_stripes"](),this[this._data.core.themes.ellipsis?"show_ellipsis":"hide_ellipsis"]()}.bind(this)).on("blur.jstree",".jstree-anchor",function(b){this._data.core.focused=null,a(b.currentTarget).filter(".jstree-hovered").trigger("mouseleave"),this.element.attr("tabindex","0")}.bind(this)).on("focus.jstree",".jstree-anchor",function(b){var c=this.get_node(b.currentTarget);c&&c.id&&(this._data.core.focused=c.id),this.element.find(".jstree-hovered").not(b.currentTarget).trigger("mouseleave"),a(b.currentTarget).trigger("mouseenter"),this.element.attr("tabindex","-1")}.bind(this)).on("focus.jstree",function(){if(+new Date-d>500&&!this._data.core.focused&&this.settings.core.restore_focus){d=0;var a=this.get_node(this.element.attr("aria-activedescendant"),!0);a&&a.find("> .jstree-anchor").trigger("focus")}}.bind(this)).on("mouseenter.jstree",".jstree-anchor",function(a){this.hover_node(a.currentTarget)}.bind(this)).on("mouseleave.jstree",".jstree-anchor",function(a){this.dehover_node(a.currentTarget)}.bind(this))},unbind:function(){this.element.off(".jstree"),a(i).off(".jstree-"+this._id)},trigger:function(a,b){b||(b={}),b.instance=this,this.element.triggerHandler(a.replace(".jstree","")+".jstree",b)},get_container:function(){return this.element},get_container_ul:function(){return this.element.children(".jstree-children").first()},get_string:function(b){var c=this.settings.core.strings;return a.vakata.is_function(c)?c.call(this,b):c&&c[b]?c[b]:b},_firstChild:function(a){a=a?a.firstChild:null;while(null!==a&&1!==a.nodeType)a=a.nextSibling;return a},_nextSibling:function(a){a=a?a.nextSibling:null;while(null!==a&&1!==a.nodeType)a=a.nextSibling;return a},_previousSibling:function(a){a=a?a.previousSibling:null;while(null!==a&&1!==a.nodeType)a=a.previousSibling;return a},get_node:function(b,c){b&&b.id&&(b=b.id),b instanceof a&&b.length&&b[0].id&&(b=b[0].id);var d;try{if(this._model.data[b])b=this._model.data[b];else if("string"==typeof b&&this._model.data[b.replace(/^#/,"")])b=this._model.data[b.replace(/^#/,"")];else if("string"==typeof b&&(d=a("#"+b.replace(a.jstree.idregex,"\\$&"),this.element)).length&&this._model.data[d.closest(".jstree-node").attr("id")])b=this._model.data[d.closest(".jstree-node").attr("id")];else if((d=this.element.find(b)).length&&this._model.data[d.closest(".jstree-node").attr("id")])b=this._model.data[d.closest(".jstree-node").attr("id")];else{if(!(d=this.element.find(b)).length||!d.hasClass("jstree"))return!1;b=this._model.data[a.jstree.root]}return c&&(b=b.id===a.jstree.root?this.element:a("#"+b.id.replace(a.jstree.idregex,"\\$&"),this.element)),b}catch(e){return!1}},get_path:function(b,c,d){if(b=b.parents?b:this.get_node(b),!b||b.id===a.jstree.root||!b.parents)return!1;var e,f,g=[];for(g.push(d?b.id:b.text),e=0,f=b.parents.length;f>e;e++)g.push(d?b.parents[e]:this.get_text(b.parents[e]));return g=g.reverse().slice(1),c?g.join(c):g},get_next_dom:function(b,c){var d;if(b=this.get_node(b,!0),b[0]===this.element[0]){d=this._firstChild(this.get_container_ul()[0]);while(d&&0===d.offsetHeight)d=this._nextSibling(d);return d?a(d):!1}if(!b||!b.length)return!1;if(c){d=b[0];do d=this._nextSibling(d);while(d&&0===d.offsetHeight);return d?a(d):!1}if(b.hasClass("jstree-open")){d=this._firstChild(b.children(".jstree-children")[0]);while(d&&0===d.offsetHeight)d=this._nextSibling(d);if(null!==d)return a(d)}d=b[0];do d=this._nextSibling(d);while(d&&0===d.offsetHeight);return null!==d?a(d):b.parentsUntil(".jstree",".jstree-node").nextAll(".jstree-node:visible").first()},get_prev_dom:function(b,c){var d;if(b=this.get_node(b,!0),b[0]===this.element[0]){d=this.get_container_ul()[0].lastChild;while(d&&0===d.offsetHeight)d=this._previousSibling(d);return d?a(d):!1}if(!b||!b.length)return!1;if(c){d=b[0];do d=this._previousSibling(d);while(d&&0===d.offsetHeight);return d?a(d):!1}d=b[0];do d=this._previousSibling(d);while(d&&0===d.offsetHeight);if(null!==d){b=a(d);while(b.hasClass("jstree-open"))b=b.children(".jstree-children").first().children(".jstree-node:visible:last");return b}return d=b[0].parentNode.parentNode,d&&d.className&&-1!==d.className.indexOf("jstree-node")?a(d):!1},get_parent:function(b){return b=this.get_node(b),b&&b.id!==a.jstree.root?b.parent:!1},get_children_dom:function(a){return a=this.get_node(a,!0),a[0]===this.element[0]?this.get_container_ul().children(".jstree-node"):a&&a.length?a.children(".jstree-children").children(".jstree-node"):!1},is_parent:function(a){return a=this.get_node(a),a&&(a.state.loaded===!1||a.children.length>0)},is_loaded:function(a){return a=this.get_node(a),a&&a.state.loaded},is_loading:function(a){return a=this.get_node(a),a&&a.state&&a.state.loading},is_open:function(a){return a=this.get_node(a),a&&a.state.opened},is_closed:function(a){return a=this.get_node(a),a&&this.is_parent(a)&&!a.state.opened},is_leaf:function(a){return!this.is_parent(a)},load_node:function(b,c){var d,e,f,g,h;if(a.vakata.is_array(b))return this._load_nodes(b.slice(),c),!0;if(b=this.get_node(b),!b)return c&&c.call(this,b,!1),!1;if(b.state.loaded){for(b.state.loaded=!1,f=0,g=b.parents.length;g>f;f++)this._model.data[b.parents[f]].children_d=a.vakata.array_filter(this._model.data[b.parents[f]].children_d,function(c){return-1===a.inArray(c,b.children_d)});for(d=0,e=b.children_d.length;e>d;d++)this._model.data[b.children_d[d]].state.selected&&(h=!0),delete this._model.data[b.children_d[d]];h&&(this._data.core.selected=a.vakata.array_filter(this._data.core.selected,function(c){return-1===a.inArray(c,b.children_d)})),b.children=[],b.children_d=[],h&&this.trigger("changed",{action:"load_node",node:b,selected:this._data.core.selected})}return b.state.failed=!1,b.state.loading=!0,this.get_node(b,!0).addClass("jstree-loading").attr("aria-busy",!0),this._load_node(b,function(a){b=this._model.data[b.id],b.state.loading=!1,b.state.loaded=a,b.state.failed=!b.state.loaded;var d=this.get_node(b,!0),e=0,f=0,g=this._model.data,h=!1;for(e=0,f=b.children.length;f>e;e++)if(g[b.children[e]]&&!g[b.children[e]].state.hidden){h=!0;break}b.state.loaded&&d&&d.length&&(d.removeClass("jstree-closed jstree-open jstree-leaf"),h?"#"!==b.id&&d.addClass(b.state.opened?"jstree-open":"jstree-closed"):d.addClass("jstree-leaf")),d.removeClass("jstree-loading").attr("aria-busy",!1),this.trigger("load_node",{node:b,status:a}),c&&c.call(this,b,a)}.bind(this)),!0},_load_nodes:function(a,b,c,d){var e=!0,f=function(){this._load_nodes(a,b,!0)},g=this._model.data,h,i,j=[];for(h=0,i=a.length;i>h;h++)g[a[h]]&&(!g[a[h]].state.loaded&&!g[a[h]].state.failed||!c&&d)&&(this.is_loading(a[h])||this.load_node(a[h],f),e=!1);if(e){for(h=0,i=a.length;i>h;h++)g[a[h]]&&g[a[h]].state.loaded&&j.push(a[h]);b&&!b.done&&(b.call(this,j),b.done=!0)}},load_all:function(b,c){if(b||(b=a.jstree.root),b=this.get_node(b),!b)return!1;var d=[],e=this._model.data,f=e[b.id].children_d,g,h;for(b.state&&!b.state.loaded&&d.push(b.id),g=0,h=f.length;h>g;g++)e[f[g]]&&e[f[g]].state&&!e[f[g]].state.loaded&&d.push(f[g]);d.length?this._load_nodes(d,function(){this.load_all(b,c)}):(c&&c.call(this,b),this.trigger("load_all",{node:b}))},_load_node:function(b,c){var d=this.settings.core.data,e,f=function g(){return 3!==this.nodeType&&8!==this.nodeType};return d?a.vakata.is_function(d)?d.call(this,b,function(d){d===!1?c.call(this,!1):this["string"==typeof d?"_append_html_data":"_append_json_data"](b,"string"==typeof d?a(a.parseHTML(d)).filter(f):d,function(a){c.call(this,a)})}.bind(this)):"object"==typeof d?d.url?(d=a.extend(!0,{},d),a.vakata.is_function(d.url)&&(d.url=d.url.call(this,b)),a.vakata.is_function(d.data)&&(d.data=d.data.call(this,b)),a.ajax(d).done(function(d,e,g){var h=g.getResponseHeader("Content-Type");return h&&-1!==h.indexOf("json")||"object"==typeof d?this._append_json_data(b,d,function(a){c.call(this,a)}):h&&-1!==h.indexOf("html")||"string"==typeof d?this._append_html_data(b,a(a.parseHTML(d)).filter(f),function(a){c.call(this,a)}):(this._data.core.last_error={error:"ajax",plugin:"core",id:"core_04",reason:"Could not load node",data:JSON.stringify({id:b.id,xhr:g})},this.settings.core.error.call(this,this._data.core.last_error),c.call(this,!1))}.bind(this)).fail(function(a){this._data.core.last_error={error:"ajax",plugin:"core",id:"core_04",reason:"Could not load node",data:JSON.stringify({id:b.id,xhr:a})},c.call(this,!1),this.settings.core.error.call(this,this._data.core.last_error)}.bind(this))):(e=a.vakata.is_array(d)?a.extend(!0,[],d):a.isPlainObject(d)?a.extend(!0,{},d):d,b.id===a.jstree.root?this._append_json_data(b,e,function(a){c.call(this,a)}):(this._data.core.last_error={error:"nodata",plugin:"core",id:"core_05",reason:"Could not load node",data:JSON.stringify({id:b.id})},this.settings.core.error.call(this,this._data.core.last_error),c.call(this,!1))):"string"==typeof d?b.id===a.jstree.root?this._append_html_data(b,a(a.parseHTML(d)).filter(f),function(a){c.call(this,a)}):(this._data.core.last_error={error:"nodata",plugin:"core",id:"core_06",reason:"Could not load node",data:JSON.stringify({id:b.id})},this.settings.core.error.call(this,this._data.core.last_error),c.call(this,!1)):c.call(this,!1):b.id===a.jstree.root?this._append_html_data(b,this._data.core.original_container_html.clone(!0),function(a){c.call(this,a)}):c.call(this,!1)},_node_changed:function(b){b=this.get_node(b),b&&-1===a.inArray(b.id,this._model.changed)&&this._model.changed.push(b.id)},_append_html_data:function(b,c,d){b=this.get_node(b),b.children=[],b.children_d=[];var e=c.is("ul")?c.children():c,f=b.id,g=[],h=[],i=this._model.data,j=i[f],k=this._data.core.selected.length,l,m,n;for(e.each(function(b,c){l=this._parse_model_from_html(a(c),f,j.parents.concat()),l&&(g.push(l),h.push(l),i[l].children_d.length&&(h=h.concat(i[l].children_d)))}.bind(this)),j.children=g,j.children_d=h,m=0,n=j.parents.length;n>m;m++)i[j.parents[m]].children_d=i[j.parents[m]].children_d.concat(h);this.trigger("model",{nodes:h,parent:f}),f!==a.jstree.root?(this._node_changed(f),this.redraw()):(this.get_container_ul().children(".jstree-initial-node").remove(),this.redraw(!0)),this._data.core.selected.length!==k&&this.trigger("changed",{action:"model",selected:this._data.core.selected}),d.call(this,!0)},_append_json_data:function(b,c,d,e){if(null!==this.element){b=this.get_node(b),b.children=[],b.children_d=[],c.d&&(c=c.d,"string"==typeof c&&(c=JSON.parse(c))),a.vakata.is_array(c)||(c=[c]);var f=null,g={df:this._model.default_state,dat:c,par:b.id,m:this._model.data,t_id:this._id,t_cnt:this._cnt,sel:this._data.core.selected},h=this,i=function(a,b){a.data&&(a=a.data);var c=a.dat,d=a.par,e=[],f=[],g=[],i=a.df,j=a.t_id,k=a.t_cnt,l=a.m,m=l[d],n=a.sel,o,p,q,r,s=function(a,c,d){d=d?d.concat():[],c&&d.unshift(c);var e=a.id.toString(),f,h,j,k,m={id:e,text:a.text||"",icon:a.icon!==b?a.icon:!0,parent:c,parents:d,children:a.children||[],children_d:a.children_d||[],data:a.data,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(f in i)i.hasOwnProperty(f)&&(m.state[f]=i[f]);if(a&&a.data&&a.data.jstree&&a.data.jstree.icon&&(m.icon=a.data.jstree.icon),(m.icon===b||null===m.icon||""===m.icon)&&(m.icon=!0),a&&a.data&&(m.data=a.data,a.data.jstree))for(f in a.data.jstree)a.data.jstree.hasOwnProperty(f)&&(m.state[f]=a.data.jstree[f]);if(a&&"object"==typeof a.state)for(f in a.state)a.state.hasOwnProperty(f)&&(m.state[f]=a.state[f]);if(a&&"object"==typeof a.li_attr)for(f in a.li_attr)a.li_attr.hasOwnProperty(f)&&(m.li_attr[f]=a.li_attr[f]);if(m.li_attr.id||(m.li_attr.id=e),a&&"object"==typeof a.a_attr)for(f in a.a_attr)a.a_attr.hasOwnProperty(f)&&(m.a_attr[f]=a.a_attr[f]);for(a&&a.children&&a.children===!0&&(m.state.loaded=!1,m.children=[],m.children_d=[]),l[m.id]=m,f=0,h=m.children.length;h>f;f++)j=s(l[m.children[f]],m.id,d),k=l[j],m.children_d.push(j),k.children_d.length&&(m.children_d=m.children_d.concat(k.children_d));return delete a.data,delete a.children,l[m.id].original=a,m.state.selected&&g.push(m.id),m.id},t=function(a,c,d){d=d?d.concat():[],c&&d.unshift(c);var e=!1,f,h,m,n,o;do e="j"+j+"_"+ ++k;while(l[e]);o={id:!1,text:"string"==typeof a?a:"",icon:"object"==typeof a&&a.icon!==b?a.icon:!0,parent:c,parents:d,children:[],children_d:[],data:null,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(f in i)i.hasOwnProperty(f)&&(o.state[f]=i[f]);if(a&&a.id&&(o.id=a.id.toString()),a&&a.text&&(o.text=a.text),a&&a.data&&a.data.jstree&&a.data.jstree.icon&&(o.icon=a.data.jstree.icon),(o.icon===b||null===o.icon||""===o.icon)&&(o.icon=!0),a&&a.data&&(o.data=a.data,a.data.jstree))for(f in a.data.jstree)a.data.jstree.hasOwnProperty(f)&&(o.state[f]=a.data.jstree[f]);if(a&&"object"==typeof a.state)for(f in a.state)a.state.hasOwnProperty(f)&&(o.state[f]=a.state[f]);if(a&&"object"==typeof a.li_attr)for(f in a.li_attr)a.li_attr.hasOwnProperty(f)&&(o.li_attr[f]=a.li_attr[f]);if(o.li_attr.id&&!o.id&&(o.id=o.li_attr.id.toString()),o.id||(o.id=e),o.li_attr.id||(o.li_attr.id=o.id),a&&"object"==typeof a.a_attr)for(f in a.a_attr)a.a_attr.hasOwnProperty(f)&&(o.a_attr[f]=a.a_attr[f]);if(a&&a.children&&a.children.length){for(f=0,h=a.children.length;h>f;f++)m=t(a.children[f],o.id,d),n=l[m],o.children.push(m),n.children_d.length&&(o.children_d=o.children_d.concat(n.children_d));o.children_d=o.children_d.concat(o.children)}return a&&a.children&&a.children===!0&&(o.state.loaded=!1,o.children=[],o.children_d=[]),delete a.data,delete a.children,o.original=a,l[o.id]=o,o.state.selected&&g.push(o.id),o.id};if(c.length&&c[0].id!==b&&c[0].parent!==b){for(p=0,q=c.length;q>p;p++)c[p].children||(c[p].children=[]),c[p].state||(c[p].state={}),l[c[p].id.toString()]=c[p];for(p=0,q=c.length;q>p;p++)l[c[p].parent.toString()]?(l[c[p].parent.toString()].children.push(c[p].id.toString()),m.children_d.push(c[p].id.toString())):"undefined"!=typeof h&&(h._data.core.last_error={error:"parse",plugin:"core",id:"core_07",reason:"Node with invalid parent",data:JSON.stringify({id:c[p].id.toString(),parent:c[p].parent.toString()})},h.settings.core.error.call(h,h._data.core.last_error));for(p=0,q=m.children.length;q>p;p++)o=s(l[m.children[p]],d,m.parents.concat()),f.push(o),l[o].children_d.length&&(f=f.concat(l[o].children_d));for(p=0,q=m.parents.length;q>p;p++)l[m.parents[p]].children_d=l[m.parents[p]].children_d.concat(f);r={cnt:k,mod:l,sel:n,par:d,dpc:f,add:g}}else{for(p=0,q=c.length;q>p;p++)o=t(c[p],d,m.parents.concat()),o&&(e.push(o),f.push(o),l[o].children_d.length&&(f=f.concat(l[o].children_d)));for(m.children=e,m.children_d=f,p=0,q=m.parents.length;q>p;p++)l[m.parents[p]].children_d=l[m.parents[p]].children_d.concat(f);r={cnt:k,mod:l,sel:n,par:d,dpc:f,add:g}}return"undefined"!=typeof window&&"undefined"!=typeof window.document?r:void postMessage(r)},k=function(b,c){if(null!==this.element){this._cnt=b.cnt;var e,f=this._model.data;for(e in f)f.hasOwnProperty(e)&&f[e].state&&f[e].state.loading&&b.mod[e]&&(b.mod[e].state.loading=!0);if(this._model.data=b.mod,c){var g,i=b.add,k=b.sel,l=this._data.core.selected.slice();if(f=this._model.data,k.length!==l.length||a.vakata.array_unique(k.concat(l)).length!==k.length){for(e=0,g=k.length;g>e;e++)-1===a.inArray(k[e],i)&&-1===a.inArray(k[e],l)&&(f[k[e]].state.selected=!1);for(e=0,g=l.length;g>e;e++)-1===a.inArray(l[e],k)&&(f[l[e]].state.selected=!0)}}b.add.length&&(this._data.core.selected=this._data.core.selected.concat(b.add)),this.trigger("model",{nodes:b.dpc,parent:b.par}),b.par!==a.jstree.root?(this._node_changed(b.par),this.redraw()):this.redraw(!0),b.add.length&&this.trigger("changed",{action:"model",selected:this._data.core.selected}),!c&&j?j(function(){d.call(h,!0)}):d.call(h,!0)}};if(this.settings.core.worker&&window.Blob&&window.URL&&window.Worker)try{null===this._wrk&&(this._wrk=window.URL.createObjectURL(new window.Blob(["self.onmessage = "+i.toString()],{type:"text/javascript"}))),!this._data.core.working||e?(this._data.core.working=!0,f=new window.Worker(this._wrk),f.onmessage=function(a){k.call(this,a.data,!0);try{f.terminate(),f=null}catch(b){}this._data.core.worker_queue.length?this._append_json_data.apply(this,this._data.core.worker_queue.shift()):this._data.core.working=!1}.bind(this),g.par?f.postMessage(g):this._data.core.worker_queue.length?this._append_json_data.apply(this,this._data.core.worker_queue.shift()):this._data.core.working=!1):this._data.core.worker_queue.push([b,c,d,!0])}catch(l){k.call(this,i(g),!1),this._data.core.worker_queue.length?this._append_json_data.apply(this,this._data.core.worker_queue.shift()):this._data.core.working=!1}else k.call(this,i(g),!1)}},_parse_model_from_html:function(c,d,e){e=e?[].concat(e):[],d&&e.unshift(d);var f,g,h=this._model.data,i={id:!1,text:!1,icon:!0,parent:d,parents:e,children:[],children_d:[],data:null,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1},j,k,l;for(j in this._model.default_state)this._model.default_state.hasOwnProperty(j)&&(i.state[j]=this._model.default_state[j]);if(k=a.vakata.attributes(c,!0),a.each(k,function(b,c){return c=a.vakata.trim(c),c.length?(i.li_attr[b]=c,void("id"===b&&(i.id=c.toString()))):!0}),k=c.children("a").first(),k.length&&(k=a.vakata.attributes(k,!0),a.each(k,function(b,c){c=a.vakata.trim(c),c.length&&(i.a_attr[b]=c)})),k=c.children("a").first().length?c.children("a").first().clone():c.clone(),k.children("ins, i, ul").remove(),k=k.html(),k=a("<div></div>").html(k),i.text=this.settings.core.force_text?k.text():k.html(),k=c.data(),i.data=k?a.extend(!0,{},k):null,i.state.opened=c.hasClass("jstree-open"),i.state.selected=c.children("a").hasClass("jstree-clicked"),i.state.disabled=c.children("a").hasClass("jstree-disabled"),i.data&&i.data.jstree)for(j in i.data.jstree)i.data.jstree.hasOwnProperty(j)&&(i.state[j]=i.data.jstree[j]);k=c.children("a").children(".jstree-themeicon"),k.length&&(i.icon=k.hasClass("jstree-themeicon-hidden")?!1:k.attr("rel")),i.state.icon!==b&&(i.icon=i.state.icon),(i.icon===b||null===i.icon||""===i.icon)&&(i.icon=!0),k=c.children("ul").children("li");do l="j"+this._id+"_"+ ++this._cnt;while(h[l]);return i.id=i.li_attr.id?i.li_attr.id.toString():l,k.length?(k.each(function(b,c){f=this._parse_model_from_html(a(c),i.id,e),g=this._model.data[f],i.children.push(f),g.children_d.length&&(i.children_d=i.children_d.concat(g.children_d))}.bind(this)),i.children_d=i.children_d.concat(i.children)):c.hasClass("jstree-closed")&&(i.state.loaded=!1),i.li_attr["class"]&&(i.li_attr["class"]=i.li_attr["class"].replace("jstree-closed","").replace("jstree-open","")),i.a_attr["class"]&&(i.a_attr["class"]=i.a_attr["class"].replace("jstree-clicked","").replace("jstree-disabled","")),h[i.id]=i,i.state.selected&&this._data.core.selected.push(i.id),i.id},_parse_model_from_flat_json:function(a,c,d){d=d?d.concat():[],c&&d.unshift(c);var e=a.id.toString(),f=this._model.data,g=this._model.default_state,h,i,j,k,l={id:e,text:a.text||"",icon:a.icon!==b?a.icon:!0,parent:c,parents:d,children:a.children||[],children_d:a.children_d||[],data:a.data,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(h in g)g.hasOwnProperty(h)&&(l.state[h]=g[h]);if(a&&a.data&&a.data.jstree&&a.data.jstree.icon&&(l.icon=a.data.jstree.icon),(l.icon===b||null===l.icon||""===l.icon)&&(l.icon=!0),a&&a.data&&(l.data=a.data,a.data.jstree))for(h in a.data.jstree)a.data.jstree.hasOwnProperty(h)&&(l.state[h]=a.data.jstree[h]);if(a&&"object"==typeof a.state)for(h in a.state)a.state.hasOwnProperty(h)&&(l.state[h]=a.state[h]);if(a&&"object"==typeof a.li_attr)for(h in a.li_attr)a.li_attr.hasOwnProperty(h)&&(l.li_attr[h]=a.li_attr[h]);if(l.li_attr.id||(l.li_attr.id=e),a&&"object"==typeof a.a_attr)for(h in a.a_attr)a.a_attr.hasOwnProperty(h)&&(l.a_attr[h]=a.a_attr[h]);for(a&&a.children&&a.children===!0&&(l.state.loaded=!1,l.children=[],l.children_d=[]),f[l.id]=l,h=0,i=l.children.length;i>h;h++)j=this._parse_model_from_flat_json(f[l.children[h]],l.id,d),k=f[j],l.children_d.push(j),k.children_d.length&&(l.children_d=l.children_d.concat(k.children_d));return delete a.data,delete a.children,f[l.id].original=a,l.state.selected&&this._data.core.selected.push(l.id),l.id},_parse_model_from_json:function(a,c,d){d=d?d.concat():[],c&&d.unshift(c);var e=!1,f,g,h,i,j=this._model.data,k=this._model.default_state,l;do e="j"+this._id+"_"+ ++this._cnt;while(j[e]);l={id:!1,text:"string"==typeof a?a:"",icon:"object"==typeof a&&a.icon!==b?a.icon:!0,parent:c,parents:d,children:[],children_d:[],data:null,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(f in k)k.hasOwnProperty(f)&&(l.state[f]=k[f]);if(a&&a.id&&(l.id=a.id.toString()),a&&a.text&&(l.text=a.text),a&&a.data&&a.data.jstree&&a.data.jstree.icon&&(l.icon=a.data.jstree.icon),(l.icon===b||null===l.icon||""===l.icon)&&(l.icon=!0),
|
3 |
+
a&&a.data&&(l.data=a.data,a.data.jstree))for(f in a.data.jstree)a.data.jstree.hasOwnProperty(f)&&(l.state[f]=a.data.jstree[f]);if(a&&"object"==typeof a.state)for(f in a.state)a.state.hasOwnProperty(f)&&(l.state[f]=a.state[f]);if(a&&"object"==typeof a.li_attr)for(f in a.li_attr)a.li_attr.hasOwnProperty(f)&&(l.li_attr[f]=a.li_attr[f]);if(l.li_attr.id&&!l.id&&(l.id=l.li_attr.id.toString()),l.id||(l.id=e),l.li_attr.id||(l.li_attr.id=l.id),a&&"object"==typeof a.a_attr)for(f in a.a_attr)a.a_attr.hasOwnProperty(f)&&(l.a_attr[f]=a.a_attr[f]);if(a&&a.children&&a.children.length){for(f=0,g=a.children.length;g>f;f++)h=this._parse_model_from_json(a.children[f],l.id,d),i=j[h],l.children.push(h),i.children_d.length&&(l.children_d=l.children_d.concat(i.children_d));l.children_d=l.children.concat(l.children_d)}return a&&a.children&&a.children===!0&&(l.state.loaded=!1,l.children=[],l.children_d=[]),delete a.data,delete a.children,l.original=a,j[l.id]=l,l.state.selected&&this._data.core.selected.push(l.id),l.id},_redraw:function(){var b=this._model.force_full_redraw?this._model.data[a.jstree.root].children.concat([]):this._model.changed.concat([]),c=i.createElement("UL"),d,e,f,g=this._data.core.focused;for(e=0,f=b.length;f>e;e++)d=this.redraw_node(b[e],!0,this._model.force_full_redraw),d&&this._model.force_full_redraw&&c.appendChild(d);this._model.force_full_redraw&&(c.className=this.get_container_ul()[0].className,c.setAttribute("role","group"),this.element.empty().append(c)),null!==g&&this.settings.core.restore_focus&&(d=this.get_node(g,!0),d&&d.length&&d.children(".jstree-anchor")[0]!==i.activeElement?d.children(".jstree-anchor").trigger("focus"):this._data.core.focused=null),this._model.force_full_redraw=!1,this._model.changed=[],this.trigger("redraw",{nodes:b})},redraw:function(a){a&&(this._model.force_full_redraw=!0),this._redraw()},draw_children:function(b){var c=this.get_node(b),d=!1,e=!1,f=!1,g=i;if(!c)return!1;if(c.id===a.jstree.root)return this.redraw(!0);if(b=this.get_node(b,!0),!b||!b.length)return!1;if(b.children(".jstree-children").remove(),b=b[0],c.children.length&&c.state.loaded){for(f=g.createElement("UL"),f.setAttribute("role","group"),f.className="jstree-children",d=0,e=c.children.length;e>d;d++)f.appendChild(this.redraw_node(c.children[d],!0,!0));b.appendChild(f)}},redraw_node:function(b,c,d,e){var f=this.get_node(b),g=!1,h=!1,j=!1,k=!1,l=!1,m=!1,n="",o=i,p=this._model.data,q=!1,r=!1,s=null,t=0,u=0,v=!1,w=!1;if(!f)return!1;if(f.id===a.jstree.root)return this.redraw(!0);if(c=c||0===f.children.length,b=i.querySelector?this.element[0].querySelector("#"+(-1!=="0123456789".indexOf(f.id[0])?"\\3"+f.id[0]+" "+f.id.substr(1).replace(a.jstree.idregex,"\\$&"):f.id.replace(a.jstree.idregex,"\\$&"))):i.getElementById(f.id))b=a(b),d||(g=b.parent().parent()[0],g===this.element[0]&&(g=null),h=b.index()),c||!f.children.length||b.children(".jstree-children").length||(c=!0),c||(j=b.children(".jstree-children")[0]),q=b.children(".jstree-anchor")[0]===i.activeElement,b.remove();else if(c=!0,!d){if(g=f.parent!==a.jstree.root?a("#"+f.parent.replace(a.jstree.idregex,"\\$&"),this.element)[0]:null,!(null===g||g&&p[f.parent].state.opened))return!1;h=a.inArray(f.id,null===g?p[a.jstree.root].children:p[f.parent].children)}b=this._data.core.node.cloneNode(!0),n="jstree-node ";for(k in f.li_attr)if(f.li_attr.hasOwnProperty(k)){if("id"===k)continue;"class"!==k?b.setAttribute(k,f.li_attr[k]):n+=f.li_attr[k]}for(f.a_attr.id||(f.a_attr.id=f.id+"_anchor"),b.childNodes[1].setAttribute("aria-selected",!!f.state.selected),b.childNodes[1].setAttribute("aria-level",f.parents.length),this.settings.core.compute_elements_positions&&(b.childNodes[1].setAttribute("aria-setsize",p[f.parent].children.length),b.childNodes[1].setAttribute("aria-posinset",p[f.parent].children.indexOf(f.id)+1)),f.state.disabled&&b.childNodes[1].setAttribute("aria-disabled",!0),k=0,l=f.children.length;l>k;k++)if(!p[f.children[k]].state.hidden){v=!0;break}if(null!==f.parent&&p[f.parent]&&!f.state.hidden&&(k=a.inArray(f.id,p[f.parent].children),w=f.id,-1!==k))for(k++,l=p[f.parent].children.length;l>k;k++)if(p[p[f.parent].children[k]].state.hidden||(w=p[f.parent].children[k]),w!==f.id)break;f.state.hidden&&(n+=" jstree-hidden"),f.state.loading&&(n+=" jstree-loading"),f.state.loaded&&!v?n+=" jstree-leaf":(n+=f.state.opened&&f.state.loaded?" jstree-open":" jstree-closed",b.childNodes[1].setAttribute("aria-expanded",f.state.opened&&f.state.loaded)),w===f.id&&(n+=" jstree-last"),b.id=f.id,b.className=n,n=(f.state.selected?" jstree-clicked":"")+(f.state.disabled?" jstree-disabled":"");for(l in f.a_attr)if(f.a_attr.hasOwnProperty(l)){if("href"===l&&"#"===f.a_attr[l])continue;"class"!==l?b.childNodes[1].setAttribute(l,f.a_attr[l]):n+=" "+f.a_attr[l]}if(n.length&&(b.childNodes[1].className="jstree-anchor "+n),(f.icon&&f.icon!==!0||f.icon===!1)&&(f.icon===!1?b.childNodes[1].childNodes[0].className+=" jstree-themeicon-hidden":-1===f.icon.indexOf("/")&&-1===f.icon.indexOf(".")?b.childNodes[1].childNodes[0].className+=" "+f.icon+" jstree-themeicon-custom":(b.childNodes[1].childNodes[0].style.backgroundImage='url("'+f.icon+'")',b.childNodes[1].childNodes[0].style.backgroundPosition="center center",b.childNodes[1].childNodes[0].style.backgroundSize="auto",b.childNodes[1].childNodes[0].className+=" jstree-themeicon-custom")),this.settings.core.force_text?b.childNodes[1].appendChild(o.createTextNode(f.text)):b.childNodes[1].innerHTML+=f.text,c&&f.children.length&&(f.state.opened||e)&&f.state.loaded){for(m=o.createElement("UL"),m.setAttribute("role","group"),m.className="jstree-children",k=0,l=f.children.length;l>k;k++)m.appendChild(this.redraw_node(f.children[k],c,!0));b.appendChild(m)}if(j&&b.appendChild(j),!d){for(g||(g=this.element[0]),k=0,l=g.childNodes.length;l>k;k++)if(g.childNodes[k]&&g.childNodes[k].className&&-1!==g.childNodes[k].className.indexOf("jstree-children")){s=g.childNodes[k];break}s||(s=o.createElement("UL"),s.setAttribute("role","group"),s.className="jstree-children",g.appendChild(s)),g=s,h<g.childNodes.length?g.insertBefore(b,g.childNodes[h]):g.appendChild(b),q&&(t=this.element[0].scrollTop,u=this.element[0].scrollLeft,b.childNodes[1].focus(),this.element[0].scrollTop=t,this.element[0].scrollLeft=u)}return f.state.opened&&!f.state.loaded&&(f.state.opened=!1,setTimeout(function(){this.open_node(f.id,!1,0)}.bind(this),0)),b},open_node:function(c,d,e){var f,g,h,i;if(a.vakata.is_array(c)){for(c=c.slice(),f=0,g=c.length;g>f;f++)this.open_node(c[f],d,e);return!0}return c=this.get_node(c),c&&c.id!==a.jstree.root?(e=e===b?this.settings.core.animation:e,this.is_closed(c)?this.is_loaded(c)?(h=this.get_node(c,!0),i=this,h.length&&(e&&h.children(".jstree-children").length&&h.children(".jstree-children").stop(!0,!0),c.children.length&&!this._firstChild(h.children(".jstree-children")[0])&&this.draw_children(c),e?(this.trigger("before_open",{node:c}),h.children(".jstree-children").css("display","none").end().removeClass("jstree-closed").addClass("jstree-open").children(".jstree-anchor").attr("aria-expanded",!0).end().children(".jstree-children").stop(!0,!0).slideDown(e,function(){this.style.display="",i.element&&i.trigger("after_open",{node:c})})):(this.trigger("before_open",{node:c}),h[0].className=h[0].className.replace("jstree-closed","jstree-open"),h[0].childNodes[1].setAttribute("aria-expanded",!0))),c.state.opened=!0,d&&d.call(this,c,!0),h.length||this.trigger("before_open",{node:c}),this.trigger("open_node",{node:c}),e&&h.length||this.trigger("after_open",{node:c}),!0):this.is_loading(c)?setTimeout(function(){this.open_node(c,d,e)}.bind(this),500):void this.load_node(c,function(a,b){return b?this.open_node(a,d,e):d?d.call(this,a,!1):!1}):(d&&d.call(this,c,!1),!1)):!1},_open_to:function(b){if(b=this.get_node(b),!b||b.id===a.jstree.root)return!1;var c,d,e=b.parents;for(c=0,d=e.length;d>c;c+=1)c!==a.jstree.root&&this.open_node(e[c],!1,0);return a("#"+b.id.replace(a.jstree.idregex,"\\$&"),this.element)},close_node:function(c,d){var e,f,g,h;if(a.vakata.is_array(c)){for(c=c.slice(),e=0,f=c.length;f>e;e++)this.close_node(c[e],d);return!0}return c=this.get_node(c),c&&c.id!==a.jstree.root?this.is_closed(c)?!1:(d=d===b?this.settings.core.animation:d,g=this,h=this.get_node(c,!0),c.state.opened=!1,this.trigger("close_node",{node:c}),void(h.length?d?h.children(".jstree-children").attr("style","display:block !important").end().removeClass("jstree-open").addClass("jstree-closed").children(".jstree-anchor").attr("aria-expanded",!1).end().children(".jstree-children").stop(!0,!0).slideUp(d,function(){this.style.display="",h.children(".jstree-children").remove(),g.element&&g.trigger("after_close",{node:c})}):(h[0].className=h[0].className.replace("jstree-open","jstree-closed"),h.children(".jstree-anchor").attr("aria-expanded",!1),h.children(".jstree-children").remove(),this.trigger("after_close",{node:c})):this.trigger("after_close",{node:c}))):!1},toggle_node:function(b){var c,d;if(a.vakata.is_array(b)){for(b=b.slice(),c=0,d=b.length;d>c;c++)this.toggle_node(b[c]);return!0}return this.is_closed(b)?this.open_node(b):this.is_open(b)?this.close_node(b):void 0},open_all:function(b,c,d){if(b||(b=a.jstree.root),b=this.get_node(b),!b)return!1;var e=b.id===a.jstree.root?this.get_container_ul():this.get_node(b,!0),f,g,h;if(!e.length){for(f=0,g=b.children_d.length;g>f;f++)this.is_closed(this._model.data[b.children_d[f]])&&(this._model.data[b.children_d[f]].state.opened=!0);return this.trigger("open_all",{node:b})}d=d||e,h=this,e=this.is_closed(b)?e.find(".jstree-closed").addBack():e.find(".jstree-closed"),e.each(function(){h.open_node(this,function(a,b){b&&this.is_parent(a)&&this.open_all(a,c,d)},c||0)}),0===d.find(".jstree-closed").length&&this.trigger("open_all",{node:this.get_node(d)})},close_all:function(b,c){if(b||(b=a.jstree.root),b=this.get_node(b),!b)return!1;var d=b.id===a.jstree.root?this.get_container_ul():this.get_node(b,!0),e=this,f,g;for(d.length&&(d=this.is_open(b)?d.find(".jstree-open").addBack():d.find(".jstree-open"),a(d.get().reverse()).each(function(){e.close_node(this,c||0)})),f=0,g=b.children_d.length;g>f;f++)this._model.data[b.children_d[f]].state.opened=!1;this.trigger("close_all",{node:b})},is_disabled:function(a){return a=this.get_node(a),a&&a.state&&a.state.disabled},enable_node:function(b){var c,d;if(a.vakata.is_array(b)){for(b=b.slice(),c=0,d=b.length;d>c;c++)this.enable_node(b[c]);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(b.state.disabled=!1,this.get_node(b,!0).children(".jstree-anchor").removeClass("jstree-disabled").attr("aria-disabled",!1),void this.trigger("enable_node",{node:b})):!1},disable_node:function(b){var c,d;if(a.vakata.is_array(b)){for(b=b.slice(),c=0,d=b.length;d>c;c++)this.disable_node(b[c]);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(b.state.disabled=!0,this.get_node(b,!0).children(".jstree-anchor").addClass("jstree-disabled").attr("aria-disabled",!0),void this.trigger("disable_node",{node:b})):!1},is_hidden:function(a){return a=this.get_node(a),a.state.hidden===!0},hide_node:function(b,c){var d,e;if(a.vakata.is_array(b)){for(b=b.slice(),d=0,e=b.length;e>d;d++)this.hide_node(b[d],!0);return c||this.redraw(),!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?void(b.state.hidden||(b.state.hidden=!0,this._node_changed(b.parent),c||this.redraw(),this.trigger("hide_node",{node:b}))):!1},show_node:function(b,c){var d,e;if(a.vakata.is_array(b)){for(b=b.slice(),d=0,e=b.length;e>d;d++)this.show_node(b[d],!0);return c||this.redraw(),!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?void(b.state.hidden&&(b.state.hidden=!1,this._node_changed(b.parent),c||this.redraw(),this.trigger("show_node",{node:b}))):!1},hide_all:function(b){var c,d=this._model.data,e=[];for(c in d)d.hasOwnProperty(c)&&c!==a.jstree.root&&!d[c].state.hidden&&(d[c].state.hidden=!0,e.push(c));return this._model.force_full_redraw=!0,b||this.redraw(),this.trigger("hide_all",{nodes:e}),e},show_all:function(b){var c,d=this._model.data,e=[];for(c in d)d.hasOwnProperty(c)&&c!==a.jstree.root&&d[c].state.hidden&&(d[c].state.hidden=!1,e.push(c));return this._model.force_full_redraw=!0,b||this.redraw(),this.trigger("show_all",{nodes:e}),e},activate_node:function(a,c){if(this.is_disabled(a))return!1;if(c&&"object"==typeof c||(c={}),this._data.core.last_clicked=this._data.core.last_clicked&&this._data.core.last_clicked.id!==b?this.get_node(this._data.core.last_clicked.id):null,this._data.core.last_clicked&&!this._data.core.last_clicked.state.selected&&(this._data.core.last_clicked=null),!this._data.core.last_clicked&&this._data.core.selected.length&&(this._data.core.last_clicked=this.get_node(this._data.core.selected[this._data.core.selected.length-1])),this.settings.core.multiple&&(c.metaKey||c.ctrlKey||c.shiftKey)&&(!c.shiftKey||this._data.core.last_clicked&&this.get_parent(a)&&this.get_parent(a)===this._data.core.last_clicked.parent))if(c.shiftKey){var d=this.get_node(a).id,e=this._data.core.last_clicked.id,f=this.get_node(this._data.core.last_clicked.parent).children,g=!1,h,i;for(h=0,i=f.length;i>h;h+=1)f[h]===d&&(g=!g),f[h]===e&&(g=!g),this.is_disabled(f[h])||!g&&f[h]!==d&&f[h]!==e?this.deselect_node(f[h],!0,c):this.is_hidden(f[h])||this.select_node(f[h],!0,!1,c);this.trigger("changed",{action:"select_node",node:this.get_node(a),selected:this._data.core.selected,event:c})}else this.is_selected(a)?this.deselect_node(a,!1,c):this.select_node(a,!1,!1,c);else!this.settings.core.multiple&&(c.metaKey||c.ctrlKey||c.shiftKey)&&this.is_selected(a)?this.deselect_node(a,!1,c):(this.deselect_all(!0),this.select_node(a,!1,!1,c),this._data.core.last_clicked=this.get_node(a));this.trigger("activate_node",{node:this.get_node(a),event:c})},hover_node:function(a){if(a=this.get_node(a,!0),!a||!a.length||a.children(".jstree-hovered").length)return!1;var b=this.element.find(".jstree-hovered"),c=this.element;b&&b.length&&this.dehover_node(b),a.children(".jstree-anchor").addClass("jstree-hovered"),this.trigger("hover_node",{node:this.get_node(a)}),setTimeout(function(){c.attr("aria-activedescendant",a[0].id)},0)},dehover_node:function(a){return a=this.get_node(a,!0),a&&a.length&&a.children(".jstree-hovered").length?(a.children(".jstree-anchor").removeClass("jstree-hovered"),void this.trigger("dehover_node",{node:this.get_node(a)})):!1},select_node:function(b,c,d,e){var f,g,h,i;if(a.vakata.is_array(b)){for(b=b.slice(),g=0,h=b.length;h>g;g++)this.select_node(b[g],c,d,e);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(f=this.get_node(b,!0),void(b.state.selected||(b.state.selected=!0,this._data.core.selected.push(b.id),d||(f=this._open_to(b)),f&&f.length&&f.children(".jstree-anchor").addClass("jstree-clicked").attr("aria-selected",!0),this.trigger("select_node",{node:b,selected:this._data.core.selected,event:e}),c||this.trigger("changed",{action:"select_node",node:b,selected:this._data.core.selected,event:e})))):!1},deselect_node:function(b,c,d){var e,f,g;if(a.vakata.is_array(b)){for(b=b.slice(),e=0,f=b.length;f>e;e++)this.deselect_node(b[e],c,d);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(g=this.get_node(b,!0),void(b.state.selected&&(b.state.selected=!1,this._data.core.selected=a.vakata.array_remove_item(this._data.core.selected,b.id),g.length&&g.children(".jstree-anchor").removeClass("jstree-clicked").attr("aria-selected",!1),this.trigger("deselect_node",{node:b,selected:this._data.core.selected,event:d}),c||this.trigger("changed",{action:"deselect_node",node:b,selected:this._data.core.selected,event:d})))):!1},select_all:function(b){var c=this._data.core.selected.concat([]),d,e;for(this._data.core.selected=this._model.data[a.jstree.root].children_d.concat(),d=0,e=this._data.core.selected.length;e>d;d++)this._model.data[this._data.core.selected[d]]&&(this._model.data[this._data.core.selected[d]].state.selected=!0);this.redraw(!0),this.trigger("select_all",{selected:this._data.core.selected}),b||this.trigger("changed",{action:"select_all",selected:this._data.core.selected,old_selection:c})},deselect_all:function(a){var b=this._data.core.selected.concat([]),c,d;for(c=0,d=this._data.core.selected.length;d>c;c++)this._model.data[this._data.core.selected[c]]&&(this._model.data[this._data.core.selected[c]].state.selected=!1);this._data.core.selected=[],this.element.find(".jstree-clicked").removeClass("jstree-clicked").attr("aria-selected",!1),this.trigger("deselect_all",{selected:this._data.core.selected,node:b}),a||this.trigger("changed",{action:"deselect_all",selected:this._data.core.selected,old_selection:b})},is_selected:function(b){return b=this.get_node(b),b&&b.id!==a.jstree.root?b.state.selected:!1},get_selected:function(b){return b?a.map(this._data.core.selected,function(a){return this.get_node(a)}.bind(this)):this._data.core.selected.slice()},get_top_selected:function(b){var c=this.get_selected(!0),d={},e,f,g,h;for(e=0,f=c.length;f>e;e++)d[c[e].id]=c[e];for(e=0,f=c.length;f>e;e++)for(g=0,h=c[e].children_d.length;h>g;g++)d[c[e].children_d[g]]&&delete d[c[e].children_d[g]];c=[];for(e in d)d.hasOwnProperty(e)&&c.push(e);return b?a.map(c,function(a){return this.get_node(a)}.bind(this)):c},get_bottom_selected:function(b){var c=this.get_selected(!0),d=[],e,f;for(e=0,f=c.length;f>e;e++)c[e].children.length||d.push(c[e].id);return b?a.map(d,function(a){return this.get_node(a)}.bind(this)):d},get_state:function(){var b={core:{open:[],loaded:[],scroll:{left:this.element.scrollLeft(),top:this.element.scrollTop()},selected:[]}},c;for(c in this._model.data)this._model.data.hasOwnProperty(c)&&c!==a.jstree.root&&(this._model.data[c].state.loaded&&this.settings.core.loaded_state&&b.core.loaded.push(c),this._model.data[c].state.opened&&b.core.open.push(c),this._model.data[c].state.selected&&b.core.selected.push(c));return b},set_state:function(c,d){if(c){if(c.core&&c.core.selected&&c.core.initial_selection===b&&(c.core.initial_selection=this._data.core.selected.concat([]).sort().join(",")),c.core){var e,f,g,h,i;if(c.core.loaded)return this.settings.core.loaded_state&&a.vakata.is_array(c.core.loaded)&&c.core.loaded.length?this._load_nodes(c.core.loaded,function(a){delete c.core.loaded,this.set_state(c,d)}):(delete c.core.loaded,this.set_state(c,d)),!1;if(c.core.open)return a.vakata.is_array(c.core.open)&&c.core.open.length?this._load_nodes(c.core.open,function(a){this.open_node(a,!1,0),delete c.core.open,this.set_state(c,d)}):(delete c.core.open,this.set_state(c,d)),!1;if(c.core.scroll)return c.core.scroll&&c.core.scroll.left!==b&&this.element.scrollLeft(c.core.scroll.left),c.core.scroll&&c.core.scroll.top!==b&&this.element.scrollTop(c.core.scroll.top),delete c.core.scroll,this.set_state(c,d),!1;if(c.core.selected)return h=this,(c.core.initial_selection===b||c.core.initial_selection===this._data.core.selected.concat([]).sort().join(","))&&(this.deselect_all(),a.each(c.core.selected,function(a,b){h.select_node(b,!1,!0)})),delete c.core.initial_selection,delete c.core.selected,this.set_state(c,d),!1;for(i in c)c.hasOwnProperty(i)&&"core"!==i&&-1===a.inArray(i,this.settings.plugins)&&delete c[i];if(a.isEmptyObject(c.core))return delete c.core,this.set_state(c,d),!1}return a.isEmptyObject(c)?(c=null,d&&d.call(this),this.trigger("set_state"),!1):!0}return!1},refresh:function(b,c){this._data.core.state=c===!0?{}:this.get_state(),c&&a.vakata.is_function(c)&&(this._data.core.state=c.call(this,this._data.core.state)),this._cnt=0,this._model.data={},this._model.data[a.jstree.root]={id:a.jstree.root,parent:null,parents:[],children:[],children_d:[],state:{loaded:!1}},this._data.core.selected=[],this._data.core.last_clicked=null,this._data.core.focused=null;var d=this.get_container_ul()[0].className;b||(this.element.html("<ul class='"+d+"' role='group'><li class='jstree-initial-node jstree-loading jstree-leaf jstree-last' role='none' id='j"+this._id+"_loading'><i class='jstree-icon jstree-ocl'></i><a class='jstree-anchor' role='treeitem' href='#'><i class='jstree-icon jstree-themeicon-hidden'></i>"+this.get_string("Loading ...")+"</a></li></ul>"),this.element.attr("aria-activedescendant","j"+this._id+"_loading")),this.load_node(a.jstree.root,function(b,c){c&&(this.get_container_ul()[0].className=d,this._firstChild(this.get_container_ul()[0])&&this.element.attr("aria-activedescendant",this._firstChild(this.get_container_ul()[0]).id),this.set_state(a.extend(!0,{},this._data.core.state),function(){this.trigger("refresh")})),this._data.core.state=null})},refresh_node:function(b){if(b=this.get_node(b),!b||b.id===a.jstree.root)return!1;var c=[],d=[],e=this._data.core.selected.concat([]);d.push(b.id),b.state.opened===!0&&c.push(b.id),this.get_node(b,!0).find(".jstree-open").each(function(){d.push(this.id),c.push(this.id)}),this._load_nodes(d,function(a){this.open_node(c,!1,0),this.select_node(e),this.trigger("refresh_node",{node:b,nodes:a})}.bind(this),!1,!0)},set_id:function(b,c){if(b=this.get_node(b),!b||b.id===a.jstree.root)return!1;var d,e,f=this._model.data,g=b.id;for(c=c.toString(),f[b.parent].children[a.inArray(b.id,f[b.parent].children)]=c,d=0,e=b.parents.length;e>d;d++)f[b.parents[d]].children_d[a.inArray(b.id,f[b.parents[d]].children_d)]=c;for(d=0,e=b.children.length;e>d;d++)f[b.children[d]].parent=c;for(d=0,e=b.children_d.length;e>d;d++)f[b.children_d[d]].parents[a.inArray(b.id,f[b.children_d[d]].parents)]=c;return d=a.inArray(b.id,this._data.core.selected),-1!==d&&(this._data.core.selected[d]=c),d=this.get_node(b.id,!0),d&&(d.attr("id",c),this.element.attr("aria-activedescendant")===b.id&&this.element.attr("aria-activedescendant",c)),delete f[b.id],b.id=c,b.li_attr.id=c,f[c]=b,this.trigger("set_id",{node:b,"new":b.id,old:g}),!0},get_text:function(b){return b=this.get_node(b),b&&b.id!==a.jstree.root?b.text:!1},set_text:function(b,c){var d,e;if(a.vakata.is_array(b)){for(b=b.slice(),d=0,e=b.length;e>d;d++)this.set_text(b[d],c);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(b.text=c,this.get_node(b,!0).length&&this.redraw_node(b.id),this.trigger("set_text",{obj:b,text:c}),!0):!1},get_json:function(b,c,d){if(b=this.get_node(b||a.jstree.root),!b)return!1;c&&c.flat&&!d&&(d=[]);var e={id:b.id,text:b.text,icon:this.get_icon(b),li_attr:a.extend(!0,{},b.li_attr),a_attr:a.extend(!0,{},b.a_attr),state:{},data:c&&c.no_data?!1:a.extend(!0,a.vakata.is_array(b.data)?[]:{},b.data)},f,g;if(c&&c.flat?e.parent=b.parent:e.children=[],c&&c.no_state)delete e.state;else for(f in b.state)b.state.hasOwnProperty(f)&&(e.state[f]=b.state[f]);if(c&&c.no_li_attr&&delete e.li_attr,c&&c.no_a_attr&&delete e.a_attr,c&&c.no_id&&(delete e.id,e.li_attr&&e.li_attr.id&&delete e.li_attr.id,e.a_attr&&e.a_attr.id&&delete e.a_attr.id),c&&c.flat&&b.id!==a.jstree.root&&d.push(e),!c||!c.no_children)for(f=0,g=b.children.length;g>f;f++)c&&c.flat?this.get_json(b.children[f],c,d):e.children.push(this.get_json(b.children[f],c));return c&&c.flat?d:b.id===a.jstree.root?e.children:e},create_node:function(c,d,e,f,g){if(null===c&&(c=a.jstree.root),c=this.get_node(c),!c)return!1;if(e=e===b?"last":e,!e.toString().match(/^(before|after)$/)&&!g&&!this.is_loaded(c))return this.load_node(c,function(){this.create_node(c,d,e,f,!0)});d||(d={text:this.get_string("New node")}),d="string"==typeof d?{text:d}:a.extend(!0,{},d),d.text===b&&(d.text=this.get_string("New node"));var h,i,j,k;switch(c.id===a.jstree.root&&("before"===e&&(e="first"),"after"===e&&(e="last")),e){case"before":h=this.get_node(c.parent),e=a.inArray(c.id,h.children),c=h;break;case"after":h=this.get_node(c.parent),e=a.inArray(c.id,h.children)+1,c=h;break;case"inside":case"first":e=0;break;case"last":e=c.children.length;break;default:e||(e=0)}if(e>c.children.length&&(e=c.children.length),d.id||(d.id=!0),!this.check("create_node",d,c,e))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(d.id===!0&&delete d.id,d=this._parse_model_from_json(d,c.id,c.parents.concat()),!d)return!1;for(h=this.get_node(d),i=[],i.push(d),i=i.concat(h.children_d),this.trigger("model",{nodes:i,parent:c.id}),c.children_d=c.children_d.concat(i),j=0,k=c.parents.length;k>j;j++)this._model.data[c.parents[j]].children_d=this._model.data[c.parents[j]].children_d.concat(i);for(d=h,h=[],j=0,k=c.children.length;k>j;j++)h[j>=e?j+1:j]=c.children[j];return h[e]=d.id,c.children=h,this.redraw_node(c,!0),this.trigger("create_node",{node:this.get_node(d),parent:c.id,position:e}),f&&f.call(this,this.get_node(d)),d.id},rename_node:function(b,c){var d,e,f;if(a.vakata.is_array(b)){for(b=b.slice(),d=0,e=b.length;e>d;d++)this.rename_node(b[d],c);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(f=b.text,this.check("rename_node",b,this.get_parent(b),c)?(this.set_text(b,c),this.trigger("rename_node",{node:b,text:c,old:f}),!0):(this.settings.core.error.call(this,this._data.core.last_error),!1)):!1},delete_node:function(b){var c,d,e,f,g,h,i,j,k,l,m,n;if(a.vakata.is_array(b)){for(b=b.slice(),c=0,d=b.length;d>c;c++)this.delete_node(b[c]);return!0}if(b=this.get_node(b),!b||b.id===a.jstree.root)return!1;if(e=this.get_node(b.parent),f=a.inArray(b.id,e.children),l=!1,!this.check("delete_node",b,e,f))return this.settings.core.error.call(this,this._data.core.last_error),!1;for(-1!==f&&(e.children=a.vakata.array_remove(e.children,f)),g=b.children_d.concat([]),g.push(b.id),h=0,i=b.parents.length;i>h;h++)this._model.data[b.parents[h]].children_d=a.vakata.array_filter(this._model.data[b.parents[h]].children_d,function(b){return-1===a.inArray(b,g)});for(j=0,k=g.length;k>j;j++)if(this._model.data[g[j]].state.selected){l=!0;break}for(l&&(this._data.core.selected=a.vakata.array_filter(this._data.core.selected,function(b){return-1===a.inArray(b,g)})),this.trigger("delete_node",{node:b,parent:e.id}),l&&this.trigger("changed",{action:"delete_node",node:b,selected:this._data.core.selected,parent:e.id}),j=0,k=g.length;k>j;j++)delete this._model.data[g[j]];return-1!==a.inArray(this._data.core.focused,g)&&(this._data.core.focused=null,m=this.element[0].scrollTop,n=this.element[0].scrollLeft,e.id===a.jstree.root?this._model.data[a.jstree.root].children[0]&&this.get_node(this._model.data[a.jstree.root].children[0],!0).children(".jstree-anchor").trigger("focus"):this.get_node(e,!0).children(".jstree-anchor").trigger("focus"),this.element[0].scrollTop=m,this.element[0].scrollLeft=n),this.redraw_node(e,!0),!0},check:function(b,c,d,e,f){c=c&&c.id?c:this.get_node(c),d=d&&d.id?d:this.get_node(d);var g=b.match(/^move_node|copy_node|create_node$/i)?d:c,h=this.settings.core.check_callback;if("move_node"===b||"copy_node"===b){if(!(f&&f.is_multi||"move_node"!==b||a.inArray(c.id,d.children)!==e))return this._data.core.last_error={error:"check",plugin:"core",id:"core_08",reason:"Moving node to its current position",data:JSON.stringify({chk:b,pos:e,obj:c&&c.id?c.id:!1,par:d&&d.id?d.id:!1})},!1;if(!(f&&f.is_multi||c.id!==d.id&&("move_node"!==b||a.inArray(c.id,d.children)!==e)&&-1===a.inArray(d.id,c.children_d)))return this._data.core.last_error={error:"check",plugin:"core",id:"core_01",reason:"Moving parent inside child",data:JSON.stringify({chk:b,pos:e,obj:c&&c.id?c.id:!1,par:d&&d.id?d.id:!1})},!1}return g&&g.data&&(g=g.data),g&&g.functions&&(g.functions[b]===!1||g.functions[b]===!0)?(g.functions[b]===!1&&(this._data.core.last_error={error:"check",plugin:"core",id:"core_02",reason:"Node data prevents function: "+b,data:JSON.stringify({chk:b,pos:e,obj:c&&c.id?c.id:!1,par:d&&d.id?d.id:!1})}),g.functions[b]):h===!1||a.vakata.is_function(h)&&h.call(this,b,c,d,e,f)===!1||h&&h[b]===!1?(this._data.core.last_error={error:"check",plugin:"core",id:"core_03",reason:"User config for core.check_callback prevents function: "+b,data:JSON.stringify({chk:b,pos:e,obj:c&&c.id?c.id:!1,par:d&&d.id?d.id:!1})},!1):!0},last_error:function(){return this._data.core.last_error},move_node:function(c,d,e,f,g,h,i){var j,k,l,m,n,o,p,q,r,s,t,u,v,w;if(d=this.get_node(d),e=e===b?0:e,!d)return!1;if(!e.toString().match(/^(before|after)$/)&&!g&&!this.is_loaded(d))return this.load_node(d,function(){this.move_node(c,d,e,f,!0,!1,i)});if(a.vakata.is_array(c)){if(1!==c.length){for(j=0,k=c.length;k>j;j++)(r=this.move_node(c[j],d,e,f,g,!1,i))&&(d=r,e="after");return this.redraw(),!0}c=c[0]}if(c=c&&c.id?c:this.get_node(c),!c||c.id===a.jstree.root)return!1;if(l=(c.parent||a.jstree.root).toString(),n=e.toString().match(/^(before|after)$/)&&d.id!==a.jstree.root?this.get_node(d.parent):d,o=i?i:this._model.data[c.id]?this:a.jstree.reference(c.id),p=!o||!o._id||this._id!==o._id,m=o&&o._id&&l&&o._model.data[l]&&o._model.data[l].children?a.inArray(c.id,o._model.data[l].children):-1,o&&o._id&&(c=o._model.data[c.id]),p)return(r=this.copy_node(c,d,e,f,g,!1,i))?(o&&o.delete_node(c),r):!1;switch(d.id===a.jstree.root&&("before"===e&&(e="first"),"after"===e&&(e="last")),e){case"before":e=a.inArray(d.id,n.children);break;case"after":e=a.inArray(d.id,n.children)+1;break;case"inside":case"first":e=0;break;case"last":e=n.children.length;break;default:e||(e=0)}if(e>n.children.length&&(e=n.children.length),!this.check("move_node",c,n,e,{core:!0,origin:i,is_multi:o&&o._id&&o._id!==this._id,is_foreign:!o||!o._id}))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(c.parent===n.id){for(q=n.children.concat(),r=a.inArray(c.id,q),-1!==r&&(q=a.vakata.array_remove(q,r),e>r&&e--),r=[],s=0,t=q.length;t>s;s++)r[s>=e?s+1:s]=q[s];r[e]=c.id,n.children=r,this._node_changed(n.id),this.redraw(n.id===a.jstree.root)}else{for(r=c.children_d.concat(),r.push(c.id),s=0,t=c.parents.length;t>s;s++){for(q=[],w=o._model.data[c.parents[s]].children_d,u=0,v=w.length;v>u;u++)-1===a.inArray(w[u],r)&&q.push(w[u]);o._model.data[c.parents[s]].children_d=q}for(o._model.data[l].children=a.vakata.array_remove_item(o._model.data[l].children,c.id),s=0,t=n.parents.length;t>s;s++)this._model.data[n.parents[s]].children_d=this._model.data[n.parents[s]].children_d.concat(r);for(q=[],s=0,t=n.children.length;t>s;s++)q[s>=e?s+1:s]=n.children[s];for(q[e]=c.id,n.children=q,n.children_d.push(c.id),n.children_d=n.children_d.concat(c.children_d),c.parent=n.id,r=n.parents.concat(),r.unshift(n.id),w=c.parents.length,c.parents=r,r=r.concat(),s=0,t=c.children_d.length;t>s;s++)this._model.data[c.children_d[s]].parents=this._model.data[c.children_d[s]].parents.slice(0,-1*w),Array.prototype.push.apply(this._model.data[c.children_d[s]].parents,r);(l===a.jstree.root||n.id===a.jstree.root)&&(this._model.force_full_redraw=!0),this._model.force_full_redraw||(this._node_changed(l),this._node_changed(n.id)),h||this.redraw()}return f&&f.call(this,c,n,e),this.trigger("move_node",{node:c,parent:n.id,position:e,old_parent:l,old_position:m,is_multi:o&&o._id&&o._id!==this._id,is_foreign:!o||!o._id,old_instance:o,new_instance:this}),c.id},copy_node:function(c,d,e,f,g,h,i){var j,k,l,m,n,o,p,q,r,s,t;if(d=this.get_node(d),e=e===b?0:e,!d)return!1;if(!e.toString().match(/^(before|after)$/)&&!g&&!this.is_loaded(d))return this.load_node(d,function(){this.copy_node(c,d,e,f,!0,!1,i)});if(a.vakata.is_array(c)){if(1!==c.length){for(j=0,k=c.length;k>j;j++)(m=this.copy_node(c[j],d,e,f,g,!0,i))&&(d=m,e="after");return this.redraw(),!0}c=c[0]}if(c=c&&c.id?c:this.get_node(c),!c||c.id===a.jstree.root)return!1;switch(q=(c.parent||a.jstree.root).toString(),r=e.toString().match(/^(before|after)$/)&&d.id!==a.jstree.root?this.get_node(d.parent):d,s=i?i:this._model.data[c.id]?this:a.jstree.reference(c.id),t=!s||!s._id||this._id!==s._id,s&&s._id&&(c=s._model.data[c.id]),d.id===a.jstree.root&&("before"===e&&(e="first"),"after"===e&&(e="last")),e){case"before":e=a.inArray(d.id,r.children);break;case"after":e=a.inArray(d.id,r.children)+1;break;case"inside":case"first":e=0;break;case"last":e=r.children.length;break;default:e||(e=0)}if(e>r.children.length&&(e=r.children.length),!this.check("copy_node",c,r,e,{core:!0,origin:i,is_multi:s&&s._id&&s._id!==this._id,is_foreign:!s||!s._id}))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(p=s?s.get_json(c,{no_id:!0,no_data:!0,no_state:!0}):c,!p)return!1;if(p.id===!0&&delete p.id,p=this._parse_model_from_json(p,r.id,r.parents.concat()),
|
4 |
+
!p)return!1;for(m=this.get_node(p),c&&c.state&&c.state.loaded===!1&&(m.state.loaded=!1),l=[],l.push(p),l=l.concat(m.children_d),this.trigger("model",{nodes:l,parent:r.id}),n=0,o=r.parents.length;o>n;n++)this._model.data[r.parents[n]].children_d=this._model.data[r.parents[n]].children_d.concat(l);for(l=[],n=0,o=r.children.length;o>n;n++)l[n>=e?n+1:n]=r.children[n];return l[e]=m.id,r.children=l,r.children_d.push(m.id),r.children_d=r.children_d.concat(m.children_d),r.id===a.jstree.root&&(this._model.force_full_redraw=!0),this._model.force_full_redraw||this._node_changed(r.id),h||this.redraw(r.id===a.jstree.root),f&&f.call(this,m,r,e),this.trigger("copy_node",{node:m,original:c,parent:r.id,position:e,old_parent:q,old_position:s&&s._id&&q&&s._model.data[q]&&s._model.data[q].children?a.inArray(c.id,s._model.data[q].children):-1,is_multi:s&&s._id&&s._id!==this._id,is_foreign:!s||!s._id,old_instance:s,new_instance:this}),m.id},cut:function(b){if(b||(b=this._data.core.selected.concat()),a.vakata.is_array(b)||(b=[b]),!b.length)return!1;var c=[],g,h,i;for(h=0,i=b.length;i>h;h++)g=this.get_node(b[h]),g&&g.id&&g.id!==a.jstree.root&&c.push(g);return c.length?(d=c,f=this,e="move_node",void this.trigger("cut",{node:b})):!1},copy:function(b){if(b||(b=this._data.core.selected.concat()),a.vakata.is_array(b)||(b=[b]),!b.length)return!1;var c=[],g,h,i;for(h=0,i=b.length;i>h;h++)g=this.get_node(b[h]),g&&g.id&&g.id!==a.jstree.root&&c.push(g);return c.length?(d=c,f=this,e="copy_node",void this.trigger("copy",{node:b})):!1},get_buffer:function(){return{mode:e,node:d,inst:f}},can_paste:function(){return e!==!1&&d!==!1},paste:function(a,b){return a=this.get_node(a),a&&e&&e.match(/^(copy_node|move_node)$/)&&d?(this[e](d,a,b,!1,!1,!1,f)&&this.trigger("paste",{parent:a.id,node:d,mode:e}),d=!1,e=!1,void(f=!1)):!1},clear_buffer:function(){d=!1,e=!1,f=!1,this.trigger("clear_buffer")},edit:function(b,c,d){var e,f,g,h,j,k,l,m,n,o=!1;return(b=this.get_node(b))?this.check("edit",b,this.get_parent(b))?(n=b,c="string"==typeof c?c:b.text,this.set_text(b,""),b=this._open_to(b),n.text=c,e=this._data.core.rtl,f=this.element.width(),this._data.core.focused=n.id,g=b.children(".jstree-anchor").trigger("focus"),h=a("<span></span>"),j=c,k=a("<div></div>",{css:{position:"absolute",top:"-200px",left:e?"0px":"-1000px",visibility:"hidden"}}).appendTo(i.body),l=a("<input />",{value:j,"class":"jstree-rename-input",css:{padding:"0",border:"1px solid silver","box-sizing":"border-box",display:"inline-block",height:this._data.core.li_height+"px",lineHeight:this._data.core.li_height+"px",width:"150px"},blur:function(c){c.stopImmediatePropagation(),c.preventDefault();var e=h.children(".jstree-rename-input"),f=e.val(),i=this.settings.core.force_text,m;""===f&&(f=j),k.remove(),h.replaceWith(g),h.remove(),j=i?j:a("<div></div>").append(a.parseHTML(j)).html(),b=this.get_node(b),this.set_text(b,j),m=!!this.rename_node(b,i?a("<div></div>").text(f).text():a("<div></div>").append(a.parseHTML(f)).html()),m||this.set_text(b,j),this._data.core.focused=n.id,setTimeout(function(){var a=this.get_node(n.id,!0);a.length&&(this._data.core.focused=n.id,a.children(".jstree-anchor").trigger("focus"))}.bind(this),0),d&&d.call(this,n,m,o,f),l=null}.bind(this),keydown:function(a){var b=a.which;27===b&&(o=!0,this.value=j),(27===b||13===b||37===b||38===b||39===b||40===b||32===b)&&a.stopImmediatePropagation(),(27===b||13===b)&&(a.preventDefault(),this.blur())},click:function(a){a.stopImmediatePropagation()},mousedown:function(a){a.stopImmediatePropagation()},keyup:function(a){l.width(Math.min(k.text("pW"+this.value).width(),f))},keypress:function(a){return 13===a.which?!1:void 0}}),m={fontFamily:g.css("fontFamily")||"",fontSize:g.css("fontSize")||"",fontWeight:g.css("fontWeight")||"",fontStyle:g.css("fontStyle")||"",fontStretch:g.css("fontStretch")||"",fontVariant:g.css("fontVariant")||"",letterSpacing:g.css("letterSpacing")||"",wordSpacing:g.css("wordSpacing")||""},h.attr("class",g.attr("class")).append(g.contents().clone()).append(l),g.replaceWith(h),k.css(m),l.css(m).width(Math.min(k.text("pW"+l[0].value).width(),f))[0].select(),void a(i).one("mousedown.jstree touchstart.jstree dnd_start.vakata",function(b){l&&b.target!==l&&a(l).trigger("blur")})):(this.settings.core.error.call(this,this._data.core.last_error),!1):!1},set_theme:function(b,c){if(!b)return!1;if(c===!0){var d=this.settings.core.themes.dir;d||(d=a.jstree.path+"/themes"),c=d+"/"+b+"/style.css"}c&&-1===a.inArray(c,g)&&(a("head").append('<link rel="stylesheet" href="'+c+'" type="text/css" />'),g.push(c)),this._data.core.themes.name&&this.element.removeClass("jstree-"+this._data.core.themes.name),this._data.core.themes.name=b,this.element.addClass("jstree-"+b),this.element[this.settings.core.themes.responsive?"addClass":"removeClass"]("jstree-"+b+"-responsive"),this.trigger("set_theme",{theme:b})},get_theme:function(){return this._data.core.themes.name},set_theme_variant:function(a){this._data.core.themes.variant&&this.element.removeClass("jstree-"+this._data.core.themes.name+"-"+this._data.core.themes.variant),this._data.core.themes.variant=a,a&&this.element.addClass("jstree-"+this._data.core.themes.name+"-"+this._data.core.themes.variant)},get_theme_variant:function(){return this._data.core.themes.variant},show_stripes:function(){this._data.core.themes.stripes=!0,this.get_container_ul().addClass("jstree-striped"),this.trigger("show_stripes")},hide_stripes:function(){this._data.core.themes.stripes=!1,this.get_container_ul().removeClass("jstree-striped"),this.trigger("hide_stripes")},toggle_stripes:function(){this._data.core.themes.stripes?this.hide_stripes():this.show_stripes()},show_dots:function(){this._data.core.themes.dots=!0,this.get_container_ul().removeClass("jstree-no-dots"),this.trigger("show_dots")},hide_dots:function(){this._data.core.themes.dots=!1,this.get_container_ul().addClass("jstree-no-dots"),this.trigger("hide_dots")},toggle_dots:function(){this._data.core.themes.dots?this.hide_dots():this.show_dots()},show_icons:function(){this._data.core.themes.icons=!0,this.get_container_ul().removeClass("jstree-no-icons"),this.trigger("show_icons")},hide_icons:function(){this._data.core.themes.icons=!1,this.get_container_ul().addClass("jstree-no-icons"),this.trigger("hide_icons")},toggle_icons:function(){this._data.core.themes.icons?this.hide_icons():this.show_icons()},show_ellipsis:function(){this._data.core.themes.ellipsis=!0,this.get_container_ul().addClass("jstree-ellipsis"),this.trigger("show_ellipsis")},hide_ellipsis:function(){this._data.core.themes.ellipsis=!1,this.get_container_ul().removeClass("jstree-ellipsis"),this.trigger("hide_ellipsis")},toggle_ellipsis:function(){this._data.core.themes.ellipsis?this.hide_ellipsis():this.show_ellipsis()},set_icon:function(c,d){var e,f,g,h;if(a.vakata.is_array(c)){for(c=c.slice(),e=0,f=c.length;f>e;e++)this.set_icon(c[e],d);return!0}return c=this.get_node(c),c&&c.id!==a.jstree.root?(h=c.icon,c.icon=d===!0||null===d||d===b||""===d?!0:d,g=this.get_node(c,!0).children(".jstree-anchor").children(".jstree-themeicon"),d===!1?(g.removeClass("jstree-themeicon-custom "+h).css("background","").removeAttr("rel"),this.hide_icon(c)):d===!0||null===d||d===b||""===d?(g.removeClass("jstree-themeicon-custom "+h).css("background","").removeAttr("rel"),h===!1&&this.show_icon(c)):-1===d.indexOf("/")&&-1===d.indexOf(".")?(g.removeClass(h).css("background",""),g.addClass(d+" jstree-themeicon-custom").attr("rel",d),h===!1&&this.show_icon(c)):(g.removeClass(h).css("background",""),g.addClass("jstree-themeicon-custom").css("background","url('"+d+"') center center no-repeat").attr("rel",d),h===!1&&this.show_icon(c)),!0):!1},get_icon:function(b){return b=this.get_node(b),b&&b.id!==a.jstree.root?b.icon:!1},hide_icon:function(b){var c,d;if(a.vakata.is_array(b)){for(b=b.slice(),c=0,d=b.length;d>c;c++)this.hide_icon(b[c]);return!0}return b=this.get_node(b),b&&b!==a.jstree.root?(b.icon=!1,this.get_node(b,!0).children(".jstree-anchor").children(".jstree-themeicon").addClass("jstree-themeicon-hidden"),!0):!1},show_icon:function(b){var c,d,e;if(a.vakata.is_array(b)){for(b=b.slice(),c=0,d=b.length;d>c;c++)this.show_icon(b[c]);return!0}return b=this.get_node(b),b&&b!==a.jstree.root?(e=this.get_node(b,!0),b.icon=e.length?e.children(".jstree-anchor").children(".jstree-themeicon").attr("rel"):!0,b.icon||(b.icon=!0),e.children(".jstree-anchor").children(".jstree-themeicon").removeClass("jstree-themeicon-hidden"),!0):!1}},a.vakata={},a.vakata.attributes=function(b,c){b=a(b)[0];var d=c?{}:[];return b&&b.attributes&&a.each(b.attributes,function(b,e){-1===a.inArray(e.name.toLowerCase(),["style","contenteditable","hasfocus","tabindex"])&&null!==e.value&&""!==a.vakata.trim(e.value)&&(c?d[e.name]=e.value:d.push(e.name))}),d},a.vakata.array_unique=function(a){var c=[],d,e,f,g={};for(d=0,f=a.length;f>d;d++)g[a[d]]===b&&(c.push(a[d]),g[a[d]]=!0);return c},a.vakata.array_remove=function(a,b){return a.splice(b,1),a},a.vakata.array_remove_item=function(b,c){var d=a.inArray(c,b);return-1!==d?a.vakata.array_remove(b,d):b},a.vakata.array_filter=function(a,b,c,d,e){if(a.filter)return a.filter(b,c);d=[];for(e in a)~~e+""==e+""&&e>=0&&b.call(c,a[e],+e,a)&&d.push(a[e]);return d},a.vakata.trim=function(a){return String.prototype.trim?String.prototype.trim.call(a.toString()):a.toString().replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},a.vakata.is_function=function(a){return"function"==typeof a&&"number"!=typeof a.nodeType},a.vakata.is_array=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)},Function.prototype.bind||(Function.prototype.bind=function(){var a=this,b=arguments[0],c=Array.prototype.slice.call(arguments,1);if("function"!=typeof a)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");return function(){var d=c.concat(Array.prototype.slice.call(arguments));return a.apply(b,d)}}),a.jstree.plugins.changed=function(a,b){var c=[];this.trigger=function(a,d){var e,f;if(d||(d={}),"changed"===a.replace(".jstree","")){d.changed={selected:[],deselected:[]};var g={};for(e=0,f=c.length;f>e;e++)g[c[e]]=1;for(e=0,f=d.selected.length;f>e;e++)g[d.selected[e]]?g[d.selected[e]]=2:d.changed.selected.push(d.selected[e]);for(e=0,f=c.length;f>e;e++)1===g[c[e]]&&d.changed.deselected.push(c[e]);c=d.selected.slice()}b.trigger.call(this,a,d)},this.refresh=function(a,d){return c=[],b.refresh.apply(this,arguments)}};var l=i.createElement("I");l.className="jstree-icon jstree-checkbox",l.setAttribute("role","presentation"),a.jstree.defaults.checkbox={visible:!0,three_state:!0,whole_node:!0,keep_selected_style:!0,cascade:"",tie_selection:!0,cascade_to_disabled:!0,cascade_to_hidden:!0},a.jstree.plugins.checkbox=function(c,d){this.bind=function(){d.bind.call(this),this._data.checkbox.uto=!1,this._data.checkbox.selected=[],this.settings.checkbox.three_state&&(this.settings.checkbox.cascade="up+down+undetermined"),this.element.on("init.jstree",function(){this._data.checkbox.visible=this.settings.checkbox.visible,this.settings.checkbox.keep_selected_style||this.element.addClass("jstree-checkbox-no-clicked"),this.settings.checkbox.tie_selection&&this.element.addClass("jstree-checkbox-selection")}.bind(this)).on("loading.jstree",function(){this[this._data.checkbox.visible?"show_checkboxes":"hide_checkboxes"]()}.bind(this)),-1!==this.settings.checkbox.cascade.indexOf("undetermined")&&this.element.on("changed.jstree uncheck_node.jstree check_node.jstree uncheck_all.jstree check_all.jstree move_node.jstree copy_node.jstree redraw.jstree open_node.jstree",function(){this._data.checkbox.uto&&clearTimeout(this._data.checkbox.uto),this._data.checkbox.uto=setTimeout(this._undetermined.bind(this),50)}.bind(this)),this.settings.checkbox.tie_selection||this.element.on("model.jstree",function(a,b){var c=this._model.data,d=c[b.parent],e=b.nodes,f,g;for(f=0,g=e.length;g>f;f++)c[e[f]].state.checked=c[e[f]].state.checked||c[e[f]].original&&c[e[f]].original.state&&c[e[f]].original.state.checked,c[e[f]].state.checked&&this._data.checkbox.selected.push(e[f])}.bind(this)),(-1!==this.settings.checkbox.cascade.indexOf("up")||-1!==this.settings.checkbox.cascade.indexOf("down"))&&this.element.on("model.jstree",function(b,c){var d=this._model.data,e=d[c.parent],f=c.nodes,g=[],h,i,j,k,l,m,n=this.settings.checkbox.cascade,o=this.settings.checkbox.tie_selection;if(-1!==n.indexOf("down"))if(e.state[o?"selected":"checked"]){for(i=0,j=f.length;j>i;i++)d[f[i]].state[o?"selected":"checked"]=!0;this._data[o?"core":"checkbox"].selected=this._data[o?"core":"checkbox"].selected.concat(f)}else for(i=0,j=f.length;j>i;i++)if(d[f[i]].state[o?"selected":"checked"]){for(k=0,l=d[f[i]].children_d.length;l>k;k++)d[d[f[i]].children_d[k]].state[o?"selected":"checked"]=!0;this._data[o?"core":"checkbox"].selected=this._data[o?"core":"checkbox"].selected.concat(d[f[i]].children_d)}if(-1!==n.indexOf("up")){for(i=0,j=e.children_d.length;j>i;i++)d[e.children_d[i]].children.length||g.push(d[e.children_d[i]].parent);for(g=a.vakata.array_unique(g),k=0,l=g.length;l>k;k++){e=d[g[k]];while(e&&e.id!==a.jstree.root){for(h=0,i=0,j=e.children.length;j>i;i++)h+=d[e.children[i]].state[o?"selected":"checked"];if(h!==j)break;e.state[o?"selected":"checked"]=!0,this._data[o?"core":"checkbox"].selected.push(e.id),m=this.get_node(e,!0),m&&m.length&&m.attr("aria-selected",!0).children(".jstree-anchor").addClass(o?"jstree-clicked":"jstree-checked"),e=this.get_node(e.parent)}}}this._data[o?"core":"checkbox"].selected=a.vakata.array_unique(this._data[o?"core":"checkbox"].selected)}.bind(this)).on(this.settings.checkbox.tie_selection?"select_node.jstree":"check_node.jstree",function(b,c){var d=this,e=c.node,f=this._model.data,g=this.get_node(e.parent),h,i,j,k,l=this.settings.checkbox.cascade,m=this.settings.checkbox.tie_selection,n={},o=this._data[m?"core":"checkbox"].selected;for(h=0,i=o.length;i>h;h++)n[o[h]]=!0;if(-1!==l.indexOf("down")){var p=this._cascade_new_checked_state(e.id,!0),q=e.children_d.concat(e.id);for(h=0,i=q.length;i>h;h++)p.indexOf(q[h])>-1?n[q[h]]=!0:delete n[q[h]]}if(-1!==l.indexOf("up"))while(g&&g.id!==a.jstree.root){for(j=0,h=0,i=g.children.length;i>h;h++)j+=f[g.children[h]].state[m?"selected":"checked"];if(j!==i)break;g.state[m?"selected":"checked"]=!0,n[g.id]=!0,k=this.get_node(g,!0),k&&k.length&&k.attr("aria-selected",!0).children(".jstree-anchor").addClass(m?"jstree-clicked":"jstree-checked"),g=this.get_node(g.parent)}o=[];for(h in n)n.hasOwnProperty(h)&&o.push(h);this._data[m?"core":"checkbox"].selected=o}.bind(this)).on(this.settings.checkbox.tie_selection?"deselect_all.jstree":"uncheck_all.jstree",function(b,c){var d=this.get_node(a.jstree.root),e=this._model.data,f,g,h;for(f=0,g=d.children_d.length;g>f;f++)h=e[d.children_d[f]],h&&h.original&&h.original.state&&h.original.state.undetermined&&(h.original.state.undetermined=!1)}.bind(this)).on(this.settings.checkbox.tie_selection?"deselect_node.jstree":"uncheck_node.jstree",function(b,c){var d=this,e=c.node,f=this.get_node(e,!0),g,h,i,j=this.settings.checkbox.cascade,k=this.settings.checkbox.tie_selection,l=this._data[k?"core":"checkbox"].selected,m={},n=[],o=e.children_d.concat(e.id);if(-1!==j.indexOf("down")){var p=this._cascade_new_checked_state(e.id,!1);l=a.vakata.array_filter(l,function(a){return-1===o.indexOf(a)||p.indexOf(a)>-1})}if(-1!==j.indexOf("up")&&-1===l.indexOf(e.id)){for(g=0,h=e.parents.length;h>g;g++)i=this._model.data[e.parents[g]],i.state[k?"selected":"checked"]=!1,i&&i.original&&i.original.state&&i.original.state.undetermined&&(i.original.state.undetermined=!1),i=this.get_node(e.parents[g],!0),i&&i.length&&i.attr("aria-selected",!1).children(".jstree-anchor").removeClass(k?"jstree-clicked":"jstree-checked");l=a.vakata.array_filter(l,function(a){return-1===e.parents.indexOf(a)})}this._data[k?"core":"checkbox"].selected=l}.bind(this)),-1!==this.settings.checkbox.cascade.indexOf("up")&&this.element.on("delete_node.jstree",function(b,c){var d=this.get_node(c.parent),e=this._model.data,f,g,h,i,j=this.settings.checkbox.tie_selection;while(d&&d.id!==a.jstree.root&&!d.state[j?"selected":"checked"]){for(h=0,f=0,g=d.children.length;g>f;f++)h+=e[d.children[f]].state[j?"selected":"checked"];if(!(g>0&&h===g))break;d.state[j?"selected":"checked"]=!0,this._data[j?"core":"checkbox"].selected.push(d.id),i=this.get_node(d,!0),i&&i.length&&i.attr("aria-selected",!0).children(".jstree-anchor").addClass(j?"jstree-clicked":"jstree-checked"),d=this.get_node(d.parent)}}.bind(this)).on("move_node.jstree",function(b,c){var d=c.is_multi,e=c.old_parent,f=this.get_node(c.parent),g=this._model.data,h,i,j,k,l,m=this.settings.checkbox.tie_selection;if(!d){h=this.get_node(e);while(h&&h.id!==a.jstree.root&&!h.state[m?"selected":"checked"]){for(i=0,j=0,k=h.children.length;k>j;j++)i+=g[h.children[j]].state[m?"selected":"checked"];if(!(k>0&&i===k))break;h.state[m?"selected":"checked"]=!0,this._data[m?"core":"checkbox"].selected.push(h.id),l=this.get_node(h,!0),l&&l.length&&l.attr("aria-selected",!0).children(".jstree-anchor").addClass(m?"jstree-clicked":"jstree-checked"),h=this.get_node(h.parent)}}h=f;while(h&&h.id!==a.jstree.root){for(i=0,j=0,k=h.children.length;k>j;j++)i+=g[h.children[j]].state[m?"selected":"checked"];if(i===k)h.state[m?"selected":"checked"]||(h.state[m?"selected":"checked"]=!0,this._data[m?"core":"checkbox"].selected.push(h.id),l=this.get_node(h,!0),l&&l.length&&l.attr("aria-selected",!0).children(".jstree-anchor").addClass(m?"jstree-clicked":"jstree-checked"));else{if(!h.state[m?"selected":"checked"])break;h.state[m?"selected":"checked"]=!1,this._data[m?"core":"checkbox"].selected=a.vakata.array_remove_item(this._data[m?"core":"checkbox"].selected,h.id),l=this.get_node(h,!0),l&&l.length&&l.attr("aria-selected",!1).children(".jstree-anchor").removeClass(m?"jstree-clicked":"jstree-checked")}h=this.get_node(h.parent)}}.bind(this))},this.get_undetermined=function(c){if(-1===this.settings.checkbox.cascade.indexOf("undetermined"))return[];var d,e,f,g,h={},i=this._model.data,j=this.settings.checkbox.tie_selection,k=this._data[j?"core":"checkbox"].selected,l=[],m=this,n=[];for(d=0,e=k.length;e>d;d++)if(i[k[d]]&&i[k[d]].parents)for(f=0,g=i[k[d]].parents.length;g>f;f++){if(h[i[k[d]].parents[f]]!==b)break;i[k[d]].parents[f]!==a.jstree.root&&(h[i[k[d]].parents[f]]=!0,l.push(i[k[d]].parents[f]))}for(this.element.find(".jstree-closed").not(":has(.jstree-children)").each(function(){var c=m.get_node(this),j;if(c)if(c.state.loaded){for(d=0,e=c.children_d.length;e>d;d++)if(j=i[c.children_d[d]],!j.state.loaded&&j.original&&j.original.state&&j.original.state.undetermined&&j.original.state.undetermined===!0)for(h[j.id]===b&&j.id!==a.jstree.root&&(h[j.id]=!0,l.push(j.id)),f=0,g=j.parents.length;g>f;f++)h[j.parents[f]]===b&&j.parents[f]!==a.jstree.root&&(h[j.parents[f]]=!0,l.push(j.parents[f]))}else if(c.original&&c.original.state&&c.original.state.undetermined&&c.original.state.undetermined===!0)for(h[c.id]===b&&c.id!==a.jstree.root&&(h[c.id]=!0,l.push(c.id)),f=0,g=c.parents.length;g>f;f++)h[c.parents[f]]===b&&c.parents[f]!==a.jstree.root&&(h[c.parents[f]]=!0,l.push(c.parents[f]))}),d=0,e=l.length;e>d;d++)i[l[d]].state[j?"selected":"checked"]||n.push(c?i[l[d]]:l[d]);return n},this._undetermined=function(){if(null!==this.element){var a=this.get_undetermined(!1),b,c,d;for(this.element.find(".jstree-undetermined").removeClass("jstree-undetermined"),b=0,c=a.length;c>b;b++)d=this.get_node(a[b],!0),d&&d.length&&d.children(".jstree-anchor").children(".jstree-checkbox").addClass("jstree-undetermined")}},this.redraw_node=function(a,b,c,e){if(a=d.redraw_node.apply(this,arguments)){var f,g,h=null,i=null;for(f=0,g=a.childNodes.length;g>f;f++)if(a.childNodes[f]&&a.childNodes[f].className&&-1!==a.childNodes[f].className.indexOf("jstree-anchor")){h=a.childNodes[f];break}h&&(!this.settings.checkbox.tie_selection&&this._model.data[a.id].state.checked&&(h.className+=" jstree-checked"),i=l.cloneNode(!1),this._model.data[a.id].state.checkbox_disabled&&(i.className+=" jstree-checkbox-disabled"),h.insertBefore(i,h.childNodes[0]))}return c||-1===this.settings.checkbox.cascade.indexOf("undetermined")||(this._data.checkbox.uto&&clearTimeout(this._data.checkbox.uto),this._data.checkbox.uto=setTimeout(this._undetermined.bind(this),50)),a},this.show_checkboxes=function(){this._data.core.themes.checkboxes=!0,this.get_container_ul().removeClass("jstree-no-checkboxes")},this.hide_checkboxes=function(){this._data.core.themes.checkboxes=!1,this.get_container_ul().addClass("jstree-no-checkboxes")},this.toggle_checkboxes=function(){this._data.core.themes.checkboxes?this.hide_checkboxes():this.show_checkboxes()},this.is_undetermined=function(b){b=this.get_node(b);var c=this.settings.checkbox.cascade,d,e,f=this.settings.checkbox.tie_selection,g=this._data[f?"core":"checkbox"].selected,h=this._model.data;if(!b||b.state[f?"selected":"checked"]===!0||-1===c.indexOf("undetermined")||-1===c.indexOf("down")&&-1===c.indexOf("up"))return!1;if(!b.state.loaded&&b.original.state.undetermined===!0)return!0;for(d=0,e=b.children_d.length;e>d;d++)if(-1!==a.inArray(b.children_d[d],g)||!h[b.children_d[d]].state.loaded&&h[b.children_d[d]].original.state.undetermined)return!0;return!1},this.disable_checkbox=function(b){var c,d,e;if(a.vakata.is_array(b)){for(b=b.slice(),c=0,d=b.length;d>c;c++)this.disable_checkbox(b[c]);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(e=this.get_node(b,!0),void(b.state.checkbox_disabled||(b.state.checkbox_disabled=!0,e&&e.length&&e.children(".jstree-anchor").children(".jstree-checkbox").addClass("jstree-checkbox-disabled"),this.trigger("disable_checkbox",{node:b})))):!1},this.enable_checkbox=function(b){var c,d,e;if(a.vakata.is_array(b)){for(b=b.slice(),c=0,d=b.length;d>c;c++)this.enable_checkbox(b[c]);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(e=this.get_node(b,!0),void(b.state.checkbox_disabled&&(b.state.checkbox_disabled=!1,e&&e.length&&e.children(".jstree-anchor").children(".jstree-checkbox").removeClass("jstree-checkbox-disabled"),this.trigger("enable_checkbox",{node:b})))):!1},this.activate_node=function(b,c){return a(c.target).hasClass("jstree-checkbox-disabled")?!1:(this.settings.checkbox.tie_selection&&(this.settings.checkbox.whole_node||a(c.target).hasClass("jstree-checkbox"))&&(c.ctrlKey=!0),this.settings.checkbox.tie_selection||!this.settings.checkbox.whole_node&&!a(c.target).hasClass("jstree-checkbox")?d.activate_node.call(this,b,c):this.is_disabled(b)?!1:(this.is_checked(b)?this.uncheck_node(b,c):this.check_node(b,c),void this.trigger("activate_node",{node:this.get_node(b)})))},this._cascade_new_checked_state=function(a,b){var c=this,d=this.settings.checkbox.tie_selection,e=this._model.data[a],f=[],g=[],h,i,j;if(!this.settings.checkbox.cascade_to_disabled&&e.state.disabled||!this.settings.checkbox.cascade_to_hidden&&e.state.hidden)j=this.get_checked_descendants(a),e.state[d?"selected":"checked"]&&j.push(e.id),f=f.concat(j);else{if(e.children)for(h=0,i=e.children.length;i>h;h++){var k=e.children[h];j=c._cascade_new_checked_state(k,b),f=f.concat(j),j.indexOf(k)>-1&&g.push(k)}var l=c.get_node(e,!0),m=g.length>0&&g.length<e.children.length;e.original&&e.original.state&&e.original.state.undetermined&&(e.original.state.undetermined=m),m?(e.state[d?"selected":"checked"]=!1,l.attr("aria-selected",!1).children(".jstree-anchor").removeClass(d?"jstree-clicked":"jstree-checked")):b&&g.length===e.children.length?(e.state[d?"selected":"checked"]=b,f.push(e.id),l.attr("aria-selected",!0).children(".jstree-anchor").addClass(d?"jstree-clicked":"jstree-checked")):(e.state[d?"selected":"checked"]=!1,l.attr("aria-selected",!1).children(".jstree-anchor").removeClass(d?"jstree-clicked":"jstree-checked"))}return f},this.get_checked_descendants=function(b){var c=this,d=c.settings.checkbox.tie_selection,e=c._model.data[b];return a.vakata.array_filter(e.children_d,function(a){return c._model.data[a].state[d?"selected":"checked"]})},this.check_node=function(b,c){if(this.settings.checkbox.tie_selection)return this.select_node(b,!1,!0,c);var d,e,f,g;if(a.vakata.is_array(b)){for(b=b.slice(),e=0,f=b.length;f>e;e++)this.check_node(b[e],c);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(d=this.get_node(b,!0),void(b.state.checked||(b.state.checked=!0,this._data.checkbox.selected.push(b.id),d&&d.length&&d.children(".jstree-anchor").addClass("jstree-checked"),this.trigger("check_node",{node:b,selected:this._data.checkbox.selected,event:c})))):!1},this.uncheck_node=function(b,c){if(this.settings.checkbox.tie_selection)return this.deselect_node(b,!1,c);var d,e,f;if(a.vakata.is_array(b)){for(b=b.slice(),d=0,e=b.length;e>d;d++)this.uncheck_node(b[d],c);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(f=this.get_node(b,!0),void(b.state.checked&&(b.state.checked=!1,this._data.checkbox.selected=a.vakata.array_remove_item(this._data.checkbox.selected,b.id),f.length&&f.children(".jstree-anchor").removeClass("jstree-checked"),this.trigger("uncheck_node",{node:b,selected:this._data.checkbox.selected,event:c})))):!1},this.check_all=function(){if(this.settings.checkbox.tie_selection)return this.select_all();var b=this._data.checkbox.selected.concat([]),c,d;for(this._data.checkbox.selected=this._model.data[a.jstree.root].children_d.concat(),c=0,d=this._data.checkbox.selected.length;d>c;c++)this._model.data[this._data.checkbox.selected[c]]&&(this._model.data[this._data.checkbox.selected[c]].state.checked=!0);this.redraw(!0),this.trigger("check_all",{selected:this._data.checkbox.selected})},this.uncheck_all=function(){if(this.settings.checkbox.tie_selection)return this.deselect_all();var a=this._data.checkbox.selected.concat([]),b,c;for(b=0,c=this._data.checkbox.selected.length;c>b;b++)this._model.data[this._data.checkbox.selected[b]]&&(this._model.data[this._data.checkbox.selected[b]].state.checked=!1);this._data.checkbox.selected=[],this.element.find(".jstree-checked").removeClass("jstree-checked"),this.trigger("uncheck_all",{selected:this._data.checkbox.selected,node:a})},this.is_checked=function(b){return this.settings.checkbox.tie_selection?this.is_selected(b):(b=this.get_node(b),b&&b.id!==a.jstree.root?b.state.checked:!1)},this.get_checked=function(b){return this.settings.checkbox.tie_selection?this.get_selected(b):b?a.map(this._data.checkbox.selected,function(a){return this.get_node(a)}.bind(this)):this._data.checkbox.selected.slice()},this.get_top_checked=function(b){if(this.settings.checkbox.tie_selection)return this.get_top_selected(b);var c=this.get_checked(!0),d={},e,f,g,h;for(e=0,f=c.length;f>e;e++)d[c[e].id]=c[e];for(e=0,f=c.length;f>e;e++)for(g=0,h=c[e].children_d.length;h>g;g++)d[c[e].children_d[g]]&&delete d[c[e].children_d[g]];c=[];for(e in d)d.hasOwnProperty(e)&&c.push(e);return b?a.map(c,function(a){return this.get_node(a)}.bind(this)):c},this.get_bottom_checked=function(b){if(this.settings.checkbox.tie_selection)return this.get_bottom_selected(b);var c=this.get_checked(!0),d=[],e,f;for(e=0,f=c.length;f>e;e++)c[e].children.length||d.push(c[e].id);return b?a.map(d,function(a){return this.get_node(a)}.bind(this)):d},this.load_node=function(b,c){var e,f,g,h,i,j;if(!a.vakata.is_array(b)&&!this.settings.checkbox.tie_selection&&(j=this.get_node(b),j&&j.state.loaded))for(e=0,f=j.children_d.length;f>e;e++)this._model.data[j.children_d[e]].state.checked&&(i=!0,this._data.checkbox.selected=a.vakata.array_remove_item(this._data.checkbox.selected,j.children_d[e]));return d.load_node.apply(this,arguments)},this.get_state=function(){var a=d.get_state.apply(this,arguments);return this.settings.checkbox.tie_selection?a:(a.checkbox=this._data.checkbox.selected.slice(),a)},this.set_state=function(b,c){var e=d.set_state.apply(this,arguments);if(e&&b.checkbox){if(!this.settings.checkbox.tie_selection){this.uncheck_all();var f=this;a.each(b.checkbox,function(a,b){f.check_node(b)})}return delete b.checkbox,this.set_state(b,c),!1}return e},this.refresh=function(a,b){return this.settings.checkbox.tie_selection&&(this._data.checkbox.selected=[]),d.refresh.apply(this,arguments)}},a.jstree.defaults.conditionalselect=function(){return!0},a.jstree.plugins.conditionalselect=function(a,b){this.activate_node=function(a,c){return this.settings.conditionalselect.call(this,this.get_node(a),c)?b.activate_node.call(this,a,c):void 0}},a.jstree.defaults.contextmenu={select_node:!0,show_at_node:!0,items:function(b,c){return{create:{separator_before:!1,separator_after:!0,_disabled:!1,label:"Create",action:function(b){var c=a.jstree.reference(b.reference),d=c.get_node(b.reference);c.create_node(d,{},"last",function(a){try{c.edit(a)}catch(b){setTimeout(function(){c.edit(a)},0)}})}},rename:{separator_before:!1,separator_after:!1,_disabled:!1,label:"Rename",action:function(b){var c=a.jstree.reference(b.reference),d=c.get_node(b.reference);c.edit(d)}},remove:{separator_before:!1,icon:!1,separator_after:!1,_disabled:!1,label:"Delete",action:function(b){var c=a.jstree.reference(b.reference),d=c.get_node(b.reference);c.is_selected(d)?c.delete_node(c.get_selected()):c.delete_node(d)}},ccp:{separator_before:!0,icon:!1,separator_after:!1,label:"Edit",action:!1,submenu:{cut:{separator_before:!1,separator_after:!1,label:"Cut",action:function(b){var c=a.jstree.reference(b.reference),d=c.get_node(b.reference);c.is_selected(d)?c.cut(c.get_top_selected()):c.cut(d)}},copy:{separator_before:!1,icon:!1,separator_after:!1,label:"Copy",action:function(b){var c=a.jstree.reference(b.reference),d=c.get_node(b.reference);c.is_selected(d)?c.copy(c.get_top_selected()):c.copy(d)}},paste:{separator_before:!1,icon:!1,_disabled:function(b){return!a.jstree.reference(b.reference).can_paste()},separator_after:!1,label:"Paste",action:function(b){var c=a.jstree.reference(b.reference),d=c.get_node(b.reference);c.paste(d)}}}}}}},a.jstree.plugins.contextmenu=function(c,d){this.bind=function(){d.bind.call(this);var b=0,c=null,e,f;this.element.on("init.jstree loading.jstree ready.jstree",function(){this.get_container_ul().addClass("jstree-contextmenu")}.bind(this)).on("contextmenu.jstree",".jstree-anchor",function(a,d){"input"!==a.target.tagName.toLowerCase()&&(a.preventDefault(),b=a.ctrlKey?+new Date:0,(d||c)&&(b=+new Date+1e4),c&&clearTimeout(c),this.is_loading(a.currentTarget)||this.show_contextmenu(a.currentTarget,a.pageX,a.pageY,a))}.bind(this)).on("click.jstree",".jstree-anchor",function(c){this._data.contextmenu.visible&&(!b||+new Date-b>250)&&a.vakata.context.hide(),b=0}.bind(this)).on("touchstart.jstree",".jstree-anchor",function(b){b.originalEvent&&b.originalEvent.changedTouches&&b.originalEvent.changedTouches[0]&&(e=b.originalEvent.changedTouches[0].clientX,f=b.originalEvent.changedTouches[0].clientY,c=setTimeout(function(){a(b.currentTarget).trigger("contextmenu",!0)},750))}).on("touchmove.vakata.jstree",function(b){c&&b.originalEvent&&b.originalEvent.changedTouches&&b.originalEvent.changedTouches[0]&&(Math.abs(e-b.originalEvent.changedTouches[0].clientX)>10||Math.abs(f-b.originalEvent.changedTouches[0].clientY)>10)&&(clearTimeout(c),a.vakata.context.hide())}).on("touchend.vakata.jstree",function(a){c&&clearTimeout(c)}),a(i).on("context_hide.vakata.jstree",function(b,c){this._data.contextmenu.visible=!1,a(c.reference).removeClass("jstree-context")}.bind(this))},this.teardown=function(){this._data.contextmenu.visible&&a.vakata.context.hide(),a(i).off("context_hide.vakata.jstree"),d.teardown.call(this)},this.show_contextmenu=function(c,d,e,f){if(c=this.get_node(c),!c||c.id===a.jstree.root)return!1;var g=this.settings.contextmenu,h=this.get_node(c,!0),i=h.children(".jstree-anchor"),j=!1,k=!1;(g.show_at_node||d===b||e===b)&&(j=i.offset(),d=j.left,e=j.top+this._data.core.li_height),this.settings.contextmenu.select_node&&!this.is_selected(c)&&this.activate_node(c,f),k=g.items,a.vakata.is_function(k)&&(k=k.call(this,c,function(a){this._show_contextmenu(c,d,e,a)}.bind(this))),a.isPlainObject(k)&&this._show_contextmenu(c,d,e,k)},this._show_contextmenu=function(b,c,d,e){
|
5 |
+
var f=this.get_node(b,!0),g=f.children(".jstree-anchor");a(i).one("context_show.vakata.jstree",function(b,c){var d="jstree-contextmenu jstree-"+this.get_theme()+"-contextmenu";a(c.element).addClass(d),g.addClass("jstree-context")}.bind(this)),this._data.contextmenu.visible=!0,a.vakata.context.show(g,{x:c,y:d},e),this.trigger("show_contextmenu",{node:b,x:c,y:d})}},function(a){var b=!1,c={element:!1,reference:!1,position_x:0,position_y:0,items:[],html:"",is_visible:!1};a.vakata.context={settings:{hide_onmouseleave:0,icons:!0},_trigger:function(b){a(i).triggerHandler("context_"+b+".vakata",{reference:c.reference,element:c.element,position:{x:c.position_x,y:c.position_y}})},_execute:function(b){return b=c.items[b],b&&(!b._disabled||a.vakata.is_function(b._disabled)&&!b._disabled({item:b,reference:c.reference,element:c.element}))&&b.action?b.action.call(null,{item:b,reference:c.reference,element:c.element,position:{x:c.position_x,y:c.position_y}}):!1},_parse:function(b,d){if(!b)return!1;d||(c.html="",c.items=[]);var e="",f=!1,g;return d&&(e+="<ul>"),a.each(b,function(b,d){return d?(c.items.push(d),!f&&d.separator_before&&(e+="<li class='vakata-context-separator'><a href='#' "+(a.vakata.context.settings.icons?"":'class="vakata-context-no-icons"')+"> </a></li>"),f=!1,e+="<li class='"+(d._class||"")+(d._disabled===!0||a.vakata.is_function(d._disabled)&&d._disabled({item:d,reference:c.reference,element:c.element})?" vakata-contextmenu-disabled ":"")+"' "+(d.shortcut?" data-shortcut='"+d.shortcut+"' ":"")+">",e+="<a href='#' rel='"+(c.items.length-1)+"' "+(d.title?"title='"+d.title+"'":"")+">",a.vakata.context.settings.icons&&(e+="<i ",d.icon&&(e+=-1!==d.icon.indexOf("/")||-1!==d.icon.indexOf(".")?" style='background:url(\""+d.icon+"\") center center no-repeat' ":" class='"+d.icon+"' "),e+="></i><span class='vakata-contextmenu-sep'> </span>"),e+=(a.vakata.is_function(d.label)?d.label({item:b,reference:c.reference,element:c.element}):d.label)+(d.shortcut?' <span class="vakata-contextmenu-shortcut vakata-contextmenu-shortcut-'+d.shortcut+'">'+(d.shortcut_label||"")+"</span>":"")+"</a>",d.submenu&&(g=a.vakata.context._parse(d.submenu,!0),g&&(e+=g)),e+="</li>",void(d.separator_after&&(e+="<li class='vakata-context-separator'><a href='#' "+(a.vakata.context.settings.icons?"":'class="vakata-context-no-icons"')+"> </a></li>",f=!0))):!0}),e=e.replace(/<li class\='vakata-context-separator'\><\/li\>$/,""),d&&(e+="</ul>"),d||(c.html=e,a.vakata.context._trigger("parse")),e.length>10?e:!1},_show_submenu:function(c){if(c=a(c),c.length&&c.children("ul").length){var d=c.children("ul"),e=c.offset().left,f=e+c.outerWidth(),g=c.offset().top,h=d.width(),i=d.height(),j=a(window).width()+a(window).scrollLeft(),k=a(window).height()+a(window).scrollTop();b?c[f-(h+10+c.outerWidth())<0?"addClass":"removeClass"]("vakata-context-left"):c[f+h>j&&e>j-f?"addClass":"removeClass"]("vakata-context-right"),g+i+10>k&&d.css("bottom","-1px"),c.hasClass("vakata-context-right")?h>e&&d.css("margin-right",e-h):h>j-f&&d.css("margin-left",j-f-h),d.show()}},show:function(d,e,f){var g,h,j,k,l,m,n,o,p=!0;switch(c.element&&c.element.length&&c.element.width(""),p){case!e&&!d:return!1;case!!e&&!!d:c.reference=d,c.position_x=e.x,c.position_y=e.y;break;case!e&&!!d:c.reference=d,g=d.offset(),c.position_x=g.left+d.outerHeight(),c.position_y=g.top;break;case!!e&&!d:c.position_x=e.x,c.position_y=e.y}d&&!f&&a(d).data("vakata_contextmenu")&&(f=a(d).data("vakata_contextmenu")),a.vakata.context._parse(f)&&c.element.html(c.html),c.items.length&&(c.element.appendTo(i.body),h=c.element,j=c.position_x,k=c.position_y,l=h.width(),m=h.height(),n=a(window).width()+a(window).scrollLeft(),o=a(window).height()+a(window).scrollTop(),b&&(j-=h.outerWidth()-a(d).outerWidth(),j<a(window).scrollLeft()+20&&(j=a(window).scrollLeft()+20)),j+l+20>n&&(j=n-(l+20)),k+m+20>o&&(k=o-(m+20)),c.element.css({left:j,top:k}).show().find("a").first().trigger("focus").parent().addClass("vakata-context-hover"),c.is_visible=!0,a.vakata.context._trigger("show"))},hide:function(){c.is_visible&&(c.element.hide().find("ul").hide().end().find(":focus").trigger("blur").end().detach(),c.is_visible=!1,a.vakata.context._trigger("hide"))}},a(function(){b="rtl"===a(i.body).css("direction");var d=!1;c.element=a("<ul class='vakata-context'></ul>"),c.element.on("mouseenter","li",function(b){b.stopImmediatePropagation(),a.contains(this,b.relatedTarget)||(d&&clearTimeout(d),c.element.find(".vakata-context-hover").removeClass("vakata-context-hover").end(),a(this).siblings().find("ul").hide().end().end().parentsUntil(".vakata-context","li").addBack().addClass("vakata-context-hover"),a.vakata.context._show_submenu(this))}).on("mouseleave","li",function(b){a.contains(this,b.relatedTarget)||a(this).find(".vakata-context-hover").addBack().removeClass("vakata-context-hover")}).on("mouseleave",function(b){a(this).find(".vakata-context-hover").removeClass("vakata-context-hover"),a.vakata.context.settings.hide_onmouseleave&&(d=setTimeout(function(b){return function(){a.vakata.context.hide()}}(this),a.vakata.context.settings.hide_onmouseleave))}).on("click","a",function(b){b.preventDefault(),a(this).trigger("blur").parent().hasClass("vakata-context-disabled")||a.vakata.context._execute(a(this).attr("rel"))===!1||a.vakata.context.hide()}).on("keydown","a",function(b){var d=null;switch(b.which){case 13:case 32:b.type="click",b.preventDefault(),a(b.currentTarget).trigger(b);break;case 37:c.is_visible&&(c.element.find(".vakata-context-hover").last().closest("li").first().find("ul").hide().find(".vakata-context-hover").removeClass("vakata-context-hover").end().end().children("a").trigger("focus"),b.stopImmediatePropagation(),b.preventDefault());break;case 38:c.is_visible&&(d=c.element.find("ul:visible").addBack().last().children(".vakata-context-hover").removeClass("vakata-context-hover").prevAll("li:not(.vakata-context-separator)").first(),d.length||(d=c.element.find("ul:visible").addBack().last().children("li:not(.vakata-context-separator)").last()),d.addClass("vakata-context-hover").children("a").trigger("focus"),b.stopImmediatePropagation(),b.preventDefault());break;case 39:c.is_visible&&(c.element.find(".vakata-context-hover").last().children("ul").show().children("li:not(.vakata-context-separator)").removeClass("vakata-context-hover").first().addClass("vakata-context-hover").children("a").trigger("focus"),b.stopImmediatePropagation(),b.preventDefault());break;case 40:c.is_visible&&(d=c.element.find("ul:visible").addBack().last().children(".vakata-context-hover").removeClass("vakata-context-hover").nextAll("li:not(.vakata-context-separator)").first(),d.length||(d=c.element.find("ul:visible").addBack().last().children("li:not(.vakata-context-separator)").first()),d.addClass("vakata-context-hover").children("a").trigger("focus"),b.stopImmediatePropagation(),b.preventDefault());break;case 27:a.vakata.context.hide(),b.preventDefault()}}).on("keydown",function(a){a.preventDefault();var b=c.element.find(".vakata-contextmenu-shortcut-"+a.which).parent();b.parent().not(".vakata-context-disabled")&&b.trigger("click")}),a(i).on("mousedown.vakata.jstree",function(b){c.is_visible&&c.element[0]!==b.target&&!a.contains(c.element[0],b.target)&&a.vakata.context.hide()}).on("context_show.vakata.jstree",function(a,d){c.element.find("li:has(ul)").children("a").addClass("vakata-context-parent"),b&&c.element.addClass("vakata-context-rtl").css("direction","rtl"),c.element.find("ul").hide().end()})})}(a),a.jstree.defaults.dnd={copy:!0,open_timeout:500,is_draggable:!0,check_while_dragging:!0,always_copy:!1,inside_pos:0,drag_selection:!0,touch:!0,large_drop_target:!1,large_drag_target:!1,use_html5:!1};var m,n;a.jstree.plugins.dnd=function(b,c){this.init=function(a,b){c.init.call(this,a,b),this.settings.dnd.use_html5=this.settings.dnd.use_html5&&"draggable"in i.createElement("span")},this.bind=function(){c.bind.call(this),this.element.on(this.settings.dnd.use_html5?"dragstart.jstree":"mousedown.jstree touchstart.jstree",this.settings.dnd.large_drag_target?".jstree-node":".jstree-anchor",function(b){if(this.settings.dnd.large_drag_target&&a(b.target).closest(".jstree-node")[0]!==b.currentTarget)return!0;if("touchstart"===b.type&&(!this.settings.dnd.touch||"selected"===this.settings.dnd.touch&&!a(b.currentTarget).closest(".jstree-node").children(".jstree-anchor").hasClass("jstree-clicked")))return!0;var c=this.get_node(b.target),d=this.is_selected(c)&&this.settings.dnd.drag_selection?this.get_top_selected().length:1,e=d>1?d+" "+this.get_string("nodes"):this.get_text(b.currentTarget);if(this.settings.core.force_text&&(e=a.vakata.html.escape(e)),c&&c.id&&c.id!==a.jstree.root&&(1===b.which||"touchstart"===b.type||"dragstart"===b.type)&&(this.settings.dnd.is_draggable===!0||a.vakata.is_function(this.settings.dnd.is_draggable)&&this.settings.dnd.is_draggable.call(this,d>1?this.get_top_selected(!0):[c],b))){if(m={jstree:!0,origin:this,obj:this.get_node(c,!0),nodes:d>1?this.get_top_selected():[c.id]},n=b.currentTarget,!this.settings.dnd.use_html5)return this.element.trigger("mousedown.jstree"),a.vakata.dnd.start(b,m,'<div id="jstree-dnd" class="jstree-'+this.get_theme()+" jstree-"+this.get_theme()+"-"+this.get_theme_variant()+" "+(this.settings.core.themes.responsive?" jstree-dnd-responsive":"")+'"><i class="jstree-icon jstree-er"></i>'+e+'<ins class="jstree-copy">+</ins></div>');a.vakata.dnd._trigger("start",b,{helper:a(),element:n,data:m})}}.bind(this)),this.settings.dnd.use_html5&&this.element.on("dragover.jstree",function(b){return b.preventDefault(),a.vakata.dnd._trigger("move",b,{helper:a(),element:n,data:m}),!1}).on("drop.jstree",function(b){return b.preventDefault(),a.vakata.dnd._trigger("stop",b,{helper:a(),element:n,data:m}),!1}.bind(this))},this.redraw_node=function(a,b,d,e){if(a=c.redraw_node.apply(this,arguments),a&&this.settings.dnd.use_html5)if(this.settings.dnd.large_drag_target)a.setAttribute("draggable",!0);else{var f,g,h=null;for(f=0,g=a.childNodes.length;g>f;f++)if(a.childNodes[f]&&a.childNodes[f].className&&-1!==a.childNodes[f].className.indexOf("jstree-anchor")){h=a.childNodes[f];break}h&&h.setAttribute("draggable",!0)}return a}},a(function(){var c=!1,d=!1,e=!1,f=!1,g=a('<div id="jstree-marker"> </div>').hide();a(i).on("dragover.vakata.jstree",function(b){n&&a.vakata.dnd._trigger("move",b,{helper:a(),element:n,data:m})}).on("drop.vakata.jstree",function(b){n&&(a.vakata.dnd._trigger("stop",b,{helper:a(),element:n,data:m}),n=null,m=null)}).on("dnd_start.vakata.jstree",function(a,b){c=!1,e=!1,b&&b.data&&b.data.jstree&&g.appendTo(i.body)}).on("dnd_move.vakata.jstree",function(h,i){var j=i.event.target!==e.target;if(f&&(!i.event||"dragover"!==i.event.type||j)&&clearTimeout(f),i&&i.data&&i.data.jstree&&(!i.event.target.id||"jstree-marker"!==i.event.target.id)){e=i.event;var k=a.jstree.reference(i.event.target),l=!1,m=!1,n=!1,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F;if(k&&k._data&&k._data.dnd)if(g.attr("class","jstree-"+k.get_theme()+(k.settings.core.themes.responsive?" jstree-dnd-responsive":"")),D=i.data.origin&&(i.data.origin.settings.dnd.always_copy||i.data.origin.settings.dnd.copy&&(i.event.metaKey||i.event.ctrlKey)),i.helper.children().attr("class","jstree-"+k.get_theme()+" jstree-"+k.get_theme()+"-"+k.get_theme_variant()+" "+(k.settings.core.themes.responsive?" jstree-dnd-responsive":"")).find(".jstree-copy").first()[D?"show":"hide"](),i.event.target!==k.element[0]&&i.event.target!==k.get_container_ul()[0]||0!==k.get_container_ul().children().length){if(l=k.settings.dnd.large_drop_target?a(i.event.target).closest(".jstree-node").children(".jstree-anchor"):a(i.event.target).closest(".jstree-anchor"),l&&l.length&&l.parent().is(".jstree-closed, .jstree-open, .jstree-leaf")&&(m=l.offset(),n=(i.event.pageY!==b?i.event.pageY:i.event.originalEvent.pageY)-m.top,r=l.outerHeight(),u=r/3>n?["b","i","a"]:n>r-r/3?["a","i","b"]:n>r/2?["i","a","b"]:["i","b","a"],a.each(u,function(b,e){switch(e){case"b":p=m.left-6,q=m.top,s=k.get_parent(l),t=l.parent().index(),F="jstree-below";break;case"i":B=k.settings.dnd.inside_pos,C=k.get_node(l.parent()),p=m.left-2,q=m.top+r/2+1,s=C.id,t="first"===B?0:"last"===B?C.children.length:Math.min(B,C.children.length),F="jstree-inside";break;case"a":p=m.left-6,q=m.top+r,s=k.get_parent(l),t=l.parent().index()+1,F="jstree-above"}for(v=!0,w=0,x=i.data.nodes.length;x>w;w++)if(y=i.data.origin&&(i.data.origin.settings.dnd.always_copy||i.data.origin.settings.dnd.copy&&(i.event.metaKey||i.event.ctrlKey))?"copy_node":"move_node",z=t,"move_node"===y&&"a"===e&&i.data.origin&&i.data.origin===k&&s===k.get_parent(i.data.nodes[w])&&(A=k.get_node(s),z>a.inArray(i.data.nodes[w],A.children)&&(z-=1)),v=v&&(k&&k.settings&&k.settings.dnd&&k.settings.dnd.check_while_dragging===!1||k.check(y,i.data.origin&&i.data.origin!==k?i.data.origin.get_node(i.data.nodes[w]):i.data.nodes[w],s,z,{dnd:!0,ref:k.get_node(l.parent()),pos:e,origin:i.data.origin,is_multi:i.data.origin&&i.data.origin!==k,is_foreign:!i.data.origin})),!v){k&&k.last_error&&(d=k.last_error());break}return"i"===e&&l.parent().is(".jstree-closed")&&k.settings.dnd.open_timeout&&(!i.event||"dragover"!==i.event.type||j)&&(f&&clearTimeout(f),f=setTimeout(function(a,b){return function(){a.open_node(b)}}(k,l),k.settings.dnd.open_timeout)),v?(E=k.get_node(s,!0),E.hasClass(".jstree-dnd-parent")||(a(".jstree-dnd-parent").removeClass("jstree-dnd-parent"),E.addClass("jstree-dnd-parent")),c={ins:k,par:s,pos:"i"!==e||"last"!==B||0!==t||k.is_loaded(C)?t:"last"},g.css({left:p+"px",top:q+"px"}).show(),g.removeClass("jstree-above jstree-inside jstree-below").addClass(F),i.helper.find(".jstree-icon").first().removeClass("jstree-er").addClass("jstree-ok"),i.event.originalEvent&&i.event.originalEvent.dataTransfer&&(i.event.originalEvent.dataTransfer.dropEffect=D?"copy":"move"),d={},u=!0,!1):void 0}),u===!0))return}else{for(v=!0,w=0,x=i.data.nodes.length;x>w;w++)if(v=v&&k.check(i.data.origin&&(i.data.origin.settings.dnd.always_copy||i.data.origin.settings.dnd.copy&&(i.event.metaKey||i.event.ctrlKey))?"copy_node":"move_node",i.data.origin&&i.data.origin!==k?i.data.origin.get_node(i.data.nodes[w]):i.data.nodes[w],a.jstree.root,"last",{dnd:!0,ref:k.get_node(a.jstree.root),pos:"i",origin:i.data.origin,is_multi:i.data.origin&&i.data.origin!==k,is_foreign:!i.data.origin}),!v)break;if(v)return c={ins:k,par:a.jstree.root,pos:"last"},g.hide(),i.helper.find(".jstree-icon").first().removeClass("jstree-er").addClass("jstree-ok"),void(i.event.originalEvent&&i.event.originalEvent.dataTransfer&&(i.event.originalEvent.dataTransfer.dropEffect=D?"copy":"move"))}a(".jstree-dnd-parent").removeClass("jstree-dnd-parent"),c=!1,i.helper.find(".jstree-icon").removeClass("jstree-ok").addClass("jstree-er"),i.event.originalEvent&&i.event.originalEvent.dataTransfer,g.hide()}}).on("dnd_scroll.vakata.jstree",function(a,b){b&&b.data&&b.data.jstree&&(g.hide(),c=!1,e=!1,b.helper.find(".jstree-icon").first().removeClass("jstree-ok").addClass("jstree-er"))}).on("dnd_stop.vakata.jstree",function(b,h){if(a(".jstree-dnd-parent").removeClass("jstree-dnd-parent"),f&&clearTimeout(f),h&&h.data&&h.data.jstree){g.hide().detach();var i,j,k=[];if(c){for(i=0,j=h.data.nodes.length;j>i;i++)k[i]=h.data.origin?h.data.origin.get_node(h.data.nodes[i]):h.data.nodes[i];c.ins[h.data.origin&&(h.data.origin.settings.dnd.always_copy||h.data.origin.settings.dnd.copy&&(h.event.metaKey||h.event.ctrlKey))?"copy_node":"move_node"](k,c.par,c.pos,!1,!1,!1,h.data.origin)}else i=a(h.event.target).closest(".jstree"),i.length&&d&&d.error&&"check"===d.error&&(i=i.jstree(!0),i&&i.settings.core.error.call(this,d));e=!1,c=!1}}).on("keyup.jstree keydown.jstree",function(b,h){h=a.vakata.dnd._get(),h&&h.data&&h.data.jstree&&("keyup"===b.type&&27===b.which?(f&&clearTimeout(f),c=!1,d=!1,e=!1,f=!1,g.hide().detach(),a.vakata.dnd._clean()):(h.helper.find(".jstree-copy").first()[h.data.origin&&(h.data.origin.settings.dnd.always_copy||h.data.origin.settings.dnd.copy&&(b.metaKey||b.ctrlKey))?"show":"hide"](),e&&(e.metaKey=b.metaKey,e.ctrlKey=b.ctrlKey,a.vakata.dnd._trigger("move",e))))})}),function(a){a.vakata.html={div:a("<div></div>"),escape:function(b){return a.vakata.html.div.text(b).html()},strip:function(b){return a.vakata.html.div.empty().append(a.parseHTML(b)).text()}};var c={element:!1,target:!1,is_down:!1,is_drag:!1,helper:!1,helper_w:0,data:!1,init_x:0,init_y:0,scroll_l:0,scroll_t:0,scroll_e:!1,scroll_i:!1,is_touch:!1};a.vakata.dnd={settings:{scroll_speed:10,scroll_proximity:20,helper_left:5,helper_top:10,threshold:5,threshold_touch:10},_trigger:function(c,d,e){e===b&&(e=a.vakata.dnd._get()),e.event=d,a(i).triggerHandler("dnd_"+c+".vakata",e)},_get:function(){return{data:c.data,element:c.element,helper:c.helper}},_clean:function(){c.helper&&c.helper.remove(),c.scroll_i&&(clearInterval(c.scroll_i),c.scroll_i=!1),c={element:!1,target:!1,is_down:!1,is_drag:!1,helper:!1,helper_w:0,data:!1,init_x:0,init_y:0,scroll_l:0,scroll_t:0,scroll_e:!1,scroll_i:!1,is_touch:!1},n=null,a(i).off("mousemove.vakata.jstree touchmove.vakata.jstree",a.vakata.dnd.drag),a(i).off("mouseup.vakata.jstree touchend.vakata.jstree",a.vakata.dnd.stop)},_scroll:function(b){if(!c.scroll_e||!c.scroll_l&&!c.scroll_t)return c.scroll_i&&(clearInterval(c.scroll_i),c.scroll_i=!1),!1;if(!c.scroll_i)return c.scroll_i=setInterval(a.vakata.dnd._scroll,100),!1;if(b===!0)return!1;var d=c.scroll_e.scrollTop(),e=c.scroll_e.scrollLeft();c.scroll_e.scrollTop(d+c.scroll_t*a.vakata.dnd.settings.scroll_speed),c.scroll_e.scrollLeft(e+c.scroll_l*a.vakata.dnd.settings.scroll_speed),(d!==c.scroll_e.scrollTop()||e!==c.scroll_e.scrollLeft())&&a.vakata.dnd._trigger("scroll",c.scroll_e)},start:function(b,d,e){"touchstart"===b.type&&b.originalEvent&&b.originalEvent.changedTouches&&b.originalEvent.changedTouches[0]&&(b.pageX=b.originalEvent.changedTouches[0].pageX,b.pageY=b.originalEvent.changedTouches[0].pageY,b.target=i.elementFromPoint(b.originalEvent.changedTouches[0].pageX-window.pageXOffset,b.originalEvent.changedTouches[0].pageY-window.pageYOffset)),c.is_drag&&a.vakata.dnd.stop({});try{b.currentTarget.unselectable="on",b.currentTarget.onselectstart=function(){return!1},b.currentTarget.style&&(b.currentTarget.style.touchAction="none",b.currentTarget.style.msTouchAction="none",b.currentTarget.style.MozUserSelect="none")}catch(f){}return c.init_x=b.pageX,c.init_y=b.pageY,c.data=d,c.is_down=!0,c.element=b.currentTarget,c.target=b.target,c.is_touch="touchstart"===b.type,e!==!1&&(c.helper=a("<div id='vakata-dnd'></div>").html(e).css({display:"block",margin:"0",padding:"0",position:"absolute",top:"-2000px",lineHeight:"16px",zIndex:"10000"})),a(i).on("mousemove.vakata.jstree touchmove.vakata.jstree",a.vakata.dnd.drag),a(i).on("mouseup.vakata.jstree touchend.vakata.jstree",a.vakata.dnd.stop),!1},drag:function(b){if("touchmove"===b.type&&b.originalEvent&&b.originalEvent.changedTouches&&b.originalEvent.changedTouches[0]&&(b.pageX=b.originalEvent.changedTouches[0].pageX,b.pageY=b.originalEvent.changedTouches[0].pageY,b.target=i.elementFromPoint(b.originalEvent.changedTouches[0].pageX-window.pageXOffset,b.originalEvent.changedTouches[0].pageY-window.pageYOffset)),c.is_down){if(!c.is_drag){if(!(Math.abs(b.pageX-c.init_x)>(c.is_touch?a.vakata.dnd.settings.threshold_touch:a.vakata.dnd.settings.threshold)||Math.abs(b.pageY-c.init_y)>(c.is_touch?a.vakata.dnd.settings.threshold_touch:a.vakata.dnd.settings.threshold)))return;c.helper&&(c.helper.appendTo(i.body),c.helper_w=c.helper.outerWidth()),c.is_drag=!0,a(c.target).one("click.vakata",!1),a.vakata.dnd._trigger("start",b)}var d=!1,e=!1,f=!1,g=!1,h=!1,j=!1,k=!1,l=!1,m=!1,n=!1;return c.scroll_t=0,c.scroll_l=0,c.scroll_e=!1,a(a(b.target).parentsUntil("body").addBack().get().reverse()).filter(function(){return/^auto|scroll$/.test(a(this).css("overflow"))&&(this.scrollHeight>this.offsetHeight||this.scrollWidth>this.offsetWidth)}).each(function(){var d=a(this),e=d.offset();return this.scrollHeight>this.offsetHeight&&(e.top+d.height()-b.pageY<a.vakata.dnd.settings.scroll_proximity&&(c.scroll_t=1),b.pageY-e.top<a.vakata.dnd.settings.scroll_proximity&&(c.scroll_t=-1)),this.scrollWidth>this.offsetWidth&&(e.left+d.width()-b.pageX<a.vakata.dnd.settings.scroll_proximity&&(c.scroll_l=1),b.pageX-e.left<a.vakata.dnd.settings.scroll_proximity&&(c.scroll_l=-1)),c.scroll_t||c.scroll_l?(c.scroll_e=a(this),!1):void 0}),c.scroll_e||(d=a(i),e=a(window),f=d.height(),g=e.height(),h=d.width(),j=e.width(),k=d.scrollTop(),l=d.scrollLeft(),f>g&&b.pageY-k<a.vakata.dnd.settings.scroll_proximity&&(c.scroll_t=-1),f>g&&g-(b.pageY-k)<a.vakata.dnd.settings.scroll_proximity&&(c.scroll_t=1),h>j&&b.pageX-l<a.vakata.dnd.settings.scroll_proximity&&(c.scroll_l=-1),h>j&&j-(b.pageX-l)<a.vakata.dnd.settings.scroll_proximity&&(c.scroll_l=1),(c.scroll_t||c.scroll_l)&&(c.scroll_e=d)),c.scroll_e&&a.vakata.dnd._scroll(!0),c.helper&&(m=parseInt(b.pageY+a.vakata.dnd.settings.helper_top,10),n=parseInt(b.pageX+a.vakata.dnd.settings.helper_left,10),f&&m+25>f&&(m=f-50),h&&n+c.helper_w>h&&(n=h-(c.helper_w+2)),c.helper.css({left:n+"px",top:m+"px"})),a.vakata.dnd._trigger("move",b),!1}},stop:function(b){if("touchend"===b.type&&b.originalEvent&&b.originalEvent.changedTouches&&b.originalEvent.changedTouches[0]&&(b.pageX=b.originalEvent.changedTouches[0].pageX,b.pageY=b.originalEvent.changedTouches[0].pageY,b.target=i.elementFromPoint(b.originalEvent.changedTouches[0].pageX-window.pageXOffset,b.originalEvent.changedTouches[0].pageY-window.pageYOffset)),c.is_drag)b.target!==c.target&&a(c.target).off("click.vakata"),a.vakata.dnd._trigger("stop",b);else if("touchend"===b.type&&b.target===c.target){var d=setTimeout(function(){a(b.target).trigger("click")},100);a(b.target).one("click",function(){d&&clearTimeout(d)})}return a.vakata.dnd._clean(),!1}}}(a),a.jstree.defaults.massload=null,a.jstree.plugins.massload=function(b,c){this.init=function(a,b){this._data.massload={},c.init.call(this,a,b)},this._load_nodes=function(b,d,e,f){var g=this.settings.massload,h=[],i=this._model.data,j,k,l;if(!e){for(j=0,k=b.length;k>j;j++)(!i[b[j]]||!i[b[j]].state.loaded&&!i[b[j]].state.failed||f)&&(h.push(b[j]),l=this.get_node(b[j],!0),l&&l.length&&l.addClass("jstree-loading").attr("aria-busy",!0));if(this._data.massload={},h.length){if(a.vakata.is_function(g))return g.call(this,h,function(a){var g,h;if(a)for(g in a)a.hasOwnProperty(g)&&(this._data.massload[g]=a[g]);for(g=0,h=b.length;h>g;g++)l=this.get_node(b[g],!0),l&&l.length&&l.removeClass("jstree-loading").attr("aria-busy",!1);c._load_nodes.call(this,b,d,e,f)}.bind(this));if("object"==typeof g&&g&&g.url)return g=a.extend(!0,{},g),a.vakata.is_function(g.url)&&(g.url=g.url.call(this,h)),a.vakata.is_function(g.data)&&(g.data=g.data.call(this,h)),a.ajax(g).done(function(a,g,h){var i,j;if(a)for(i in a)a.hasOwnProperty(i)&&(this._data.massload[i]=a[i]);for(i=0,j=b.length;j>i;i++)l=this.get_node(b[i],!0),l&&l.length&&l.removeClass("jstree-loading").attr("aria-busy",!1);c._load_nodes.call(this,b,d,e,f)}.bind(this)).fail(function(a){c._load_nodes.call(this,b,d,e,f)}.bind(this))}}return c._load_nodes.call(this,b,d,e,f)},this._load_node=function(b,d){var e=this._data.massload[b.id],f=null,g;return e?(f=this["string"==typeof e?"_append_html_data":"_append_json_data"](b,"string"==typeof e?a(a.parseHTML(e)).filter(function(){return 3!==this.nodeType}):e,function(a){d.call(this,a)}),g=this.get_node(b.id,!0),g&&g.length&&g.removeClass("jstree-loading").attr("aria-busy",!1),delete this._data.massload[b.id],f):c._load_node.call(this,b,d)}},a.jstree.defaults.search={ajax:!1,fuzzy:!1,case_sensitive:!1,show_only_matches:!1,show_only_matches_children:!1,close_opened_onclear:!0,search_leaves_only:!1,search_callback:!1},a.jstree.plugins.search=function(c,d){this.bind=function(){d.bind.call(this),this._data.search.str="",this._data.search.dom=a(),this._data.search.res=[],this._data.search.opn=[],this._data.search.som=!1,this._data.search.smc=!1,this._data.search.hdn=[],this.element.on("search.jstree",function(b,c){if(this._data.search.som&&c.res.length){var d=this._model.data,e,f,g=[],h,i;for(e=0,f=c.res.length;f>e;e++)if(d[c.res[e]]&&!d[c.res[e]].state.hidden&&(g.push(c.res[e]),g=g.concat(d[c.res[e]].parents),this._data.search.smc))for(h=0,i=d[c.res[e]].children_d.length;i>h;h++)d[d[c.res[e]].children_d[h]]&&!d[d[c.res[e]].children_d[h]].state.hidden&&g.push(d[c.res[e]].children_d[h]);g=a.vakata.array_remove_item(a.vakata.array_unique(g),a.jstree.root),this._data.search.hdn=this.hide_all(!0),this.show_node(g,!0),this.redraw(!0)}}.bind(this)).on("clear_search.jstree",function(a,b){this._data.search.som&&b.res.length&&(this.show_node(this._data.search.hdn,!0),this.redraw(!0))}.bind(this))},this.search=function(c,d,e,f,g,h){if(c===!1||""===a.vakata.trim(c.toString()))return this.clear_search();f=this.get_node(f),f=f&&f.id?f.id:null,c=c.toString();var i=this.settings.search,j=i.ajax?i.ajax:!1,k=this._model.data,l=null,m=[],n=[],o,p;if(this._data.search.res.length&&!g&&this.clear_search(),e===b&&(e=i.show_only_matches),h===b&&(h=i.show_only_matches_children),!d&&j!==!1)return a.vakata.is_function(j)?j.call(this,c,function(b){b&&b.d&&(b=b.d),this._load_nodes(a.vakata.is_array(b)?a.vakata.array_unique(b):[],function(){this.search(c,!0,e,f,g,h)})}.bind(this),f):(j=a.extend({},j),j.data||(j.data={}),j.data.str=c,f&&(j.data.inside=f),this._data.search.lastRequest&&this._data.search.lastRequest.abort(),this._data.search.lastRequest=a.ajax(j).fail(function(){this._data.core.last_error={error:"ajax",plugin:"search",id:"search_01",reason:"Could not load search parents",data:JSON.stringify(j)},this.settings.core.error.call(this,this._data.core.last_error)}.bind(this)).done(function(b){b&&b.d&&(b=b.d),this._load_nodes(a.vakata.is_array(b)?a.vakata.array_unique(b):[],function(){this.search(c,!0,e,f,g,h)})}.bind(this)),this._data.search.lastRequest);if(g||(this._data.search.str=c,this._data.search.dom=a(),this._data.search.res=[],this._data.search.opn=[],this._data.search.som=e,this._data.search.smc=h),l=new a.vakata.search(c,!0,{caseSensitive:i.case_sensitive,fuzzy:i.fuzzy}),a.each(k[f?f:a.jstree.root].children_d,function(a,b){var d=k[b];d.text&&!d.state.hidden&&(!i.search_leaves_only||d.state.loaded&&0===d.children.length)&&(i.search_callback&&i.search_callback.call(this,c,d)||!i.search_callback&&l.search(d.text).isMatch)&&(m.push(b),n=n.concat(d.parents))}),m.length){for(n=a.vakata.array_unique(n),o=0,p=n.length;p>o;o++)n[o]!==a.jstree.root&&k[n[o]]&&this.open_node(n[o],null,0)===!0&&this._data.search.opn.push(n[o]);g?(this._data.search.dom=this._data.search.dom.add(a(this.element[0].querySelectorAll("#"+a.map(m,function(b){return-1!=="0123456789".indexOf(b[0])?"\\3"+b[0]+" "+b.substr(1).replace(a.jstree.idregex,"\\$&"):b.replace(a.jstree.idregex,"\\$&")}).join(", #")))),this._data.search.res=a.vakata.array_unique(this._data.search.res.concat(m))):(this._data.search.dom=a(this.element[0].querySelectorAll("#"+a.map(m,function(b){return-1!=="0123456789".indexOf(b[0])?"\\3"+b[0]+" "+b.substr(1).replace(a.jstree.idregex,"\\$&"):b.replace(a.jstree.idregex,"\\$&")}).join(", #"))),this._data.search.res=m),this._data.search.dom.children(".jstree-anchor").addClass("jstree-search")}this.trigger("search",{nodes:this._data.search.dom,str:c,res:this._data.search.res,show_only_matches:e})},this.clear_search=function(){this.settings.search.close_opened_onclear&&this.close_node(this._data.search.opn,0),this.trigger("clear_search",{nodes:this._data.search.dom,str:this._data.search.str,res:this._data.search.res}),this._data.search.res.length&&(this._data.search.dom=a(this.element[0].querySelectorAll("#"+a.map(this._data.search.res,function(b){return-1!=="0123456789".indexOf(b[0])?"\\3"+b[0]+" "+b.substr(1).replace(a.jstree.idregex,"\\$&"):b.replace(a.jstree.idregex,"\\$&")}).join(", #"))),this._data.search.dom.children(".jstree-anchor").removeClass("jstree-search")),this._data.search.str="",this._data.search.res=[],this._data.search.opn=[],this._data.search.dom=a()},this.redraw_node=function(b,c,e,f){if(b=d.redraw_node.apply(this,arguments),b&&-1!==a.inArray(b.id,this._data.search.res)){var g,h,i=null;for(g=0,h=b.childNodes.length;h>g;g++)if(b.childNodes[g]&&b.childNodes[g].className&&-1!==b.childNodes[g].className.indexOf("jstree-anchor")){i=b.childNodes[g];break}i&&(i.className+=" jstree-search")}return b}},function(a){a.vakata.search=function(b,c,d){d=d||{},d=a.extend({},a.vakata.search.defaults,d),d.fuzzy!==!1&&(d.fuzzy=!0),b=d.caseSensitive?b:b.toLowerCase();var e=d.location,f=d.distance,g=d.threshold,h=b.length,i,j,k,l;return h>32&&(d.fuzzy=!1),d.fuzzy&&(i=1<<h-1,j=function(){var a={},c=0;for(c=0;h>c;c++)a[b.charAt(c)]=0;for(c=0;h>c;c++)a[b.charAt(c)]|=1<<h-c-1;return a}(),k=function(a,b){var c=a/h,d=Math.abs(e-b);return f?c+d/f:d?1:c}),l=function(a){if(a=d.caseSensitive?a:a.toLowerCase(),b===a||-1!==a.indexOf(b))return{isMatch:!0,score:0};if(!d.fuzzy)return{isMatch:!1,score:1};var c,f,l=a.length,m=g,n=a.indexOf(b,e),o,p,q=h+l,r,s,t,u,v,w=1,x=[];for(-1!==n&&(m=Math.min(k(0,n),m),n=a.lastIndexOf(b,e+h),-1!==n&&(m=Math.min(k(0,n),m))),n=-1,c=0;h>c;c++){o=0,p=q;while(p>o)k(c,e+p)<=m?o=p:q=p,p=Math.floor((q-o)/2+o);for(q=p,s=Math.max(1,e-p+1),t=Math.min(e+p,l)+h,u=new Array(t+2),u[t+1]=(1<<c)-1,f=t;f>=s;f--)if(v=j[a.charAt(f-1)],0===c?u[f]=(u[f+1]<<1|1)&v:u[f]=(u[f+1]<<1|1)&v|((r[f+1]|r[f])<<1|1)|r[f+1],u[f]&i&&(w=k(c,f-1),m>=w)){if(m=w,n=f-1,x.push(n),!(n>e))break;s=Math.max(1,2*e-n)}if(k(c+1,e)>m)break;r=u}return{isMatch:n>=0,score:w}},c===!0?{search:l}:l(c)},a.vakata.search.defaults={location:0,distance:100,threshold:.6,fuzzy:!1,caseSensitive:!1}}(a),a.jstree.defaults.sort=function(a,b){return this.get_text(a)>this.get_text(b)?1:-1},a.jstree.plugins.sort=function(a,b){this.bind=function(){b.bind.call(this),this.element.on("model.jstree",function(a,b){this.sort(b.parent,!0)}.bind(this)).on("rename_node.jstree create_node.jstree",function(a,b){this.sort(b.parent||b.node.parent,!1),this.redraw_node(b.parent||b.node.parent,!0)}.bind(this)).on("move_node.jstree copy_node.jstree",function(a,b){this.sort(b.parent,!1),this.redraw_node(b.parent,!0)}.bind(this))},this.sort=function(a,b){var c,d;if(a=this.get_node(a),a&&a.children&&a.children.length&&(a.children.sort(this.settings.sort.bind(this)),b))for(c=0,d=a.children_d.length;d>c;c++)this.sort(a.children_d[c],!1)}};var o=!1;a.jstree.defaults.state={key:"jstree",events:"changed.jstree open_node.jstree close_node.jstree check_node.jstree uncheck_node.jstree",ttl:!1,filter:!1,preserve_loaded:!1},a.jstree.plugins.state=function(b,c){this.bind=function(){c.bind.call(this);var a=function(){this.element.on(this.settings.state.events,function(){o&&clearTimeout(o),o=setTimeout(function(){this.save_state()}.bind(this),100)}.bind(this)),this.trigger("state_ready")}.bind(this);this.element.on("ready.jstree",function(b,c){this.element.one("restore_state.jstree",a),this.restore_state()||a()}.bind(this))},this.save_state=function(){var b=this.get_state();this.settings.state.preserve_loaded||delete b.core.loaded;var c={state:b,ttl:this.settings.state.ttl,sec:+new Date};a.vakata.storage.set(this.settings.state.key,JSON.stringify(c))},this.restore_state=function(){var b=a.vakata.storage.get(this.settings.state.key);if(b)try{b=JSON.parse(b)}catch(c){return!1}return b&&b.ttl&&b.sec&&+new Date-b.sec>b.ttl?!1:(b&&b.state&&(b=b.state),b&&a.vakata.is_function(this.settings.state.filter)&&(b=this.settings.state.filter.call(this,b)),b?(this.settings.state.preserve_loaded||delete b.core.loaded,this.element.one("set_state.jstree",function(c,d){d.instance.trigger("restore_state",{state:a.extend(!0,{},b)})}),this.set_state(b),!0):!1)},this.clear_state=function(){return a.vakata.storage.del(this.settings.state.key)}},function(a,b){a.vakata.storage={set:function(a,b){return window.localStorage.setItem(a,b)},get:function(a){return window.localStorage.getItem(a)},del:function(a){return window.localStorage.removeItem(a)}}}(a),a.jstree.defaults.types={
|
6 |
+
"default":{}},a.jstree.defaults.types[a.jstree.root]={},a.jstree.plugins.types=function(c,d){this.init=function(c,e){var f,g;if(e&&e.types&&e.types["default"])for(f in e.types)if("default"!==f&&f!==a.jstree.root&&e.types.hasOwnProperty(f))for(g in e.types["default"])e.types["default"].hasOwnProperty(g)&&e.types[f][g]===b&&(e.types[f][g]=e.types["default"][g]);d.init.call(this,c,e),this._model.data[a.jstree.root].type=a.jstree.root},this.refresh=function(b,c){d.refresh.call(this,b,c),this._model.data[a.jstree.root].type=a.jstree.root},this.bind=function(){this.element.on("model.jstree",function(c,d){var e=this._model.data,f=d.nodes,g=this.settings.types,h,i,j="default",k;for(h=0,i=f.length;i>h;h++){if(j="default",e[f[h]].original&&e[f[h]].original.type&&g[e[f[h]].original.type]&&(j=e[f[h]].original.type),e[f[h]].data&&e[f[h]].data.jstree&&e[f[h]].data.jstree.type&&g[e[f[h]].data.jstree.type]&&(j=e[f[h]].data.jstree.type),e[f[h]].type=j,e[f[h]].icon===!0&&g[j].icon!==b&&(e[f[h]].icon=g[j].icon),g[j].li_attr!==b&&"object"==typeof g[j].li_attr)for(k in g[j].li_attr)if(g[j].li_attr.hasOwnProperty(k)){if("id"===k)continue;e[f[h]].li_attr[k]===b?e[f[h]].li_attr[k]=g[j].li_attr[k]:"class"===k&&(e[f[h]].li_attr["class"]=g[j].li_attr["class"]+" "+e[f[h]].li_attr["class"])}if(g[j].a_attr!==b&&"object"==typeof g[j].a_attr)for(k in g[j].a_attr)if(g[j].a_attr.hasOwnProperty(k)){if("id"===k)continue;e[f[h]].a_attr[k]===b?e[f[h]].a_attr[k]=g[j].a_attr[k]:"href"===k&&"#"===e[f[h]].a_attr[k]?e[f[h]].a_attr.href=g[j].a_attr.href:"class"===k&&(e[f[h]].a_attr["class"]=g[j].a_attr["class"]+" "+e[f[h]].a_attr["class"])}}e[a.jstree.root].type=a.jstree.root}.bind(this)),d.bind.call(this)},this.get_json=function(b,c,e){var f,g,h=this._model.data,i=c?a.extend(!0,{},c,{no_id:!1}):{},j=d.get_json.call(this,b,i,e);if(j===!1)return!1;if(a.vakata.is_array(j))for(f=0,g=j.length;g>f;f++)j[f].type=j[f].id&&h[j[f].id]&&h[j[f].id].type?h[j[f].id].type:"default",c&&c.no_id&&(delete j[f].id,j[f].li_attr&&j[f].li_attr.id&&delete j[f].li_attr.id,j[f].a_attr&&j[f].a_attr.id&&delete j[f].a_attr.id);else j.type=j.id&&h[j.id]&&h[j.id].type?h[j.id].type:"default",c&&c.no_id&&(j=this._delete_ids(j));return j},this._delete_ids=function(b){if(a.vakata.is_array(b)){for(var c=0,d=b.length;d>c;c++)b[c]=this._delete_ids(b[c]);return b}return delete b.id,b.li_attr&&b.li_attr.id&&delete b.li_attr.id,b.a_attr&&b.a_attr.id&&delete b.a_attr.id,b.children&&a.vakata.is_array(b.children)&&(b.children=this._delete_ids(b.children)),b},this.check=function(c,e,f,g,h){if(d.check.call(this,c,e,f,g,h)===!1)return!1;e=e&&e.id?e:this.get_node(e),f=f&&f.id?f:this.get_node(f);var i=e&&e.id?h&&h.origin?h.origin:a.jstree.reference(e.id):null,j,k,l,m;switch(i=i&&i._model&&i._model.data?i._model.data:null,c){case"create_node":case"move_node":case"copy_node":if("move_node"!==c||-1===a.inArray(e.id,f.children)){if(j=this.get_rules(f),j.max_children!==b&&-1!==j.max_children&&j.max_children===f.children.length)return this._data.core.last_error={error:"check",plugin:"types",id:"types_01",reason:"max_children prevents function: "+c,data:JSON.stringify({chk:c,pos:g,obj:e&&e.id?e.id:!1,par:f&&f.id?f.id:!1})},!1;if(j.valid_children!==b&&-1!==j.valid_children&&-1===a.inArray(e.type||"default",j.valid_children))return this._data.core.last_error={error:"check",plugin:"types",id:"types_02",reason:"valid_children prevents function: "+c,data:JSON.stringify({chk:c,pos:g,obj:e&&e.id?e.id:!1,par:f&&f.id?f.id:!1})},!1;if(i&&e.children_d&&e.parents){for(k=0,l=0,m=e.children_d.length;m>l;l++)k=Math.max(k,i[e.children_d[l]].parents.length);k=k-e.parents.length+1}(0>=k||k===b)&&(k=1);do{if(j.max_depth!==b&&-1!==j.max_depth&&j.max_depth<k)return this._data.core.last_error={error:"check",plugin:"types",id:"types_03",reason:"max_depth prevents function: "+c,data:JSON.stringify({chk:c,pos:g,obj:e&&e.id?e.id:!1,par:f&&f.id?f.id:!1})},!1;f=this.get_node(f.parent),j=this.get_rules(f),k++}while(f)}}return!0},this.get_rules=function(a){if(a=this.get_node(a),!a)return!1;var c=this.get_type(a,!0);return c.max_depth===b&&(c.max_depth=-1),c.max_children===b&&(c.max_children=-1),c.valid_children===b&&(c.valid_children=-1),c},this.get_type=function(b,c){return b=this.get_node(b),b?c?a.extend({type:b.type},this.settings.types[b.type]):b.type:!1},this.set_type=function(c,d){var e=this._model.data,f,g,h,i,j,k,l,m;if(a.vakata.is_array(c)){for(c=c.slice(),g=0,h=c.length;h>g;g++)this.set_type(c[g],d);return!0}if(f=this.settings.types,c=this.get_node(c),!f[d]||!c)return!1;if(l=this.get_node(c,!0),l&&l.length&&(m=l.children(".jstree-anchor")),i=c.type,j=this.get_icon(c),c.type=d,(j===!0||!f[i]||f[i].icon!==b&&j===f[i].icon)&&this.set_icon(c,f[d].icon!==b?f[d].icon:!0),f[i]&&f[i].li_attr!==b&&"object"==typeof f[i].li_attr)for(k in f[i].li_attr)if(f[i].li_attr.hasOwnProperty(k)){if("id"===k)continue;"class"===k?(e[c.id].li_attr["class"]=(e[c.id].li_attr["class"]||"").replace(f[i].li_attr[k],""),l&&l.removeClass(f[i].li_attr[k])):e[c.id].li_attr[k]===f[i].li_attr[k]&&(e[c.id].li_attr[k]=null,l&&l.removeAttr(k))}if(f[i]&&f[i].a_attr!==b&&"object"==typeof f[i].a_attr)for(k in f[i].a_attr)if(f[i].a_attr.hasOwnProperty(k)){if("id"===k)continue;"class"===k?(e[c.id].a_attr["class"]=(e[c.id].a_attr["class"]||"").replace(f[i].a_attr[k],""),m&&m.removeClass(f[i].a_attr[k])):e[c.id].a_attr[k]===f[i].a_attr[k]&&("href"===k?(e[c.id].a_attr[k]="#",m&&m.attr("href","#")):(delete e[c.id].a_attr[k],m&&m.removeAttr(k)))}if(f[d].li_attr!==b&&"object"==typeof f[d].li_attr)for(k in f[d].li_attr)if(f[d].li_attr.hasOwnProperty(k)){if("id"===k)continue;e[c.id].li_attr[k]===b?(e[c.id].li_attr[k]=f[d].li_attr[k],l&&("class"===k?l.addClass(f[d].li_attr[k]):l.attr(k,f[d].li_attr[k]))):"class"===k&&(e[c.id].li_attr["class"]=f[d].li_attr[k]+" "+e[c.id].li_attr["class"],l&&l.addClass(f[d].li_attr[k]))}if(f[d].a_attr!==b&&"object"==typeof f[d].a_attr)for(k in f[d].a_attr)if(f[d].a_attr.hasOwnProperty(k)){if("id"===k)continue;e[c.id].a_attr[k]===b?(e[c.id].a_attr[k]=f[d].a_attr[k],m&&("class"===k?m.addClass(f[d].a_attr[k]):m.attr(k,f[d].a_attr[k]))):"href"===k&&"#"===e[c.id].a_attr[k]?(e[c.id].a_attr.href=f[d].a_attr.href,m&&m.attr("href",f[d].a_attr.href)):"class"===k&&(e[c.id].a_attr["class"]=f[d].a_attr["class"]+" "+e[c.id].a_attr["class"],m&&m.addClass(f[d].a_attr[k]))}return!0}},a.jstree.defaults.unique={case_sensitive:!1,trim_whitespace:!1,duplicate:function(a,b){return a+" ("+b+")"}},a.jstree.plugins.unique=function(c,d){this.check=function(b,c,e,f,g){if(d.check.call(this,b,c,e,f,g)===!1)return!1;if(c=c&&c.id?c:this.get_node(c),e=e&&e.id?e:this.get_node(e),!e||!e.children)return!0;var h="rename_node"===b?f:c.text,i=[],j=this.settings.unique.case_sensitive,k=this.settings.unique.trim_whitespace,l=this._model.data,m,n,o;for(m=0,n=e.children.length;n>m;m++)o=l[e.children[m]].text,j||(o=o.toLowerCase()),k&&(o=o.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")),i.push(o);switch(j||(h=h.toLowerCase()),k&&(h=h.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")),b){case"delete_node":return!0;case"rename_node":return o=c.text||"",j||(o=o.toLowerCase()),k&&(o=o.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")),m=-1===a.inArray(h,i)||c.text&&o===h,m||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_01",reason:"Child with name "+h+" already exists. Preventing: "+b,data:JSON.stringify({chk:b,pos:f,obj:c&&c.id?c.id:!1,par:e&&e.id?e.id:!1})}),m;case"create_node":return m=-1===a.inArray(h,i),m||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_04",reason:"Child with name "+h+" already exists. Preventing: "+b,data:JSON.stringify({chk:b,pos:f,obj:c&&c.id?c.id:!1,par:e&&e.id?e.id:!1})}),m;case"copy_node":return m=-1===a.inArray(h,i),m||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_02",reason:"Child with name "+h+" already exists. Preventing: "+b,data:JSON.stringify({chk:b,pos:f,obj:c&&c.id?c.id:!1,par:e&&e.id?e.id:!1})}),m;case"move_node":return m=c.parent===e.id&&(!g||!g.is_multi)||-1===a.inArray(h,i),m||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_03",reason:"Child with name "+h+" already exists. Preventing: "+b,data:JSON.stringify({chk:b,pos:f,obj:c&&c.id?c.id:!1,par:e&&e.id?e.id:!1})}),m}return!0},this.create_node=function(c,e,f,g,h){if(!e||e.text===b){if(null===c&&(c=a.jstree.root),c=this.get_node(c),!c)return d.create_node.call(this,c,e,f,g,h);if(f=f===b?"last":f,!f.toString().match(/^(before|after)$/)&&!h&&!this.is_loaded(c))return d.create_node.call(this,c,e,f,g,h);e||(e={});var i,j,k,l,m,n=this._model.data,o=this.settings.unique.case_sensitive,p=this.settings.unique.trim_whitespace,q=this.settings.unique.duplicate,r;for(j=i=this.get_string("New node"),k=[],l=0,m=c.children.length;m>l;l++)r=n[c.children[l]].text,o||(r=r.toLowerCase()),p&&(r=r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")),k.push(r);l=1,r=j,o||(r=r.toLowerCase()),p&&(r=r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""));while(-1!==a.inArray(r,k))j=q.call(this,i,++l).toString(),r=j,o||(r=r.toLowerCase()),p&&(r=r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""));e.text=j}return d.create_node.call(this,c,e,f,g,h)}};var p=i.createElement("DIV");if(p.setAttribute("unselectable","on"),p.setAttribute("role","presentation"),p.className="jstree-wholerow",p.innerHTML=" ",a.jstree.plugins.wholerow=function(b,c){this.bind=function(){c.bind.call(this),this.element.on("ready.jstree set_state.jstree",function(){this.hide_dots()}.bind(this)).on("init.jstree loading.jstree ready.jstree",function(){this.get_container_ul().addClass("jstree-wholerow-ul")}.bind(this)).on("deselect_all.jstree",function(a,b){this.element.find(".jstree-wholerow-clicked").removeClass("jstree-wholerow-clicked")}.bind(this)).on("changed.jstree",function(a,b){this.element.find(".jstree-wholerow-clicked").removeClass("jstree-wholerow-clicked");var c=!1,d,e;for(d=0,e=b.selected.length;e>d;d++)c=this.get_node(b.selected[d],!0),c&&c.length&&c.children(".jstree-wholerow").addClass("jstree-wholerow-clicked")}.bind(this)).on("open_node.jstree",function(a,b){this.get_node(b.node,!0).find(".jstree-clicked").parent().children(".jstree-wholerow").addClass("jstree-wholerow-clicked")}.bind(this)).on("hover_node.jstree dehover_node.jstree",function(a,b){"hover_node"===a.type&&this.is_disabled(b.node)||this.get_node(b.node,!0).children(".jstree-wholerow")["hover_node"===a.type?"addClass":"removeClass"]("jstree-wholerow-hovered")}.bind(this)).on("contextmenu.jstree",".jstree-wholerow",function(b){if(this._data.contextmenu){b.preventDefault();var c=a.Event("contextmenu",{metaKey:b.metaKey,ctrlKey:b.ctrlKey,altKey:b.altKey,shiftKey:b.shiftKey,pageX:b.pageX,pageY:b.pageY});a(b.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(c)}}.bind(this)).on("click.jstree",".jstree-wholerow",function(b){b.stopImmediatePropagation();var c=a.Event("click",{metaKey:b.metaKey,ctrlKey:b.ctrlKey,altKey:b.altKey,shiftKey:b.shiftKey});a(b.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(c).trigger("focus")}).on("dblclick.jstree",".jstree-wholerow",function(b){b.stopImmediatePropagation();var c=a.Event("dblclick",{metaKey:b.metaKey,ctrlKey:b.ctrlKey,altKey:b.altKey,shiftKey:b.shiftKey});a(b.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(c).trigger("focus")}).on("click.jstree",".jstree-leaf > .jstree-ocl",function(b){b.stopImmediatePropagation();var c=a.Event("click",{metaKey:b.metaKey,ctrlKey:b.ctrlKey,altKey:b.altKey,shiftKey:b.shiftKey});a(b.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(c).trigger("focus")}.bind(this)).on("mouseover.jstree",".jstree-wholerow, .jstree-icon",function(a){return a.stopImmediatePropagation(),this.is_disabled(a.currentTarget)||this.hover_node(a.currentTarget),!1}.bind(this)).on("mouseleave.jstree",".jstree-node",function(a){this.dehover_node(a.currentTarget)}.bind(this))},this.teardown=function(){this.settings.wholerow&&this.element.find(".jstree-wholerow").remove(),c.teardown.call(this)},this.redraw_node=function(b,d,e,f){if(b=c.redraw_node.apply(this,arguments)){var g=p.cloneNode(!0);-1!==a.inArray(b.id,this._data.core.selected)&&(g.className+=" jstree-wholerow-clicked"),this._data.core.focused&&this._data.core.focused===b.id&&(g.className+=" jstree-wholerow-hovered"),b.insertBefore(g,b.childNodes[0])}return b}},window.customElements&&Object&&Object.create){var q=Object.create(HTMLElement.prototype);q.createdCallback=function(){var b={core:{},plugins:[]},c;for(c in a.jstree.plugins)a.jstree.plugins.hasOwnProperty(c)&&this.attributes[c]&&(b.plugins.push(c),this.getAttribute(c)&&JSON.parse(this.getAttribute(c))&&(b[c]=JSON.parse(this.getAttribute(c))));for(c in a.jstree.defaults.core)a.jstree.defaults.core.hasOwnProperty(c)&&this.attributes[c]&&(b.core[c]=JSON.parse(this.getAttribute(c))||this.getAttribute(c));a(this).jstree(b)};try{window.customElements.define("vakata-jstree",function(){},{prototype:q})}catch(r){}}}});
|
assets/jstree/themes/default-dark/32px.png
CHANGED
Binary file
|
assets/jstree/themes/default-dark/40px.png
CHANGED
Binary file
|
assets/jstree/themes/default-dark/style.css
CHANGED
@@ -1,1146 +1,1152 @@
|
|
1 |
-
/* jsTree default dark theme */
|
2 |
-
.jstree-node,
|
3 |
-
.jstree-children,
|
4 |
-
.jstree-container-ul {
|
5 |
-
display: block;
|
6 |
-
margin: 0;
|
7 |
-
padding: 0;
|
8 |
-
list-style-type: none;
|
9 |
-
list-style-image: none;
|
10 |
-
}
|
11 |
-
.jstree-node {
|
12 |
-
white-space: nowrap;
|
13 |
-
}
|
14 |
-
.jstree-anchor {
|
15 |
-
display: inline-block;
|
16 |
-
color: black;
|
17 |
-
white-space: nowrap;
|
18 |
-
padding: 0 4px 0 1px;
|
19 |
-
margin: 0;
|
20 |
-
vertical-align: top;
|
21 |
-
}
|
22 |
-
.jstree-anchor:focus {
|
23 |
-
outline: 0;
|
24 |
-
}
|
25 |
-
.jstree-anchor,
|
26 |
-
.jstree-anchor:link,
|
27 |
-
.jstree-anchor:visited,
|
28 |
-
.jstree-anchor:hover,
|
29 |
-
.jstree-anchor:active {
|
30 |
-
text-decoration: none;
|
31 |
-
color: inherit;
|
32 |
-
}
|
33 |
-
.jstree-icon {
|
34 |
-
display: inline-block;
|
35 |
-
text-decoration: none;
|
36 |
-
margin: 0;
|
37 |
-
padding: 0;
|
38 |
-
vertical-align: top;
|
39 |
-
text-align: center;
|
40 |
-
}
|
41 |
-
.jstree-icon:empty {
|
42 |
-
display: inline-block;
|
43 |
-
text-decoration: none;
|
44 |
-
margin: 0;
|
45 |
-
padding: 0;
|
46 |
-
vertical-align: top;
|
47 |
-
text-align: center;
|
48 |
-
}
|
49 |
-
.jstree-ocl {
|
50 |
-
cursor: pointer;
|
51 |
-
}
|
52 |
-
.jstree-leaf > .jstree-ocl {
|
53 |
-
cursor: default;
|
54 |
-
}
|
55 |
-
.jstree .jstree-open > .jstree-children {
|
56 |
-
display: block;
|
57 |
-
}
|
58 |
-
.jstree .jstree-closed > .jstree-children,
|
59 |
-
.jstree .jstree-leaf > .jstree-children {
|
60 |
-
display: none;
|
61 |
-
}
|
62 |
-
.jstree-anchor > .jstree-themeicon {
|
63 |
-
margin-right: 2px;
|
64 |
-
}
|
65 |
-
.jstree-no-icons .jstree-themeicon,
|
66 |
-
.jstree-anchor > .jstree-themeicon-hidden {
|
67 |
-
display: none;
|
68 |
-
}
|
69 |
-
.jstree-hidden,
|
70 |
-
.jstree-node.jstree-hidden {
|
71 |
-
display: none;
|
72 |
-
}
|
73 |
-
.jstree-rtl .jstree-anchor {
|
74 |
-
padding: 0 1px 0 4px;
|
75 |
-
}
|
76 |
-
.jstree-rtl .jstree-anchor > .jstree-themeicon {
|
77 |
-
margin-left: 2px;
|
78 |
-
margin-right: 0;
|
79 |
-
}
|
80 |
-
.jstree-rtl .jstree-node {
|
81 |
-
margin-left: 0;
|
82 |
-
}
|
83 |
-
.jstree-rtl .jstree-container-ul > .jstree-node {
|
84 |
-
margin-right: 0;
|
85 |
-
}
|
86 |
-
.jstree-wholerow-ul {
|
87 |
-
position: relative;
|
88 |
-
display: inline-block;
|
89 |
-
min-width: 100%;
|
90 |
-
}
|
91 |
-
.jstree-wholerow-ul .jstree-leaf > .jstree-ocl {
|
92 |
-
cursor: pointer;
|
93 |
-
}
|
94 |
-
.jstree-wholerow-ul .jstree-anchor,
|
95 |
-
.jstree-wholerow-ul .jstree-icon {
|
96 |
-
position: relative;
|
97 |
-
}
|
98 |
-
.jstree-wholerow-ul .jstree-wholerow {
|
99 |
-
width: 100%;
|
100 |
-
cursor: pointer;
|
101 |
-
position: absolute;
|
102 |
-
left: 0;
|
103 |
-
-webkit-user-select: none;
|
104 |
-
-moz-user-select: none;
|
105 |
-
-ms-user-select: none;
|
106 |
-
user-select: none;
|
107 |
-
}
|
108 |
-
.jstree-contextmenu .jstree-anchor {
|
109 |
-
-webkit-user-select: none;
|
110 |
-
/* disable selection/Copy of UIWebView */
|
111 |
-
-webkit-touch-callout: none;
|
112 |
-
/* disable the IOS popup when long-press on a link */
|
113 |
-
}
|
114 |
-
.vakata-context {
|
115 |
-
display: none;
|
116 |
-
}
|
117 |
-
.vakata-context,
|
118 |
-
.vakata-context ul {
|
119 |
-
margin: 0;
|
120 |
-
padding: 2px;
|
121 |
-
position: absolute;
|
122 |
-
background: #f5f5f5;
|
123 |
-
border: 1px solid #979797;
|
124 |
-
box-shadow: 2px 2px 2px #999999;
|
125 |
-
}
|
126 |
-
.vakata-context ul {
|
127 |
-
list-style: none;
|
128 |
-
left: 100%;
|
129 |
-
margin-top: -2.7em;
|
130 |
-
margin-left: -4px;
|
131 |
-
}
|
132 |
-
.vakata-context .vakata-context-right ul {
|
133 |
-
left: auto;
|
134 |
-
right: 100%;
|
135 |
-
margin-left: auto;
|
136 |
-
margin-right: -4px;
|
137 |
-
}
|
138 |
-
.vakata-context li {
|
139 |
-
list-style: none;
|
140 |
-
}
|
141 |
-
.vakata-context li > a {
|
142 |
-
display: block;
|
143 |
-
padding: 0 2em 0 2em;
|
144 |
-
text-decoration: none;
|
145 |
-
width: auto;
|
146 |
-
color: black;
|
147 |
-
white-space: nowrap;
|
148 |
-
line-height: 2.4em;
|
149 |
-
text-shadow: 1px 1px 0 white;
|
150 |
-
border-radius: 1px;
|
151 |
-
}
|
152 |
-
.vakata-context li > a:hover {
|
153 |
-
position: relative;
|
154 |
-
background-color: #e8eff7;
|
155 |
-
box-shadow: 0 0 2px #0a6aa1;
|
156 |
-
}
|
157 |
-
.vakata-context li > a.vakata-context-parent {
|
158 |
-
background-image: url("data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAIORI4JlrqN1oMSnmmZDQUAOw==");
|
159 |
-
background-position: right center;
|
160 |
-
background-repeat: no-repeat;
|
161 |
-
}
|
162 |
-
.vakata-context li > a:focus {
|
163 |
-
outline: 0;
|
164 |
-
}
|
165 |
-
.vakata-context .vakata-context-hover > a {
|
166 |
-
position: relative;
|
167 |
-
background-color: #e8eff7;
|
168 |
-
box-shadow: 0 0 2px #0a6aa1;
|
169 |
-
}
|
170 |
-
.vakata-context .vakata-context-separator > a,
|
171 |
-
.vakata-context .vakata-context-separator > a:hover {
|
172 |
-
background: white;
|
173 |
-
border: 0;
|
174 |
-
border-top: 1px solid #e2e3e3;
|
175 |
-
height: 1px;
|
176 |
-
min-height: 1px;
|
177 |
-
max-height: 1px;
|
178 |
-
padding: 0;
|
179 |
-
margin: 0 0 0 2.4em;
|
180 |
-
border-left: 1px solid #e0e0e0;
|
181 |
-
text-shadow: 0 0 0 transparent;
|
182 |
-
box-shadow: 0 0 0 transparent;
|
183 |
-
border-radius: 0;
|
184 |
-
}
|
185 |
-
.vakata-context .vakata-contextmenu-disabled a,
|
186 |
-
.vakata-context .vakata-contextmenu-disabled a:hover {
|
187 |
-
color: silver;
|
188 |
-
background-color: transparent;
|
189 |
-
border: 0;
|
190 |
-
box-shadow: 0 0 0;
|
191 |
-
}
|
192 |
-
.vakata-context
|
193 |
-
|
194 |
-
|
195 |
-
.
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
right: auto;
|
242 |
-
|
243 |
-
|
244 |
-
margin
|
245 |
-
}
|
246 |
-
.vakata-context-rtl li > a
|
247 |
-
margin: 0
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
border-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
line-height:
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
}
|
283 |
-
#jstree-dnd .jstree-
|
284 |
-
background:
|
285 |
-
}
|
286 |
-
#jstree-dnd .jstree-
|
287 |
-
|
288 |
-
}
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
.
|
298 |
-
|
299 |
-
.jstree-default-dark .jstree-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
}
|
317 |
-
.jstree-default-dark .jstree-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
}
|
328 |
-
.jstree-default-dark .jstree-disabled.jstree-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
}
|
345 |
-
.jstree-default-dark
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
}
|
352 |
-
.jstree-default-dark.jstree-checkbox-no-clicked .jstree-
|
353 |
-
background:
|
354 |
-
}
|
355 |
-
.jstree-default-dark.jstree-checkbox-no-clicked > .jstree-wholerow-ul .jstree-wholerow-clicked {
|
356 |
-
background:
|
357 |
-
}
|
358 |
-
.jstree-default-dark
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
}
|
377 |
-
.jstree-default-dark .jstree-wholerow-
|
378 |
-
background: #
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
min-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
}
|
405 |
-
.jstree-default-dark
|
406 |
-
|
407 |
-
}
|
408 |
-
.jstree-default-dark .jstree-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
.jstree-default-dark .jstree-
|
413 |
-
background-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
background
|
418 |
-
}
|
419 |
-
.jstree-default-dark .jstree-
|
420 |
-
background:
|
421 |
-
}
|
422 |
-
.jstree-default-dark .jstree-
|
423 |
-
background-position: -
|
424 |
-
}
|
425 |
-
.jstree-default-dark .jstree-
|
426 |
-
background-position: -
|
427 |
-
}
|
428 |
-
.jstree-default-dark .jstree-
|
429 |
-
background-position: -
|
430 |
-
}
|
431 |
-
.jstree-default-dark .jstree-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
.jstree-default-dark > .jstree-no-dots .jstree-
|
436 |
-
background:
|
437 |
-
}
|
438 |
-
.jstree-default-dark > .jstree-no-dots .jstree-
|
439 |
-
background-position: -
|
440 |
-
}
|
441 |
-
.jstree-default-dark
|
442 |
-
background
|
443 |
-
}
|
444 |
-
.jstree-default-dark .jstree-disabled {
|
445 |
-
background: transparent;
|
446 |
-
}
|
447 |
-
.jstree-default-dark .jstree-disabled.jstree-
|
448 |
-
background:
|
449 |
-
}
|
450 |
-
.jstree-default-dark .jstree-
|
451 |
-
background:
|
452 |
-
}
|
453 |
-
.jstree-default-dark .jstree-checkbox {
|
454 |
-
background-position: -164px -
|
455 |
-
}
|
456 |
-
.jstree-default-dark .jstree-checkbox
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
.jstree-default-dark .jstree-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
.jstree-default-dark .jstree-
|
465 |
-
background-position: -
|
466 |
-
}
|
467 |
-
.jstree-default-dark .jstree-anchor > .jstree-undetermined {
|
468 |
-
background-position: -196px -
|
469 |
-
}
|
470 |
-
.jstree-default-dark .jstree-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
}
|
482 |
-
.jstree-default-dark
|
483 |
-
background-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
background
|
489 |
-
}
|
490 |
-
.jstree-default-dark.jstree-rtl .jstree-
|
491 |
-
background:
|
492 |
-
}
|
493 |
-
.jstree-default-dark.jstree-rtl .jstree-
|
494 |
-
background-position: -
|
495 |
-
}
|
496 |
-
.jstree-default-dark.jstree-rtl .jstree-
|
497 |
-
background-position: -
|
498 |
-
}
|
499 |
-
.jstree-default-dark.jstree-rtl .jstree-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
.jstree-default-dark.jstree-rtl > .jstree-no-dots .jstree-
|
504 |
-
background:
|
505 |
-
}
|
506 |
-
.jstree-default-dark.jstree-rtl > .jstree-no-dots .jstree-
|
507 |
-
background-position: -
|
508 |
-
}
|
509 |
-
.jstree-default-dark
|
510 |
-
background-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
background
|
516 |
-
}
|
517 |
-
.jstree-default-dark
|
518 |
-
background: url("
|
519 |
-
}
|
520 |
-
.jstree-default-dark .jstree-
|
521 |
-
background: url("32px.png") -
|
522 |
-
}
|
523 |
-
.jstree-default-dark .jstree-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
background
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
}
|
546 |
-
#jstree-dnd.jstree-default-dark .jstree-
|
547 |
-
background-position: -
|
548 |
-
}
|
549 |
-
|
550 |
-
|
551 |
-
}
|
552 |
-
.jstree-default-dark .jstree-ellipsis {
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
}
|
560 |
-
.jstree-default-dark.jstree-rtl .jstree-node {
|
561 |
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==");
|
562 |
-
}
|
563 |
-
.jstree-default-dark.jstree-rtl .jstree-last {
|
564 |
-
background: transparent;
|
565 |
-
}
|
566 |
-
.jstree-default-dark-small .jstree-node {
|
567 |
-
min-height: 18px;
|
568 |
-
line-height: 18px;
|
569 |
-
margin-left: 18px;
|
570 |
-
min-width: 18px;
|
571 |
-
}
|
572 |
-
.jstree-default-dark-small .jstree-anchor {
|
573 |
-
line-height: 18px;
|
574 |
-
height: 18px;
|
575 |
-
}
|
576 |
-
.jstree-default-dark-small .jstree-icon {
|
577 |
-
width: 18px;
|
578 |
-
height: 18px;
|
579 |
-
line-height: 18px;
|
580 |
-
}
|
581 |
-
.jstree-default-dark-small .jstree-icon:empty {
|
582 |
-
width: 18px;
|
583 |
-
height: 18px;
|
584 |
-
line-height: 18px;
|
585 |
-
}
|
586 |
-
.jstree-default-dark-small.jstree-rtl .jstree-node {
|
587 |
-
margin-right: 18px;
|
588 |
-
}
|
589 |
-
.jstree-default-dark-small .jstree-wholerow {
|
590 |
-
height: 18px;
|
591 |
-
}
|
592 |
-
.jstree-default-dark-small .jstree-node,
|
593 |
-
.jstree-default-dark-small .jstree-icon {
|
594 |
-
background-image: url("32px.png");
|
595 |
-
}
|
596 |
-
.jstree-default-dark-small .jstree-node {
|
597 |
-
background-position: -295px -7px;
|
598 |
-
background-repeat: repeat-y;
|
599 |
-
}
|
600 |
-
.jstree-default-dark-small .jstree-last {
|
601 |
-
background: transparent;
|
602 |
-
}
|
603 |
-
.jstree-default-dark-small .jstree-open > .jstree-ocl {
|
604 |
-
background-position: -135px -7px;
|
605 |
-
}
|
606 |
-
.jstree-default-dark-small .jstree-closed > .jstree-ocl {
|
607 |
-
background-position: -103px -7px;
|
608 |
-
}
|
609 |
-
.jstree-default-dark-small .jstree-leaf > .jstree-ocl {
|
610 |
-
background-position: -71px -7px;
|
611 |
-
}
|
612 |
-
.jstree-default-dark-small .jstree-themeicon {
|
613 |
-
background-position: -263px -7px;
|
614 |
-
}
|
615 |
-
.jstree-default-dark-small > .jstree-no-dots .jstree-node,
|
616 |
-
.jstree-default-dark-small > .jstree-no-dots .jstree-leaf > .jstree-ocl {
|
617 |
-
background: transparent;
|
618 |
-
}
|
619 |
-
.jstree-default-dark-small > .jstree-no-dots .jstree-open > .jstree-ocl {
|
620 |
-
background-position: -39px -7px;
|
621 |
-
}
|
622 |
-
.jstree-default-dark-small > .jstree-no-dots .jstree-closed > .jstree-ocl {
|
623 |
-
background-position: -7px -7px;
|
624 |
-
}
|
625 |
-
.jstree-default-dark-small .jstree-disabled {
|
626 |
-
background: transparent;
|
627 |
-
}
|
628 |
-
.jstree-default-dark-small .jstree-disabled.jstree-hovered {
|
629 |
-
background: transparent;
|
630 |
-
}
|
631 |
-
.jstree-default-dark-small .jstree-disabled.jstree-clicked {
|
632 |
-
background: #efefef;
|
633 |
-
}
|
634 |
-
.jstree-default-dark-small .jstree-checkbox {
|
635 |
-
background-position: -167px -7px;
|
636 |
-
}
|
637 |
-
.jstree-default-dark-small .jstree-checkbox:hover {
|
638 |
-
background-position: -167px -39px;
|
639 |
-
}
|
640 |
-
.jstree-default-dark-small.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox,
|
641 |
-
.jstree-default-dark-small .jstree-checked > .jstree-checkbox {
|
642 |
-
background-position: -231px -7px;
|
643 |
-
}
|
644 |
-
.jstree-default-dark-small.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox:hover,
|
645 |
-
.jstree-default-dark-small .jstree-checked > .jstree-checkbox:hover {
|
646 |
-
background-position: -231px -39px;
|
647 |
-
}
|
648 |
-
.jstree-default-dark-small .jstree-anchor > .jstree-undetermined {
|
649 |
-
background-position: -199px -7px;
|
650 |
-
}
|
651 |
-
.jstree-default-dark-small .jstree-anchor > .jstree-undetermined:hover {
|
652 |
-
background-position: -199px -39px;
|
653 |
-
}
|
654 |
-
.jstree-default-dark-small .jstree-checkbox-disabled {
|
655 |
-
opacity: 0.8;
|
656 |
-
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");
|
657 |
-
/* Firefox 10+ */
|
658 |
-
filter: gray;
|
659 |
-
/* IE6-9 */
|
660 |
-
-webkit-filter: grayscale(100%);
|
661 |
-
/* Chrome 19+ & Safari 6+ */
|
662 |
-
}
|
663 |
-
.jstree-default-dark-small > .jstree-striped {
|
664 |
-
background-size: auto 36px;
|
665 |
-
}
|
666 |
-
.jstree-default-dark-small.jstree-rtl .jstree-node {
|
667 |
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==");
|
668 |
-
background-position: 100% 1px;
|
669 |
-
background-repeat: repeat-y;
|
670 |
-
}
|
671 |
-
.jstree-default-dark-small.jstree-rtl .jstree-last {
|
672 |
-
background: transparent;
|
673 |
-
}
|
674 |
-
.jstree-default-dark-small.jstree-rtl .jstree-open > .jstree-ocl {
|
675 |
-
background-position: -135px -39px;
|
676 |
-
}
|
677 |
-
.jstree-default-dark-small.jstree-rtl .jstree-closed > .jstree-ocl {
|
678 |
-
background-position: -103px -39px;
|
679 |
-
}
|
680 |
-
.jstree-default-dark-small.jstree-rtl .jstree-leaf > .jstree-ocl {
|
681 |
-
background-position: -71px -39px;
|
682 |
-
}
|
683 |
-
.jstree-default-dark-small.jstree-rtl > .jstree-no-dots .jstree-node,
|
684 |
-
.jstree-default-dark-small.jstree-rtl > .jstree-no-dots .jstree-leaf > .jstree-ocl {
|
685 |
-
background: transparent;
|
686 |
-
}
|
687 |
-
.jstree-default-dark-small.jstree-rtl > .jstree-no-dots .jstree-open > .jstree-ocl {
|
688 |
-
background-position: -39px -39px;
|
689 |
-
}
|
690 |
-
.jstree-default-dark-small.jstree-rtl > .jstree-no-dots .jstree-closed > .jstree-ocl {
|
691 |
-
background-position: -7px -39px;
|
692 |
-
}
|
693 |
-
.jstree-default-dark-small .jstree-themeicon-custom {
|
694 |
-
background-color: transparent;
|
695 |
-
background-image: none;
|
696 |
-
background-position: 0 0;
|
697 |
-
}
|
698 |
-
.jstree-default-dark-small > .jstree-container-ul .jstree-loading > .jstree-ocl {
|
699 |
-
background: url("throbber.gif") center center no-repeat;
|
700 |
-
}
|
701 |
-
.jstree-default-dark-small .jstree-file {
|
702 |
-
background: url("32px.png") -103px -71px no-repeat;
|
703 |
-
}
|
704 |
-
.jstree-default-dark-small .jstree-folder {
|
705 |
-
background: url("32px.png") -263px -7px no-repeat;
|
706 |
-
}
|
707 |
-
.jstree-default-dark-small > .jstree-container-ul > .jstree-node {
|
708 |
-
margin-left: 0;
|
709 |
-
margin-right: 0;
|
710 |
-
}
|
711 |
-
#jstree-dnd.jstree-default-dark-small {
|
712 |
-
line-height: 18px;
|
713 |
-
padding: 0 4px;
|
714 |
-
}
|
715 |
-
#jstree-dnd.jstree-default-dark-small .jstree-ok,
|
716 |
-
#jstree-dnd.jstree-default-dark-small .jstree-er {
|
717 |
-
background-image: url("32px.png");
|
718 |
-
background-repeat: no-repeat;
|
719 |
-
background-color: transparent;
|
720 |
-
}
|
721 |
-
#jstree-dnd.jstree-default-dark-small i {
|
722 |
-
background: transparent;
|
723 |
-
width: 18px;
|
724 |
-
height: 18px;
|
725 |
-
line-height: 18px;
|
726 |
-
}
|
727 |
-
#jstree-dnd.jstree-default-dark-small .jstree-ok {
|
728 |
-
background-position: -7px -71px;
|
729 |
-
}
|
730 |
-
#jstree-dnd.jstree-default-dark-small .jstree-er {
|
731 |
-
background-position: -39px -71px;
|
732 |
-
}
|
733 |
-
.jstree-default-dark-small .jstree-ellipsis {
|
734 |
-
overflow: hidden;
|
735 |
-
}
|
736 |
-
.jstree-default-dark-small .jstree-ellipsis .jstree-anchor {
|
737 |
-
width: calc(100% - 23px);
|
738 |
-
text-overflow: ellipsis;
|
739 |
-
overflow: hidden;
|
740 |
-
}
|
741 |
-
.jstree-default-dark-small.jstree-
|
742 |
-
|
743 |
-
}
|
744 |
-
.jstree-default-dark-small.jstree-rtl .jstree-
|
745 |
-
background:
|
746 |
-
}
|
747 |
-
.jstree-default-dark-
|
748 |
-
|
749 |
-
|
750 |
-
|
751 |
-
min-
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
|
756 |
-
|
757 |
-
|
758 |
-
|
759 |
-
|
760 |
-
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
-
|
768 |
-
|
769 |
-
}
|
770 |
-
.jstree-default-dark-large .jstree-
|
771 |
-
|
772 |
-
}
|
773 |
-
.jstree-default-dark-large .jstree-
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
-
.jstree-default-dark-large .jstree-
|
778 |
-
background-
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
background:
|
783 |
-
}
|
784 |
-
.jstree-default-dark-large .jstree-
|
785 |
-
background
|
786 |
-
}
|
787 |
-
.jstree-default-dark-large .jstree-
|
788 |
-
background-position: -
|
789 |
-
}
|
790 |
-
.jstree-default-dark-large .jstree-
|
791 |
-
background-position: -
|
792 |
-
}
|
793 |
-
.jstree-default-dark-large .jstree-
|
794 |
-
background-position: -
|
795 |
-
}
|
796 |
-
.jstree-default-dark-large
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
.jstree-default-dark-large > .jstree-no-dots .jstree-
|
801 |
-
background
|
802 |
-
}
|
803 |
-
.jstree-default-dark-large > .jstree-no-dots .jstree-
|
804 |
-
background-position:
|
805 |
-
}
|
806 |
-
.jstree-default-dark-large .jstree-
|
807 |
-
background:
|
808 |
-
}
|
809 |
-
.jstree-default-dark-large .jstree-disabled
|
810 |
-
background: transparent;
|
811 |
-
}
|
812 |
-
.jstree-default-dark-large .jstree-disabled.jstree-
|
813 |
-
background:
|
814 |
-
}
|
815 |
-
.jstree-default-dark-large .jstree-
|
816 |
-
background
|
817 |
-
}
|
818 |
-
.jstree-default-dark-large .jstree-checkbox
|
819 |
-
background-position: -160px
|
820 |
-
}
|
821 |
-
.jstree-default-dark-large.jstree-checkbox
|
822 |
-
|
823 |
-
|
824 |
-
|
825 |
-
.jstree-default-dark-large
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
.jstree-default-dark-large .jstree-
|
830 |
-
background-position: -
|
831 |
-
}
|
832 |
-
.jstree-default-dark-large .jstree-anchor > .jstree-undetermined
|
833 |
-
background-position: -192px
|
834 |
-
}
|
835 |
-
.jstree-default-dark-large .jstree-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
}
|
847 |
-
.jstree-default-dark-large
|
848 |
-
background-
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
background:
|
854 |
-
}
|
855 |
-
.jstree-default-dark-large.jstree-rtl .jstree-
|
856 |
-
background
|
857 |
-
}
|
858 |
-
.jstree-default-dark-large.jstree-rtl .jstree-
|
859 |
-
background-position: -
|
860 |
-
}
|
861 |
-
.jstree-default-dark-large.jstree-rtl .jstree-
|
862 |
-
background-position: -
|
863 |
-
}
|
864 |
-
.jstree-default-dark-large.jstree-rtl
|
865 |
-
|
866 |
-
|
867 |
-
|
868 |
-
.jstree-default-dark-large.jstree-rtl > .jstree-no-dots .jstree-
|
869 |
-
background
|
870 |
-
}
|
871 |
-
.jstree-default-dark-large.jstree-rtl > .jstree-no-dots .jstree-
|
872 |
-
background-position:
|
873 |
-
}
|
874 |
-
.jstree-default-dark-large .jstree-
|
875 |
-
background-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
background:
|
881 |
-
}
|
882 |
-
.jstree-default-dark-large .jstree-
|
883 |
-
background: url("
|
884 |
-
}
|
885 |
-
.jstree-default-dark-large .jstree-
|
886 |
-
background: url("32px.png") -
|
887 |
-
}
|
888 |
-
.jstree-default-dark-large
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
898 |
-
|
899 |
-
|
900 |
-
|
901 |
-
|
902 |
-
|
903 |
-
background: transparent;
|
904 |
-
|
905 |
-
|
906 |
-
|
907 |
-
|
908 |
-
|
909 |
-
|
910 |
-
}
|
911 |
-
#jstree-dnd.jstree-default-dark-large .jstree-
|
912 |
-
background-position:
|
913 |
-
}
|
914 |
-
.jstree-default-dark-large .jstree-
|
915 |
-
|
916 |
-
}
|
917 |
-
.jstree-default-dark-large .jstree-ellipsis
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
}
|
925 |
-
.jstree-default-dark-large.jstree-
|
926 |
-
|
927 |
-
}
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
|
935 |
-
#jstree-dnd.jstree-dnd-responsive
|
936 |
-
|
937 |
-
|
938 |
-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
-
background
|
943 |
-
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
background-
|
948 |
-
background-
|
949 |
-
|
950 |
-
|
951 |
-
|
952 |
-
|
953 |
-
|
954 |
-
|
955 |
-
}
|
956 |
-
|
957 |
-
|
958 |
-
|
959 |
-
|
960 |
-
|
961 |
-
|
962 |
-
|
963 |
-
|
964 |
-
.jstree-default-dark-responsive
|
965 |
-
|
966 |
-
|
967 |
-
|
968 |
-
|
969 |
-
|
970 |
-
|
971 |
-
|
972 |
-
|
973 |
-
|
974 |
-
|
975 |
-
|
976 |
-
|
977 |
-
|
978 |
-
|
979 |
-
line-height: 40px;
|
980 |
-
|
981 |
-
|
982 |
-
|
983 |
-
|
984 |
-
|
985 |
-
height: 40px;
|
986 |
-
|
987 |
-
}
|
988 |
-
.jstree-default-dark-responsive
|
989 |
-
|
990 |
-
|
991 |
-
|
992 |
-
|
993 |
-
|
994 |
-
|
995 |
-
|
996 |
-
|
997 |
-
|
998 |
-
|
999 |
-
|
1000 |
-
|
1001 |
-
|
1002 |
-
|
1003 |
-
|
1004 |
-
|
1005 |
-
.jstree-default-dark-responsive
|
1006 |
-
|
1007 |
-
|
1008 |
-
|
1009 |
-
|
1010 |
-
|
1011 |
-
.jstree-default-dark-responsive .jstree-
|
1012 |
-
background
|
1013 |
-
}
|
1014 |
-
.jstree-default-dark-responsive
|
1015 |
-
background-position:
|
1016 |
-
}
|
1017 |
-
.jstree-default-dark-responsive .jstree-
|
1018 |
-
background-position: -40px
|
1019 |
-
}
|
1020 |
-
.jstree-default-dark-responsive .jstree-
|
1021 |
-
|
1022 |
-
|
1023 |
-
|
1024 |
-
|
1025 |
-
|
1026 |
-
.jstree-default-dark-responsive .jstree-
|
1027 |
-
.jstree-default-dark-responsive .jstree-
|
1028 |
-
background-position:
|
1029 |
-
}
|
1030 |
-
.jstree-default-dark-responsive .jstree-
|
1031 |
-
.jstree-default-dark-responsive .jstree-
|
1032 |
-
|
1033 |
-
|
1034 |
-
|
1035 |
-
|
1036 |
-
|
1037 |
-
|
1038 |
-
|
1039 |
-
|
1040 |
-
|
1041 |
-
|
1042 |
-
|
1043 |
-
|
1044 |
-
|
1045 |
-
|
1046 |
-
|
1047 |
-
}
|
1048 |
-
.jstree-default-dark-responsive .jstree-wholerow
|
1049 |
-
|
1050 |
-
|
1051 |
-
|
1052 |
-
|
1053 |
-
}
|
1054 |
-
.jstree-default-dark-responsive .jstree-
|
1055 |
-
|
1056 |
-
}
|
1057 |
-
.jstree-default-dark-responsive .jstree-
|
1058 |
-
|
1059 |
-
|
1060 |
-
|
1061 |
-
|
1062 |
-
|
1063 |
-
|
1064 |
-
|
1065 |
-
|
1066 |
-
|
1067 |
-
.jstree-default-dark-responsive .jstree-
|
1068 |
-
|
1069 |
-
|
1070 |
-
|
1071 |
-
|
1072 |
-
.jstree-default-dark-responsive .jstree-node
|
1073 |
-
|
1074 |
-
|
1075 |
-
|
1076 |
-
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
background-
|
1081 |
-
}
|
1082 |
-
.jstree-default-dark-responsive .jstree-last
|
1083 |
-
background
|
1084 |
-
}
|
1085 |
-
.jstree-default-dark-responsive .jstree-
|
1086 |
-
background-
|
1087 |
-
|
1088 |
-
|
1089 |
-
|
1090 |
-
|
1091 |
-
|
1092 |
-
background-
|
1093 |
-
|
1094 |
-
|
1095 |
-
|
1096 |
-
|
1097 |
-
|
1098 |
-
|
1099 |
-
|
1100 |
-
|
1101 |
-
|
1102 |
-
|
1103 |
-
|
1104 |
-
|
1105 |
-
|
1106 |
-
|
1107 |
-
|
1108 |
-
|
1109 |
-
|
1110 |
-
|
1111 |
-
|
1112 |
-
|
1113 |
-
|
1114 |
-
|
1115 |
-
|
1116 |
-
|
1117 |
-
|
1118 |
-
|
1119 |
-
|
1120 |
-
|
1121 |
-
|
1122 |
-
|
1123 |
-
|
1124 |
-
|
1125 |
-
|
1126 |
-
|
1127 |
-
|
1128 |
-
|
1129 |
-
|
1130 |
-
|
1131 |
-
|
1132 |
-
.jstree-default-dark.jstree-
|
1133 |
-
|
1134 |
-
}
|
1135 |
-
.jstree-default-dark
|
1136 |
-
background-image: url("data:image/png;base64,
|
1137 |
-
}
|
1138 |
-
.jstree-default-dark
|
1139 |
-
background: transparent;
|
1140 |
-
}
|
1141 |
-
.jstree-default-dark-
|
1142 |
-
background-image: url("data:image/png;base64,
|
1143 |
-
}
|
1144 |
-
.jstree-default-dark-
|
1145 |
-
background: transparent;
|
1146 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* jsTree default dark theme */
|
2 |
+
.jstree-node,
|
3 |
+
.jstree-children,
|
4 |
+
.jstree-container-ul {
|
5 |
+
display: block;
|
6 |
+
margin: 0;
|
7 |
+
padding: 0;
|
8 |
+
list-style-type: none;
|
9 |
+
list-style-image: none;
|
10 |
+
}
|
11 |
+
.jstree-node {
|
12 |
+
white-space: nowrap;
|
13 |
+
}
|
14 |
+
.jstree-anchor {
|
15 |
+
display: inline-block;
|
16 |
+
color: black;
|
17 |
+
white-space: nowrap;
|
18 |
+
padding: 0 4px 0 1px;
|
19 |
+
margin: 0;
|
20 |
+
vertical-align: top;
|
21 |
+
}
|
22 |
+
.jstree-anchor:focus {
|
23 |
+
outline: 0;
|
24 |
+
}
|
25 |
+
.jstree-anchor,
|
26 |
+
.jstree-anchor:link,
|
27 |
+
.jstree-anchor:visited,
|
28 |
+
.jstree-anchor:hover,
|
29 |
+
.jstree-anchor:active {
|
30 |
+
text-decoration: none;
|
31 |
+
color: inherit;
|
32 |
+
}
|
33 |
+
.jstree-icon {
|
34 |
+
display: inline-block;
|
35 |
+
text-decoration: none;
|
36 |
+
margin: 0;
|
37 |
+
padding: 0;
|
38 |
+
vertical-align: top;
|
39 |
+
text-align: center;
|
40 |
+
}
|
41 |
+
.jstree-icon:empty {
|
42 |
+
display: inline-block;
|
43 |
+
text-decoration: none;
|
44 |
+
margin: 0;
|
45 |
+
padding: 0;
|
46 |
+
vertical-align: top;
|
47 |
+
text-align: center;
|
48 |
+
}
|
49 |
+
.jstree-ocl {
|
50 |
+
cursor: pointer;
|
51 |
+
}
|
52 |
+
.jstree-leaf > .jstree-ocl {
|
53 |
+
cursor: default;
|
54 |
+
}
|
55 |
+
.jstree .jstree-open > .jstree-children {
|
56 |
+
display: block;
|
57 |
+
}
|
58 |
+
.jstree .jstree-closed > .jstree-children,
|
59 |
+
.jstree .jstree-leaf > .jstree-children {
|
60 |
+
display: none;
|
61 |
+
}
|
62 |
+
.jstree-anchor > .jstree-themeicon {
|
63 |
+
margin-right: 2px;
|
64 |
+
}
|
65 |
+
.jstree-no-icons .jstree-themeicon,
|
66 |
+
.jstree-anchor > .jstree-themeicon-hidden {
|
67 |
+
display: none;
|
68 |
+
}
|
69 |
+
.jstree-hidden,
|
70 |
+
.jstree-node.jstree-hidden {
|
71 |
+
display: none;
|
72 |
+
}
|
73 |
+
.jstree-rtl .jstree-anchor {
|
74 |
+
padding: 0 1px 0 4px;
|
75 |
+
}
|
76 |
+
.jstree-rtl .jstree-anchor > .jstree-themeicon {
|
77 |
+
margin-left: 2px;
|
78 |
+
margin-right: 0;
|
79 |
+
}
|
80 |
+
.jstree-rtl .jstree-node {
|
81 |
+
margin-left: 0;
|
82 |
+
}
|
83 |
+
.jstree-rtl .jstree-container-ul > .jstree-node {
|
84 |
+
margin-right: 0;
|
85 |
+
}
|
86 |
+
.jstree-wholerow-ul {
|
87 |
+
position: relative;
|
88 |
+
display: inline-block;
|
89 |
+
min-width: 100%;
|
90 |
+
}
|
91 |
+
.jstree-wholerow-ul .jstree-leaf > .jstree-ocl {
|
92 |
+
cursor: pointer;
|
93 |
+
}
|
94 |
+
.jstree-wholerow-ul .jstree-anchor,
|
95 |
+
.jstree-wholerow-ul .jstree-icon {
|
96 |
+
position: relative;
|
97 |
+
}
|
98 |
+
.jstree-wholerow-ul .jstree-wholerow {
|
99 |
+
width: 100%;
|
100 |
+
cursor: pointer;
|
101 |
+
position: absolute;
|
102 |
+
left: 0;
|
103 |
+
-webkit-user-select: none;
|
104 |
+
-moz-user-select: none;
|
105 |
+
-ms-user-select: none;
|
106 |
+
user-select: none;
|
107 |
+
}
|
108 |
+
.jstree-contextmenu .jstree-anchor {
|
109 |
+
-webkit-user-select: none;
|
110 |
+
/* disable selection/Copy of UIWebView */
|
111 |
+
-webkit-touch-callout: none;
|
112 |
+
/* disable the IOS popup when long-press on a link */
|
113 |
+
}
|
114 |
+
.vakata-context {
|
115 |
+
display: none;
|
116 |
+
}
|
117 |
+
.vakata-context,
|
118 |
+
.vakata-context ul {
|
119 |
+
margin: 0;
|
120 |
+
padding: 2px;
|
121 |
+
position: absolute;
|
122 |
+
background: #f5f5f5;
|
123 |
+
border: 1px solid #979797;
|
124 |
+
box-shadow: 2px 2px 2px #999999;
|
125 |
+
}
|
126 |
+
.vakata-context ul {
|
127 |
+
list-style: none;
|
128 |
+
left: 100%;
|
129 |
+
margin-top: -2.7em;
|
130 |
+
margin-left: -4px;
|
131 |
+
}
|
132 |
+
.vakata-context .vakata-context-right ul {
|
133 |
+
left: auto;
|
134 |
+
right: 100%;
|
135 |
+
margin-left: auto;
|
136 |
+
margin-right: -4px;
|
137 |
+
}
|
138 |
+
.vakata-context li {
|
139 |
+
list-style: none;
|
140 |
+
}
|
141 |
+
.vakata-context li > a {
|
142 |
+
display: block;
|
143 |
+
padding: 0 2em 0 2em;
|
144 |
+
text-decoration: none;
|
145 |
+
width: auto;
|
146 |
+
color: black;
|
147 |
+
white-space: nowrap;
|
148 |
+
line-height: 2.4em;
|
149 |
+
text-shadow: 1px 1px 0 white;
|
150 |
+
border-radius: 1px;
|
151 |
+
}
|
152 |
+
.vakata-context li > a:hover {
|
153 |
+
position: relative;
|
154 |
+
background-color: #e8eff7;
|
155 |
+
box-shadow: 0 0 2px #0a6aa1;
|
156 |
+
}
|
157 |
+
.vakata-context li > a.vakata-context-parent {
|
158 |
+
background-image: url("data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAIORI4JlrqN1oMSnmmZDQUAOw==");
|
159 |
+
background-position: right center;
|
160 |
+
background-repeat: no-repeat;
|
161 |
+
}
|
162 |
+
.vakata-context li > a:focus {
|
163 |
+
outline: 0;
|
164 |
+
}
|
165 |
+
.vakata-context .vakata-context-hover > a {
|
166 |
+
position: relative;
|
167 |
+
background-color: #e8eff7;
|
168 |
+
box-shadow: 0 0 2px #0a6aa1;
|
169 |
+
}
|
170 |
+
.vakata-context .vakata-context-separator > a,
|
171 |
+
.vakata-context .vakata-context-separator > a:hover {
|
172 |
+
background: white;
|
173 |
+
border: 0;
|
174 |
+
border-top: 1px solid #e2e3e3;
|
175 |
+
height: 1px;
|
176 |
+
min-height: 1px;
|
177 |
+
max-height: 1px;
|
178 |
+
padding: 0;
|
179 |
+
margin: 0 0 0 2.4em;
|
180 |
+
border-left: 1px solid #e0e0e0;
|
181 |
+
text-shadow: 0 0 0 transparent;
|
182 |
+
box-shadow: 0 0 0 transparent;
|
183 |
+
border-radius: 0;
|
184 |
+
}
|
185 |
+
.vakata-context .vakata-contextmenu-disabled a,
|
186 |
+
.vakata-context .vakata-contextmenu-disabled a:hover {
|
187 |
+
color: silver;
|
188 |
+
background-color: transparent;
|
189 |
+
border: 0;
|
190 |
+
box-shadow: 0 0 0;
|
191 |
+
}
|
192 |
+
.vakata-context li > a > i {
|
193 |
+
text-decoration: none;
|
194 |
+
display: inline-block;
|
195 |
+
width: 2.4em;
|
196 |
+
height: 2.4em;
|
197 |
+
background: transparent;
|
198 |
+
margin: 0 0 0 -2em;
|
199 |
+
vertical-align: top;
|
200 |
+
text-align: center;
|
201 |
+
line-height: 2.4em;
|
202 |
+
}
|
203 |
+
.vakata-context li > a > i:empty {
|
204 |
+
width: 2.4em;
|
205 |
+
line-height: 2.4em;
|
206 |
+
}
|
207 |
+
.vakata-context li > a .vakata-contextmenu-sep {
|
208 |
+
display: inline-block;
|
209 |
+
width: 1px;
|
210 |
+
height: 2.4em;
|
211 |
+
background: white;
|
212 |
+
margin: 0 0.5em 0 0;
|
213 |
+
border-left: 1px solid #e2e3e3;
|
214 |
+
}
|
215 |
+
.vakata-context .vakata-contextmenu-shortcut {
|
216 |
+
font-size: 0.8em;
|
217 |
+
color: silver;
|
218 |
+
opacity: 0.5;
|
219 |
+
display: none;
|
220 |
+
}
|
221 |
+
.vakata-context-rtl ul {
|
222 |
+
left: auto;
|
223 |
+
right: 100%;
|
224 |
+
margin-left: auto;
|
225 |
+
margin-right: -4px;
|
226 |
+
}
|
227 |
+
.vakata-context-rtl li > a.vakata-context-parent {
|
228 |
+
background-image: url("data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAINjI+AC7rWHIsPtmoxLAA7");
|
229 |
+
background-position: left center;
|
230 |
+
background-repeat: no-repeat;
|
231 |
+
}
|
232 |
+
.vakata-context-rtl .vakata-context-separator > a {
|
233 |
+
margin: 0 2.4em 0 0;
|
234 |
+
border-left: 0;
|
235 |
+
border-right: 1px solid #e2e3e3;
|
236 |
+
}
|
237 |
+
.vakata-context-rtl .vakata-context-left ul {
|
238 |
+
right: auto;
|
239 |
+
left: 100%;
|
240 |
+
margin-left: -4px;
|
241 |
+
margin-right: auto;
|
242 |
+
}
|
243 |
+
.vakata-context-rtl li > a > i {
|
244 |
+
margin: 0 -2em 0 0;
|
245 |
+
}
|
246 |
+
.vakata-context-rtl li > a .vakata-contextmenu-sep {
|
247 |
+
margin: 0 0 0 0.5em;
|
248 |
+
border-left-color: white;
|
249 |
+
background: #e2e3e3;
|
250 |
+
}
|
251 |
+
#jstree-marker {
|
252 |
+
position: absolute;
|
253 |
+
top: 0;
|
254 |
+
left: 0;
|
255 |
+
margin: -5px 0 0 0;
|
256 |
+
padding: 0;
|
257 |
+
border-right: 0;
|
258 |
+
border-top: 5px solid transparent;
|
259 |
+
border-bottom: 5px solid transparent;
|
260 |
+
border-left: 5px solid;
|
261 |
+
width: 0;
|
262 |
+
height: 0;
|
263 |
+
font-size: 0;
|
264 |
+
line-height: 0;
|
265 |
+
}
|
266 |
+
#jstree-dnd {
|
267 |
+
line-height: 16px;
|
268 |
+
margin: 0;
|
269 |
+
padding: 4px;
|
270 |
+
}
|
271 |
+
#jstree-dnd .jstree-icon,
|
272 |
+
#jstree-dnd .jstree-copy {
|
273 |
+
display: inline-block;
|
274 |
+
text-decoration: none;
|
275 |
+
margin: 0 2px 0 0;
|
276 |
+
padding: 0;
|
277 |
+
width: 16px;
|
278 |
+
height: 16px;
|
279 |
+
}
|
280 |
+
#jstree-dnd .jstree-ok {
|
281 |
+
background: green;
|
282 |
+
}
|
283 |
+
#jstree-dnd .jstree-er {
|
284 |
+
background: red;
|
285 |
+
}
|
286 |
+
#jstree-dnd .jstree-copy {
|
287 |
+
margin: 0 2px 0 2px;
|
288 |
+
}
|
289 |
+
.jstree-default-dark .jstree-node,
|
290 |
+
.jstree-default-dark .jstree-icon {
|
291 |
+
background-repeat: no-repeat;
|
292 |
+
background-color: transparent;
|
293 |
+
}
|
294 |
+
.jstree-default-dark .jstree-anchor,
|
295 |
+
.jstree-default-dark .jstree-animated,
|
296 |
+
.jstree-default-dark .jstree-wholerow {
|
297 |
+
transition: background-color 0.15s, box-shadow 0.15s;
|
298 |
+
}
|
299 |
+
.jstree-default-dark .jstree-hovered {
|
300 |
+
background: #555555;
|
301 |
+
border-radius: 2px;
|
302 |
+
box-shadow: inset 0 0 1px #555555;
|
303 |
+
}
|
304 |
+
.jstree-default-dark .jstree-context {
|
305 |
+
background: #555555;
|
306 |
+
border-radius: 2px;
|
307 |
+
box-shadow: inset 0 0 1px #555555;
|
308 |
+
}
|
309 |
+
.jstree-default-dark .jstree-clicked {
|
310 |
+
background: #5fa2db;
|
311 |
+
border-radius: 2px;
|
312 |
+
box-shadow: inset 0 0 1px #666666;
|
313 |
+
}
|
314 |
+
.jstree-default-dark .jstree-no-icons .jstree-anchor > .jstree-themeicon {
|
315 |
+
display: none;
|
316 |
+
}
|
317 |
+
.jstree-default-dark .jstree-disabled {
|
318 |
+
background: transparent;
|
319 |
+
color: #666666;
|
320 |
+
}
|
321 |
+
.jstree-default-dark .jstree-disabled.jstree-hovered {
|
322 |
+
background: transparent;
|
323 |
+
box-shadow: none;
|
324 |
+
}
|
325 |
+
.jstree-default-dark .jstree-disabled.jstree-clicked {
|
326 |
+
background: #333333;
|
327 |
+
}
|
328 |
+
.jstree-default-dark .jstree-disabled > .jstree-icon {
|
329 |
+
opacity: 0.8;
|
330 |
+
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");
|
331 |
+
/* Firefox 10+ */
|
332 |
+
filter: gray;
|
333 |
+
/* IE6-9 */
|
334 |
+
-webkit-filter: grayscale(100%);
|
335 |
+
/* Chrome 19+ & Safari 6+ */
|
336 |
+
}
|
337 |
+
.jstree-default-dark .jstree-search {
|
338 |
+
font-style: italic;
|
339 |
+
color: #ffffff;
|
340 |
+
font-weight: bold;
|
341 |
+
}
|
342 |
+
.jstree-default-dark .jstree-no-checkboxes .jstree-checkbox {
|
343 |
+
display: none !important;
|
344 |
+
}
|
345 |
+
.jstree-default-dark.jstree-checkbox-no-clicked .jstree-clicked {
|
346 |
+
background: transparent;
|
347 |
+
box-shadow: none;
|
348 |
+
}
|
349 |
+
.jstree-default-dark.jstree-checkbox-no-clicked .jstree-clicked.jstree-hovered {
|
350 |
+
background: #555555;
|
351 |
+
}
|
352 |
+
.jstree-default-dark.jstree-checkbox-no-clicked > .jstree-wholerow-ul .jstree-wholerow-clicked {
|
353 |
+
background: transparent;
|
354 |
+
}
|
355 |
+
.jstree-default-dark.jstree-checkbox-no-clicked > .jstree-wholerow-ul .jstree-wholerow-clicked.jstree-wholerow-hovered {
|
356 |
+
background: #555555;
|
357 |
+
}
|
358 |
+
.jstree-default-dark > .jstree-striped {
|
359 |
+
min-width: 100%;
|
360 |
+
display: inline-block;
|
361 |
+
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAkCAMAAAB/qqA+AAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlMNAMM9s3UAAAAXSURBVHjajcEBAQAAAIKg/H/aCQZ70AUBjAATb6YPDgAAAABJRU5ErkJggg==") left top repeat;
|
362 |
+
}
|
363 |
+
.jstree-default-dark > .jstree-wholerow-ul .jstree-hovered,
|
364 |
+
.jstree-default-dark > .jstree-wholerow-ul .jstree-clicked {
|
365 |
+
background: transparent;
|
366 |
+
box-shadow: none;
|
367 |
+
border-radius: 0;
|
368 |
+
}
|
369 |
+
.jstree-default-dark .jstree-wholerow {
|
370 |
+
-moz-box-sizing: border-box;
|
371 |
+
-webkit-box-sizing: border-box;
|
372 |
+
box-sizing: border-box;
|
373 |
+
}
|
374 |
+
.jstree-default-dark .jstree-wholerow-hovered {
|
375 |
+
background: #555555;
|
376 |
+
}
|
377 |
+
.jstree-default-dark .jstree-wholerow-clicked {
|
378 |
+
background: #5fa2db;
|
379 |
+
background: -webkit-linear-gradient(top, #5fa2db 0%, #5fa2db 100%);
|
380 |
+
background: linear-gradient(to bottom, #5fa2db 0%, #5fa2db 100%);
|
381 |
+
}
|
382 |
+
.jstree-default-dark .jstree-node {
|
383 |
+
min-height: 24px;
|
384 |
+
line-height: 24px;
|
385 |
+
margin-left: 24px;
|
386 |
+
min-width: 24px;
|
387 |
+
}
|
388 |
+
.jstree-default-dark .jstree-anchor {
|
389 |
+
line-height: 24px;
|
390 |
+
height: 24px;
|
391 |
+
}
|
392 |
+
.jstree-default-dark .jstree-icon {
|
393 |
+
width: 24px;
|
394 |
+
height: 24px;
|
395 |
+
line-height: 24px;
|
396 |
+
}
|
397 |
+
.jstree-default-dark .jstree-icon:empty {
|
398 |
+
width: 24px;
|
399 |
+
height: 24px;
|
400 |
+
line-height: 24px;
|
401 |
+
}
|
402 |
+
.jstree-default-dark.jstree-rtl .jstree-node {
|
403 |
+
margin-right: 24px;
|
404 |
+
}
|
405 |
+
.jstree-default-dark .jstree-wholerow {
|
406 |
+
height: 24px;
|
407 |
+
}
|
408 |
+
.jstree-default-dark .jstree-node,
|
409 |
+
.jstree-default-dark .jstree-icon {
|
410 |
+
background-image: url("32px.png");
|
411 |
+
}
|
412 |
+
.jstree-default-dark .jstree-node {
|
413 |
+
background-position: -292px -4px;
|
414 |
+
background-repeat: repeat-y;
|
415 |
+
}
|
416 |
+
.jstree-default-dark .jstree-last {
|
417 |
+
background: transparent;
|
418 |
+
}
|
419 |
+
.jstree-default-dark .jstree-open > .jstree-ocl {
|
420 |
+
background-position: -132px -4px;
|
421 |
+
}
|
422 |
+
.jstree-default-dark .jstree-closed > .jstree-ocl {
|
423 |
+
background-position: -100px -4px;
|
424 |
+
}
|
425 |
+
.jstree-default-dark .jstree-leaf > .jstree-ocl {
|
426 |
+
background-position: -68px -4px;
|
427 |
+
}
|
428 |
+
.jstree-default-dark .jstree-themeicon {
|
429 |
+
background-position: -260px -4px;
|
430 |
+
}
|
431 |
+
.jstree-default-dark > .jstree-no-dots .jstree-node,
|
432 |
+
.jstree-default-dark > .jstree-no-dots .jstree-leaf > .jstree-ocl {
|
433 |
+
background: transparent;
|
434 |
+
}
|
435 |
+
.jstree-default-dark > .jstree-no-dots .jstree-open > .jstree-ocl {
|
436 |
+
background-position: -36px -4px;
|
437 |
+
}
|
438 |
+
.jstree-default-dark > .jstree-no-dots .jstree-closed > .jstree-ocl {
|
439 |
+
background-position: -4px -4px;
|
440 |
+
}
|
441 |
+
.jstree-default-dark .jstree-disabled {
|
442 |
+
background: transparent;
|
443 |
+
}
|
444 |
+
.jstree-default-dark .jstree-disabled.jstree-hovered {
|
445 |
+
background: transparent;
|
446 |
+
}
|
447 |
+
.jstree-default-dark .jstree-disabled.jstree-clicked {
|
448 |
+
background: #efefef;
|
449 |
+
}
|
450 |
+
.jstree-default-dark .jstree-checkbox {
|
451 |
+
background-position: -164px -4px;
|
452 |
+
}
|
453 |
+
.jstree-default-dark .jstree-checkbox:hover {
|
454 |
+
background-position: -164px -36px;
|
455 |
+
}
|
456 |
+
.jstree-default-dark.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox,
|
457 |
+
.jstree-default-dark .jstree-checked > .jstree-checkbox {
|
458 |
+
background-position: -228px -4px;
|
459 |
+
}
|
460 |
+
.jstree-default-dark.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox:hover,
|
461 |
+
.jstree-default-dark .jstree-checked > .jstree-checkbox:hover {
|
462 |
+
background-position: -228px -36px;
|
463 |
+
}
|
464 |
+
.jstree-default-dark .jstree-anchor > .jstree-undetermined {
|
465 |
+
background-position: -196px -4px;
|
466 |
+
}
|
467 |
+
.jstree-default-dark .jstree-anchor > .jstree-undetermined:hover {
|
468 |
+
background-position: -196px -36px;
|
469 |
+
}
|
470 |
+
.jstree-default-dark .jstree-checkbox-disabled {
|
471 |
+
opacity: 0.8;
|
472 |
+
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");
|
473 |
+
/* Firefox 10+ */
|
474 |
+
filter: gray;
|
475 |
+
/* IE6-9 */
|
476 |
+
-webkit-filter: grayscale(100%);
|
477 |
+
/* Chrome 19+ & Safari 6+ */
|
478 |
+
}
|
479 |
+
.jstree-default-dark > .jstree-striped {
|
480 |
+
background-size: auto 48px;
|
481 |
+
}
|
482 |
+
.jstree-default-dark.jstree-rtl .jstree-node {
|
483 |
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==");
|
484 |
+
background-position: 100% 1px;
|
485 |
+
background-repeat: repeat-y;
|
486 |
+
}
|
487 |
+
.jstree-default-dark.jstree-rtl .jstree-last {
|
488 |
+
background: transparent;
|
489 |
+
}
|
490 |
+
.jstree-default-dark.jstree-rtl .jstree-open > .jstree-ocl {
|
491 |
+
background-position: -132px -36px;
|
492 |
+
}
|
493 |
+
.jstree-default-dark.jstree-rtl .jstree-closed > .jstree-ocl {
|
494 |
+
background-position: -100px -36px;
|
495 |
+
}
|
496 |
+
.jstree-default-dark.jstree-rtl .jstree-leaf > .jstree-ocl {
|
497 |
+
background-position: -68px -36px;
|
498 |
+
}
|
499 |
+
.jstree-default-dark.jstree-rtl > .jstree-no-dots .jstree-node,
|
500 |
+
.jstree-default-dark.jstree-rtl > .jstree-no-dots .jstree-leaf > .jstree-ocl {
|
501 |
+
background: transparent;
|
502 |
+
}
|
503 |
+
.jstree-default-dark.jstree-rtl > .jstree-no-dots .jstree-open > .jstree-ocl {
|
504 |
+
background-position: -36px -36px;
|
505 |
+
}
|
506 |
+
.jstree-default-dark.jstree-rtl > .jstree-no-dots .jstree-closed > .jstree-ocl {
|
507 |
+
background-position: -4px -36px;
|
508 |
+
}
|
509 |
+
.jstree-default-dark .jstree-themeicon-custom {
|
510 |
+
background-color: transparent;
|
511 |
+
background-image: none;
|
512 |
+
background-position: 0 0;
|
513 |
+
}
|
514 |
+
.jstree-default-dark > .jstree-container-ul .jstree-loading > .jstree-ocl {
|
515 |
+
background: url("throbber.gif") center center no-repeat;
|
516 |
+
}
|
517 |
+
.jstree-default-dark .jstree-file {
|
518 |
+
background: url("32px.png") -100px -68px no-repeat;
|
519 |
+
}
|
520 |
+
.jstree-default-dark .jstree-folder {
|
521 |
+
background: url("32px.png") -260px -4px no-repeat;
|
522 |
+
}
|
523 |
+
.jstree-default-dark > .jstree-container-ul > .jstree-node {
|
524 |
+
margin-left: 0;
|
525 |
+
margin-right: 0;
|
526 |
+
}
|
527 |
+
#jstree-dnd.jstree-default-dark {
|
528 |
+
line-height: 24px;
|
529 |
+
padding: 0 4px;
|
530 |
+
}
|
531 |
+
#jstree-dnd.jstree-default-dark .jstree-ok,
|
532 |
+
#jstree-dnd.jstree-default-dark .jstree-er {
|
533 |
+
background-image: url("32px.png");
|
534 |
+
background-repeat: no-repeat;
|
535 |
+
background-color: transparent;
|
536 |
+
}
|
537 |
+
#jstree-dnd.jstree-default-dark i {
|
538 |
+
background: transparent;
|
539 |
+
width: 24px;
|
540 |
+
height: 24px;
|
541 |
+
line-height: 24px;
|
542 |
+
}
|
543 |
+
#jstree-dnd.jstree-default-dark .jstree-ok {
|
544 |
+
background-position: -4px -68px;
|
545 |
+
}
|
546 |
+
#jstree-dnd.jstree-default-dark .jstree-er {
|
547 |
+
background-position: -36px -68px;
|
548 |
+
}
|
549 |
+
.jstree-default-dark .jstree-ellipsis {
|
550 |
+
overflow: hidden;
|
551 |
+
}
|
552 |
+
.jstree-default-dark .jstree-ellipsis .jstree-anchor {
|
553 |
+
width: calc(100% - 29px);
|
554 |
+
text-overflow: ellipsis;
|
555 |
+
overflow: hidden;
|
556 |
+
}
|
557 |
+
.jstree-default-dark .jstree-ellipsis.jstree-no-icons .jstree-anchor {
|
558 |
+
width: calc(100% - 5px);
|
559 |
+
}
|
560 |
+
.jstree-default-dark.jstree-rtl .jstree-node {
|
561 |
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==");
|
562 |
+
}
|
563 |
+
.jstree-default-dark.jstree-rtl .jstree-last {
|
564 |
+
background: transparent;
|
565 |
+
}
|
566 |
+
.jstree-default-dark-small .jstree-node {
|
567 |
+
min-height: 18px;
|
568 |
+
line-height: 18px;
|
569 |
+
margin-left: 18px;
|
570 |
+
min-width: 18px;
|
571 |
+
}
|
572 |
+
.jstree-default-dark-small .jstree-anchor {
|
573 |
+
line-height: 18px;
|
574 |
+
height: 18px;
|
575 |
+
}
|
576 |
+
.jstree-default-dark-small .jstree-icon {
|
577 |
+
width: 18px;
|
578 |
+
height: 18px;
|
579 |
+
line-height: 18px;
|
580 |
+
}
|
581 |
+
.jstree-default-dark-small .jstree-icon:empty {
|
582 |
+
width: 18px;
|
583 |
+
height: 18px;
|
584 |
+
line-height: 18px;
|
585 |
+
}
|
586 |
+
.jstree-default-dark-small.jstree-rtl .jstree-node {
|
587 |
+
margin-right: 18px;
|
588 |
+
}
|
589 |
+
.jstree-default-dark-small .jstree-wholerow {
|
590 |
+
height: 18px;
|
591 |
+
}
|
592 |
+
.jstree-default-dark-small .jstree-node,
|
593 |
+
.jstree-default-dark-small .jstree-icon {
|
594 |
+
background-image: url("32px.png");
|
595 |
+
}
|
596 |
+
.jstree-default-dark-small .jstree-node {
|
597 |
+
background-position: -295px -7px;
|
598 |
+
background-repeat: repeat-y;
|
599 |
+
}
|
600 |
+
.jstree-default-dark-small .jstree-last {
|
601 |
+
background: transparent;
|
602 |
+
}
|
603 |
+
.jstree-default-dark-small .jstree-open > .jstree-ocl {
|
604 |
+
background-position: -135px -7px;
|
605 |
+
}
|
606 |
+
.jstree-default-dark-small .jstree-closed > .jstree-ocl {
|
607 |
+
background-position: -103px -7px;
|
608 |
+
}
|
609 |
+
.jstree-default-dark-small .jstree-leaf > .jstree-ocl {
|
610 |
+
background-position: -71px -7px;
|
611 |
+
}
|
612 |
+
.jstree-default-dark-small .jstree-themeicon {
|
613 |
+
background-position: -263px -7px;
|
614 |
+
}
|
615 |
+
.jstree-default-dark-small > .jstree-no-dots .jstree-node,
|
616 |
+
.jstree-default-dark-small > .jstree-no-dots .jstree-leaf > .jstree-ocl {
|
617 |
+
background: transparent;
|
618 |
+
}
|
619 |
+
.jstree-default-dark-small > .jstree-no-dots .jstree-open > .jstree-ocl {
|
620 |
+
background-position: -39px -7px;
|
621 |
+
}
|
622 |
+
.jstree-default-dark-small > .jstree-no-dots .jstree-closed > .jstree-ocl {
|
623 |
+
background-position: -7px -7px;
|
624 |
+
}
|
625 |
+
.jstree-default-dark-small .jstree-disabled {
|
626 |
+
background: transparent;
|
627 |
+
}
|
628 |
+
.jstree-default-dark-small .jstree-disabled.jstree-hovered {
|
629 |
+
background: transparent;
|
630 |
+
}
|
631 |
+
.jstree-default-dark-small .jstree-disabled.jstree-clicked {
|
632 |
+
background: #efefef;
|
633 |
+
}
|
634 |
+
.jstree-default-dark-small .jstree-checkbox {
|
635 |
+
background-position: -167px -7px;
|
636 |
+
}
|
637 |
+
.jstree-default-dark-small .jstree-checkbox:hover {
|
638 |
+
background-position: -167px -39px;
|
639 |
+
}
|
640 |
+
.jstree-default-dark-small.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox,
|
641 |
+
.jstree-default-dark-small .jstree-checked > .jstree-checkbox {
|
642 |
+
background-position: -231px -7px;
|
643 |
+
}
|
644 |
+
.jstree-default-dark-small.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox:hover,
|
645 |
+
.jstree-default-dark-small .jstree-checked > .jstree-checkbox:hover {
|
646 |
+
background-position: -231px -39px;
|
647 |
+
}
|
648 |
+
.jstree-default-dark-small .jstree-anchor > .jstree-undetermined {
|
649 |
+
background-position: -199px -7px;
|
650 |
+
}
|
651 |
+
.jstree-default-dark-small .jstree-anchor > .jstree-undetermined:hover {
|
652 |
+
background-position: -199px -39px;
|
653 |
+
}
|
654 |
+
.jstree-default-dark-small .jstree-checkbox-disabled {
|
655 |
+
opacity: 0.8;
|
656 |
+
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");
|
657 |
+
/* Firefox 10+ */
|
658 |
+
filter: gray;
|
659 |
+
/* IE6-9 */
|
660 |
+
-webkit-filter: grayscale(100%);
|
661 |
+
/* Chrome 19+ & Safari 6+ */
|
662 |
+
}
|
663 |
+
.jstree-default-dark-small > .jstree-striped {
|
664 |
+
background-size: auto 36px;
|
665 |
+
}
|
666 |
+
.jstree-default-dark-small.jstree-rtl .jstree-node {
|
667 |
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==");
|
668 |
+
background-position: 100% 1px;
|
669 |
+
background-repeat: repeat-y;
|
670 |
+
}
|
671 |
+
.jstree-default-dark-small.jstree-rtl .jstree-last {
|
672 |
+
background: transparent;
|
673 |
+
}
|
674 |
+
.jstree-default-dark-small.jstree-rtl .jstree-open > .jstree-ocl {
|
675 |
+
background-position: -135px -39px;
|
676 |
+
}
|
677 |
+
.jstree-default-dark-small.jstree-rtl .jstree-closed > .jstree-ocl {
|
678 |
+
background-position: -103px -39px;
|
679 |
+
}
|
680 |
+
.jstree-default-dark-small.jstree-rtl .jstree-leaf > .jstree-ocl {
|
681 |
+
background-position: -71px -39px;
|
682 |
+
}
|
683 |
+
.jstree-default-dark-small.jstree-rtl > .jstree-no-dots .jstree-node,
|
684 |
+
.jstree-default-dark-small.jstree-rtl > .jstree-no-dots .jstree-leaf > .jstree-ocl {
|
685 |
+
background: transparent;
|
686 |
+
}
|
687 |
+
.jstree-default-dark-small.jstree-rtl > .jstree-no-dots .jstree-open > .jstree-ocl {
|
688 |
+
background-position: -39px -39px;
|
689 |
+
}
|
690 |
+
.jstree-default-dark-small.jstree-rtl > .jstree-no-dots .jstree-closed > .jstree-ocl {
|
691 |
+
background-position: -7px -39px;
|
692 |
+
}
|
693 |
+
.jstree-default-dark-small .jstree-themeicon-custom {
|
694 |
+
background-color: transparent;
|
695 |
+
background-image: none;
|
696 |
+
background-position: 0 0;
|
697 |
+
}
|
698 |
+
.jstree-default-dark-small > .jstree-container-ul .jstree-loading > .jstree-ocl {
|
699 |
+
background: url("throbber.gif") center center no-repeat;
|
700 |
+
}
|
701 |
+
.jstree-default-dark-small .jstree-file {
|
702 |
+
background: url("32px.png") -103px -71px no-repeat;
|
703 |
+
}
|
704 |
+
.jstree-default-dark-small .jstree-folder {
|
705 |
+
background: url("32px.png") -263px -7px no-repeat;
|
706 |
+
}
|
707 |
+
.jstree-default-dark-small > .jstree-container-ul > .jstree-node {
|
708 |
+
margin-left: 0;
|
709 |
+
margin-right: 0;
|
710 |
+
}
|
711 |
+
#jstree-dnd.jstree-default-dark-small {
|
712 |
+
line-height: 18px;
|
713 |
+
padding: 0 4px;
|
714 |
+
}
|
715 |
+
#jstree-dnd.jstree-default-dark-small .jstree-ok,
|
716 |
+
#jstree-dnd.jstree-default-dark-small .jstree-er {
|
717 |
+
background-image: url("32px.png");
|
718 |
+
background-repeat: no-repeat;
|
719 |
+
background-color: transparent;
|
720 |
+
}
|
721 |
+
#jstree-dnd.jstree-default-dark-small i {
|
722 |
+
background: transparent;
|
723 |
+
width: 18px;
|
724 |
+
height: 18px;
|
725 |
+
line-height: 18px;
|
726 |
+
}
|
727 |
+
#jstree-dnd.jstree-default-dark-small .jstree-ok {
|
728 |
+
background-position: -7px -71px;
|
729 |
+
}
|
730 |
+
#jstree-dnd.jstree-default-dark-small .jstree-er {
|
731 |
+
background-position: -39px -71px;
|
732 |
+
}
|
733 |
+
.jstree-default-dark-small .jstree-ellipsis {
|
734 |
+
overflow: hidden;
|
735 |
+
}
|
736 |
+
.jstree-default-dark-small .jstree-ellipsis .jstree-anchor {
|
737 |
+
width: calc(100% - 23px);
|
738 |
+
text-overflow: ellipsis;
|
739 |
+
overflow: hidden;
|
740 |
+
}
|
741 |
+
.jstree-default-dark-small .jstree-ellipsis.jstree-no-icons .jstree-anchor {
|
742 |
+
width: calc(100% - 5px);
|
743 |
+
}
|
744 |
+
.jstree-default-dark-small.jstree-rtl .jstree-node {
|
745 |
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAACAQMAAABv1h6PAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMHBgAAiABBI4gz9AAAAABJRU5ErkJggg==");
|
746 |
+
}
|
747 |
+
.jstree-default-dark-small.jstree-rtl .jstree-last {
|
748 |
+
background: transparent;
|
749 |
+
}
|
750 |
+
.jstree-default-dark-large .jstree-node {
|
751 |
+
min-height: 32px;
|
752 |
+
line-height: 32px;
|
753 |
+
margin-left: 32px;
|
754 |
+
min-width: 32px;
|
755 |
+
}
|
756 |
+
.jstree-default-dark-large .jstree-anchor {
|
757 |
+
line-height: 32px;
|
758 |
+
height: 32px;
|
759 |
+
}
|
760 |
+
.jstree-default-dark-large .jstree-icon {
|
761 |
+
width: 32px;
|
762 |
+
height: 32px;
|
763 |
+
line-height: 32px;
|
764 |
+
}
|
765 |
+
.jstree-default-dark-large .jstree-icon:empty {
|
766 |
+
width: 32px;
|
767 |
+
height: 32px;
|
768 |
+
line-height: 32px;
|
769 |
+
}
|
770 |
+
.jstree-default-dark-large.jstree-rtl .jstree-node {
|
771 |
+
margin-right: 32px;
|
772 |
+
}
|
773 |
+
.jstree-default-dark-large .jstree-wholerow {
|
774 |
+
height: 32px;
|
775 |
+
}
|
776 |
+
.jstree-default-dark-large .jstree-node,
|
777 |
+
.jstree-default-dark-large .jstree-icon {
|
778 |
+
background-image: url("32px.png");
|
779 |
+
}
|
780 |
+
.jstree-default-dark-large .jstree-node {
|
781 |
+
background-position: -288px 0px;
|
782 |
+
background-repeat: repeat-y;
|
783 |
+
}
|
784 |
+
.jstree-default-dark-large .jstree-last {
|
785 |
+
background: transparent;
|
786 |
+
}
|
787 |
+
.jstree-default-dark-large .jstree-open > .jstree-ocl {
|
788 |
+
background-position: -128px 0px;
|
789 |
+
}
|
790 |
+
.jstree-default-dark-large .jstree-closed > .jstree-ocl {
|
791 |
+
background-position: -96px 0px;
|
792 |
+
}
|
793 |
+
.jstree-default-dark-large .jstree-leaf > .jstree-ocl {
|
794 |
+
background-position: -64px 0px;
|
795 |
+
}
|
796 |
+
.jstree-default-dark-large .jstree-themeicon {
|
797 |
+
background-position: -256px 0px;
|
798 |
+
}
|
799 |
+
.jstree-default-dark-large > .jstree-no-dots .jstree-node,
|
800 |
+
.jstree-default-dark-large > .jstree-no-dots .jstree-leaf > .jstree-ocl {
|
801 |
+
background: transparent;
|
802 |
+
}
|
803 |
+
.jstree-default-dark-large > .jstree-no-dots .jstree-open > .jstree-ocl {
|
804 |
+
background-position: -32px 0px;
|
805 |
+
}
|
806 |
+
.jstree-default-dark-large > .jstree-no-dots .jstree-closed > .jstree-ocl {
|
807 |
+
background-position: 0px 0px;
|
808 |
+
}
|
809 |
+
.jstree-default-dark-large .jstree-disabled {
|
810 |
+
background: transparent;
|
811 |
+
}
|
812 |
+
.jstree-default-dark-large .jstree-disabled.jstree-hovered {
|
813 |
+
background: transparent;
|
814 |
+
}
|
815 |
+
.jstree-default-dark-large .jstree-disabled.jstree-clicked {
|
816 |
+
background: #efefef;
|
817 |
+
}
|
818 |
+
.jstree-default-dark-large .jstree-checkbox {
|
819 |
+
background-position: -160px 0px;
|
820 |
+
}
|
821 |
+
.jstree-default-dark-large .jstree-checkbox:hover {
|
822 |
+
background-position: -160px -32px;
|
823 |
+
}
|
824 |
+
.jstree-default-dark-large.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox,
|
825 |
+
.jstree-default-dark-large .jstree-checked > .jstree-checkbox {
|
826 |
+
background-position: -224px 0px;
|
827 |
+
}
|
828 |
+
.jstree-default-dark-large.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox:hover,
|
829 |
+
.jstree-default-dark-large .jstree-checked > .jstree-checkbox:hover {
|
830 |
+
background-position: -224px -32px;
|
831 |
+
}
|
832 |
+
.jstree-default-dark-large .jstree-anchor > .jstree-undetermined {
|
833 |
+
background-position: -192px 0px;
|
834 |
+
}
|
835 |
+
.jstree-default-dark-large .jstree-anchor > .jstree-undetermined:hover {
|
836 |
+
background-position: -192px -32px;
|
837 |
+
}
|
838 |
+
.jstree-default-dark-large .jstree-checkbox-disabled {
|
839 |
+
opacity: 0.8;
|
840 |
+
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");
|
841 |
+
/* Firefox 10+ */
|
842 |
+
filter: gray;
|
843 |
+
/* IE6-9 */
|
844 |
+
-webkit-filter: grayscale(100%);
|
845 |
+
/* Chrome 19+ & Safari 6+ */
|
846 |
+
}
|
847 |
+
.jstree-default-dark-large > .jstree-striped {
|
848 |
+
background-size: auto 64px;
|
849 |
+
}
|
850 |
+
.jstree-default-dark-large.jstree-rtl .jstree-node {
|
851 |
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==");
|
852 |
+
background-position: 100% 1px;
|
853 |
+
background-repeat: repeat-y;
|
854 |
+
}
|
855 |
+
.jstree-default-dark-large.jstree-rtl .jstree-last {
|
856 |
+
background: transparent;
|
857 |
+
}
|
858 |
+
.jstree-default-dark-large.jstree-rtl .jstree-open > .jstree-ocl {
|
859 |
+
background-position: -128px -32px;
|
860 |
+
}
|
861 |
+
.jstree-default-dark-large.jstree-rtl .jstree-closed > .jstree-ocl {
|
862 |
+
background-position: -96px -32px;
|
863 |
+
}
|
864 |
+
.jstree-default-dark-large.jstree-rtl .jstree-leaf > .jstree-ocl {
|
865 |
+
background-position: -64px -32px;
|
866 |
+
}
|
867 |
+
.jstree-default-dark-large.jstree-rtl > .jstree-no-dots .jstree-node,
|
868 |
+
.jstree-default-dark-large.jstree-rtl > .jstree-no-dots .jstree-leaf > .jstree-ocl {
|
869 |
+
background: transparent;
|
870 |
+
}
|
871 |
+
.jstree-default-dark-large.jstree-rtl > .jstree-no-dots .jstree-open > .jstree-ocl {
|
872 |
+
background-position: -32px -32px;
|
873 |
+
}
|
874 |
+
.jstree-default-dark-large.jstree-rtl > .jstree-no-dots .jstree-closed > .jstree-ocl {
|
875 |
+
background-position: 0px -32px;
|
876 |
+
}
|
877 |
+
.jstree-default-dark-large .jstree-themeicon-custom {
|
878 |
+
background-color: transparent;
|
879 |
+
background-image: none;
|
880 |
+
background-position: 0 0;
|
881 |
+
}
|
882 |
+
.jstree-default-dark-large > .jstree-container-ul .jstree-loading > .jstree-ocl {
|
883 |
+
background: url("throbber.gif") center center no-repeat;
|
884 |
+
}
|
885 |
+
.jstree-default-dark-large .jstree-file {
|
886 |
+
background: url("32px.png") -96px -64px no-repeat;
|
887 |
+
}
|
888 |
+
.jstree-default-dark-large .jstree-folder {
|
889 |
+
background: url("32px.png") -256px 0px no-repeat;
|
890 |
+
}
|
891 |
+
.jstree-default-dark-large > .jstree-container-ul > .jstree-node {
|
892 |
+
margin-left: 0;
|
893 |
+
margin-right: 0;
|
894 |
+
}
|
895 |
+
#jstree-dnd.jstree-default-dark-large {
|
896 |
+
line-height: 32px;
|
897 |
+
padding: 0 4px;
|
898 |
+
}
|
899 |
+
#jstree-dnd.jstree-default-dark-large .jstree-ok,
|
900 |
+
#jstree-dnd.jstree-default-dark-large .jstree-er {
|
901 |
+
background-image: url("32px.png");
|
902 |
+
background-repeat: no-repeat;
|
903 |
+
background-color: transparent;
|
904 |
+
}
|
905 |
+
#jstree-dnd.jstree-default-dark-large i {
|
906 |
+
background: transparent;
|
907 |
+
width: 32px;
|
908 |
+
height: 32px;
|
909 |
+
line-height: 32px;
|
910 |
+
}
|
911 |
+
#jstree-dnd.jstree-default-dark-large .jstree-ok {
|
912 |
+
background-position: 0px -64px;
|
913 |
+
}
|
914 |
+
#jstree-dnd.jstree-default-dark-large .jstree-er {
|
915 |
+
background-position: -32px -64px;
|
916 |
+
}
|
917 |
+
.jstree-default-dark-large .jstree-ellipsis {
|
918 |
+
overflow: hidden;
|
919 |
+
}
|
920 |
+
.jstree-default-dark-large .jstree-ellipsis .jstree-anchor {
|
921 |
+
width: calc(100% - 37px);
|
922 |
+
text-overflow: ellipsis;
|
923 |
+
overflow: hidden;
|
924 |
+
}
|
925 |
+
.jstree-default-dark-large .jstree-ellipsis.jstree-no-icons .jstree-anchor {
|
926 |
+
width: calc(100% - 5px);
|
927 |
+
}
|
928 |
+
.jstree-default-dark-large.jstree-rtl .jstree-node {
|
929 |
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAACAQMAAAAD0EyKAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjgIIGBgABCgCBvVLXcAAAAABJRU5ErkJggg==");
|
930 |
+
}
|
931 |
+
.jstree-default-dark-large.jstree-rtl .jstree-last {
|
932 |
+
background: transparent;
|
933 |
+
}
|
934 |
+
@media (max-width: 768px) {
|
935 |
+
#jstree-dnd.jstree-dnd-responsive {
|
936 |
+
line-height: 40px;
|
937 |
+
font-weight: bold;
|
938 |
+
font-size: 1.1em;
|
939 |
+
text-shadow: 1px 1px white;
|
940 |
+
}
|
941 |
+
#jstree-dnd.jstree-dnd-responsive > i {
|
942 |
+
background: transparent;
|
943 |
+
width: 40px;
|
944 |
+
height: 40px;
|
945 |
+
}
|
946 |
+
#jstree-dnd.jstree-dnd-responsive > .jstree-ok {
|
947 |
+
background-image: url("40px.png");
|
948 |
+
background-position: 0 -200px;
|
949 |
+
background-size: 120px 240px;
|
950 |
+
}
|
951 |
+
#jstree-dnd.jstree-dnd-responsive > .jstree-er {
|
952 |
+
background-image: url("40px.png");
|
953 |
+
background-position: -40px -200px;
|
954 |
+
background-size: 120px 240px;
|
955 |
+
}
|
956 |
+
#jstree-marker.jstree-dnd-responsive {
|
957 |
+
border-left-width: 10px;
|
958 |
+
border-top-width: 10px;
|
959 |
+
border-bottom-width: 10px;
|
960 |
+
margin-top: -10px;
|
961 |
+
}
|
962 |
+
}
|
963 |
+
@media (max-width: 768px) {
|
964 |
+
.jstree-default-dark-responsive {
|
965 |
+
/*
|
966 |
+
.jstree-open > .jstree-ocl,
|
967 |
+
.jstree-closed > .jstree-ocl { border-radius:20px; background-color:white; }
|
968 |
+
*/
|
969 |
+
}
|
970 |
+
.jstree-default-dark-responsive .jstree-icon {
|
971 |
+
background-image: url("40px.png");
|
972 |
+
}
|
973 |
+
.jstree-default-dark-responsive .jstree-node,
|
974 |
+
.jstree-default-dark-responsive .jstree-leaf > .jstree-ocl {
|
975 |
+
background: transparent;
|
976 |
+
}
|
977 |
+
.jstree-default-dark-responsive .jstree-node {
|
978 |
+
min-height: 40px;
|
979 |
+
line-height: 40px;
|
980 |
+
margin-left: 40px;
|
981 |
+
min-width: 40px;
|
982 |
+
white-space: nowrap;
|
983 |
+
}
|
984 |
+
.jstree-default-dark-responsive .jstree-anchor {
|
985 |
+
line-height: 40px;
|
986 |
+
height: 40px;
|
987 |
+
}
|
988 |
+
.jstree-default-dark-responsive .jstree-icon,
|
989 |
+
.jstree-default-dark-responsive .jstree-icon:empty {
|
990 |
+
width: 40px;
|
991 |
+
height: 40px;
|
992 |
+
line-height: 40px;
|
993 |
+
}
|
994 |
+
.jstree-default-dark-responsive > .jstree-container-ul > .jstree-node {
|
995 |
+
margin-left: 0;
|
996 |
+
}
|
997 |
+
.jstree-default-dark-responsive.jstree-rtl .jstree-node {
|
998 |
+
margin-left: 0;
|
999 |
+
margin-right: 40px;
|
1000 |
+
background: transparent;
|
1001 |
+
}
|
1002 |
+
.jstree-default-dark-responsive.jstree-rtl .jstree-container-ul > .jstree-node {
|
1003 |
+
margin-right: 0;
|
1004 |
+
}
|
1005 |
+
.jstree-default-dark-responsive .jstree-ocl,
|
1006 |
+
.jstree-default-dark-responsive .jstree-themeicon,
|
1007 |
+
.jstree-default-dark-responsive .jstree-checkbox {
|
1008 |
+
background-size: 120px 240px;
|
1009 |
+
}
|
1010 |
+
.jstree-default-dark-responsive .jstree-leaf > .jstree-ocl,
|
1011 |
+
.jstree-default-dark-responsive.jstree-rtl .jstree-leaf > .jstree-ocl {
|
1012 |
+
background: transparent;
|
1013 |
+
}
|
1014 |
+
.jstree-default-dark-responsive .jstree-open > .jstree-ocl {
|
1015 |
+
background-position: 0 0px !important;
|
1016 |
+
}
|
1017 |
+
.jstree-default-dark-responsive .jstree-closed > .jstree-ocl {
|
1018 |
+
background-position: 0 -40px !important;
|
1019 |
+
}
|
1020 |
+
.jstree-default-dark-responsive.jstree-rtl .jstree-closed > .jstree-ocl {
|
1021 |
+
background-position: -40px 0px !important;
|
1022 |
+
}
|
1023 |
+
.jstree-default-dark-responsive .jstree-themeicon {
|
1024 |
+
background-position: -40px -40px;
|
1025 |
+
}
|
1026 |
+
.jstree-default-dark-responsive .jstree-checkbox,
|
1027 |
+
.jstree-default-dark-responsive .jstree-checkbox:hover {
|
1028 |
+
background-position: -40px -80px;
|
1029 |
+
}
|
1030 |
+
.jstree-default-dark-responsive.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox,
|
1031 |
+
.jstree-default-dark-responsive.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox:hover,
|
1032 |
+
.jstree-default-dark-responsive .jstree-checked > .jstree-checkbox,
|
1033 |
+
.jstree-default-dark-responsive .jstree-checked > .jstree-checkbox:hover {
|
1034 |
+
background-position: 0 -80px;
|
1035 |
+
}
|
1036 |
+
.jstree-default-dark-responsive .jstree-anchor > .jstree-undetermined,
|
1037 |
+
.jstree-default-dark-responsive .jstree-anchor > .jstree-undetermined:hover {
|
1038 |
+
background-position: 0 -120px;
|
1039 |
+
}
|
1040 |
+
.jstree-default-dark-responsive .jstree-anchor {
|
1041 |
+
font-weight: bold;
|
1042 |
+
font-size: 1.1em;
|
1043 |
+
text-shadow: 1px 1px white;
|
1044 |
+
}
|
1045 |
+
.jstree-default-dark-responsive > .jstree-striped {
|
1046 |
+
background: transparent;
|
1047 |
+
}
|
1048 |
+
.jstree-default-dark-responsive .jstree-wholerow {
|
1049 |
+
border-top: 1px solid #666666;
|
1050 |
+
border-bottom: 1px solid #000000;
|
1051 |
+
background: #333333;
|
1052 |
+
height: 40px;
|
1053 |
+
}
|
1054 |
+
.jstree-default-dark-responsive .jstree-wholerow-hovered {
|
1055 |
+
background: #555555;
|
1056 |
+
}
|
1057 |
+
.jstree-default-dark-responsive .jstree-wholerow-clicked {
|
1058 |
+
background: #5fa2db;
|
1059 |
+
}
|
1060 |
+
.jstree-default-dark-responsive .jstree-children .jstree-last > .jstree-wholerow {
|
1061 |
+
box-shadow: inset 0 -6px 3px -5px #111111;
|
1062 |
+
}
|
1063 |
+
.jstree-default-dark-responsive .jstree-children .jstree-open > .jstree-wholerow {
|
1064 |
+
box-shadow: inset 0 6px 3px -5px #111111;
|
1065 |
+
border-top: 0;
|
1066 |
+
}
|
1067 |
+
.jstree-default-dark-responsive .jstree-children .jstree-open + .jstree-open {
|
1068 |
+
box-shadow: none;
|
1069 |
+
}
|
1070 |
+
.jstree-default-dark-responsive .jstree-node,
|
1071 |
+
.jstree-default-dark-responsive .jstree-icon,
|
1072 |
+
.jstree-default-dark-responsive .jstree-node > .jstree-ocl,
|
1073 |
+
.jstree-default-dark-responsive .jstree-themeicon,
|
1074 |
+
.jstree-default-dark-responsive .jstree-checkbox {
|
1075 |
+
background-image: url("40px.png");
|
1076 |
+
background-size: 120px 240px;
|
1077 |
+
}
|
1078 |
+
.jstree-default-dark-responsive .jstree-node {
|
1079 |
+
background-position: -80px 0;
|
1080 |
+
background-repeat: repeat-y;
|
1081 |
+
}
|
1082 |
+
.jstree-default-dark-responsive .jstree-last {
|
1083 |
+
background: transparent;
|
1084 |
+
}
|
1085 |
+
.jstree-default-dark-responsive .jstree-leaf > .jstree-ocl {
|
1086 |
+
background-position: -40px -120px;
|
1087 |
+
}
|
1088 |
+
.jstree-default-dark-responsive .jstree-last > .jstree-ocl {
|
1089 |
+
background-position: -40px -160px;
|
1090 |
+
}
|
1091 |
+
.jstree-default-dark-responsive .jstree-themeicon-custom {
|
1092 |
+
background-color: transparent;
|
1093 |
+
background-image: none;
|
1094 |
+
background-position: 0 0;
|
1095 |
+
}
|
1096 |
+
.jstree-default-dark-responsive .jstree-file {
|
1097 |
+
background: url("40px.png") 0 -160px no-repeat;
|
1098 |
+
background-size: 120px 240px;
|
1099 |
+
}
|
1100 |
+
.jstree-default-dark-responsive .jstree-folder {
|
1101 |
+
background: url("40px.png") -40px -40px no-repeat;
|
1102 |
+
background-size: 120px 240px;
|
1103 |
+
}
|
1104 |
+
.jstree-default-dark-responsive > .jstree-container-ul > .jstree-node {
|
1105 |
+
margin-left: 0;
|
1106 |
+
margin-right: 0;
|
1107 |
+
}
|
1108 |
+
}
|
1109 |
+
.jstree-default-dark {
|
1110 |
+
background: #333;
|
1111 |
+
}
|
1112 |
+
.jstree-default-dark .jstree-anchor {
|
1113 |
+
color: #999;
|
1114 |
+
text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
|
1115 |
+
}
|
1116 |
+
.jstree-default-dark .jstree-clicked,
|
1117 |
+
.jstree-default-dark .jstree-checked {
|
1118 |
+
color: white;
|
1119 |
+
}
|
1120 |
+
.jstree-default-dark .jstree-hovered {
|
1121 |
+
color: white;
|
1122 |
+
}
|
1123 |
+
#jstree-marker.jstree-default-dark {
|
1124 |
+
border-left-color: #999;
|
1125 |
+
background: transparent;
|
1126 |
+
}
|
1127 |
+
.jstree-default-dark .jstree-anchor > .jstree-icon {
|
1128 |
+
opacity: 0.75;
|
1129 |
+
}
|
1130 |
+
.jstree-default-dark .jstree-clicked > .jstree-icon,
|
1131 |
+
.jstree-default-dark .jstree-hovered > .jstree-icon,
|
1132 |
+
.jstree-default-dark .jstree-checked > .jstree-icon {
|
1133 |
+
opacity: 1;
|
1134 |
+
}
|
1135 |
+
.jstree-default-dark.jstree-rtl .jstree-node {
|
1136 |
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAACZmZl+9SADAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==");
|
1137 |
+
}
|
1138 |
+
.jstree-default-dark.jstree-rtl .jstree-last {
|
1139 |
+
background: transparent;
|
1140 |
+
}
|
1141 |
+
.jstree-default-dark-small.jstree-rtl .jstree-node {
|
1142 |
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAACAQMAAABv1h6PAAAABlBMVEUAAACZmZl+9SADAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMHBgAAiABBI4gz9AAAAABJRU5ErkJggg==");
|
1143 |
+
}
|
1144 |
+
.jstree-default-dark-small.jstree-rtl .jstree-last {
|
1145 |
+
background: transparent;
|
1146 |
+
}
|
1147 |
+
.jstree-default-dark-large.jstree-rtl .jstree-node {
|
1148 |
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAACAQMAAAAD0EyKAAAABlBMVEUAAACZmZl+9SADAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjgIIGBgABCgCBvVLXcAAAAABJRU5ErkJggg==");
|
1149 |
+
}
|
1150 |
+
.jstree-default-dark-large.jstree-rtl .jstree-last {
|
1151 |
+
background: transparent;
|
1152 |
+
}
|
assets/jstree/themes/default-dark/style.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.jstree-node,.jstree-children,.jstree-container-ul{display:block;margin:0;padding:0;list-style-type:none;list-style-image:none}.jstree-node{white-space:nowrap}.jstree-anchor{display:inline-block;color:black;white-space:nowrap;padding:0 4px 0 1px;margin:0;vertical-align:top}.jstree-anchor:focus{outline:0}.jstree-anchor,.jstree-anchor:link,.jstree-anchor:visited,.jstree-anchor:hover,.jstree-anchor:active{text-decoration:none;color:inherit}.jstree-icon{display:inline-block;text-decoration:none;margin:0;padding:0;vertical-align:top;text-align:center}.jstree-icon:empty{display:inline-block;text-decoration:none;margin:0;padding:0;vertical-align:top;text-align:center}.jstree-ocl{cursor:pointer}.jstree-leaf>.jstree-ocl{cursor:default}.jstree .jstree-open>.jstree-children{display:block}.jstree .jstree-closed>.jstree-children,.jstree .jstree-leaf>.jstree-children{display:none}.jstree-anchor>.jstree-themeicon{margin-right:2px}.jstree-no-icons .jstree-themeicon,.jstree-anchor>.jstree-themeicon-hidden{display:none}.jstree-hidden,.jstree-node.jstree-hidden{display:none}.jstree-rtl .jstree-anchor{padding:0 1px 0 4px}.jstree-rtl .jstree-anchor>.jstree-themeicon{margin-left:2px;margin-right:0}.jstree-rtl .jstree-node{margin-left:0}.jstree-rtl .jstree-container-ul>.jstree-node{margin-right:0}.jstree-wholerow-ul{position:relative;display:inline-block;min-width:100%}.jstree-wholerow-ul .jstree-leaf>.jstree-ocl{cursor:pointer}.jstree-wholerow-ul .jstree-anchor,.jstree-wholerow-ul .jstree-icon{position:relative}.jstree-wholerow-ul .jstree-wholerow{width:100%;cursor:pointer;position:absolute;left:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.jstree-contextmenu .jstree-anchor{-webkit-user-select:none;-webkit-touch-callout:none}.vakata-context{display:none}.vakata-context,.vakata-context ul{margin:0;padding:2px;position:absolute;background:#f5f5f5;border:1px solid #979797;box-shadow:2px 2px 2px #999999}.vakata-context ul{list-style:none;left:100%;margin-top:-2.7em;margin-left:-4px}.vakata-context .vakata-context-right ul{left:auto;right:100%;margin-left:auto;margin-right:-4px}.vakata-context li{list-style:none}.vakata-context li>a{display:block;padding:0 2em 0 2em;text-decoration:none;width:auto;color:black;white-space:nowrap;line-height:2.4em;text-shadow:1px 1px 0 white;border-radius:1px}.vakata-context li>a:hover{position:relative;background-color:#e8eff7;box-shadow:0 0 2px #0a6aa1}.vakata-context li>a.vakata-context-parent{background-image:url("data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAIORI4JlrqN1oMSnmmZDQUAOw==");background-position:right center;background-repeat:no-repeat}.vakata-context li>a:focus{outline:0}.vakata-context .vakata-context-hover>a{position:relative;background-color:#e8eff7;box-shadow:0 0 2px #0a6aa1}.vakata-context .vakata-context-separator>a,.vakata-context .vakata-context-separator>a:hover{background:white;border:0;border-top:1px solid #e2e3e3;height:1px;min-height:1px;max-height:1px;padding:0;margin:0 0 0 2.4em;border-left:1px solid #e0e0e0;text-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;border-radius:0}.vakata-context .vakata-contextmenu-disabled a,.vakata-context .vakata-contextmenu-disabled a:hover{color:silver;background-color:transparent;border:0;box-shadow:0 0 0}.vakata-context .vakata-contextmenu-disabled>a>i{filter:grayscale(100%)}.vakata-context li>a>i{text-decoration:none;display:inline-block;width:2.4em;height:2.4em;background:transparent;margin:0 0 0 -2em;vertical-align:top;text-align:center;line-height:2.4em}.vakata-context li>a>i:empty{width:2.4em;line-height:2.4em}.vakata-context li>a .vakata-contextmenu-sep{display:inline-block;width:1px;height:2.4em;background:white;margin:0 .5em 0 0;border-left:1px solid #e2e3e3}.vakata-context .vakata-contextmenu-shortcut{font-size:.8em;color:silver;opacity:.5;display:none}.vakata-context-rtl ul{left:auto;right:100%;margin-left:auto;margin-right:-4px}.vakata-context-rtl li>a.vakata-context-parent{background-image:url("data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAINjI+AC7rWHIsPtmoxLAA7");background-position:left center;background-repeat:no-repeat}.vakata-context-rtl .vakata-context-separator>a{margin:0 2.4em 0 0;border-left:0;border-right:1px solid #e2e3e3}.vakata-context-rtl .vakata-context-left ul{right:auto;left:100%;margin-left:-4px;margin-right:auto}.vakata-context-rtl li>a>i{margin:0 -2em 0 0}.vakata-context-rtl li>a .vakata-contextmenu-sep{margin:0 0 0 .5em;border-left-color:white;background:#e2e3e3}#jstree-marker{position:absolute;top:0;left:0;margin:-5px 0 0 0;padding:0;border-right:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid;width:0;height:0;font-size:0;line-height:0}#jstree-dnd{line-height:16px;margin:0;padding:4px}#jstree-dnd .jstree-icon,#jstree-dnd .jstree-copy{display:inline-block;text-decoration:none;margin:0 2px 0 0;padding:0;width:16px;height:16px}#jstree-dnd .jstree-ok{background:green}#jstree-dnd .jstree-er{background:red}#jstree-dnd .jstree-copy{margin:0 2px 0 2px}.jstree-default-dark .jstree-node,.jstree-default-dark .jstree-icon{background-repeat:no-repeat;background-color:transparent}.jstree-default-dark .jstree-anchor,.jstree-default-dark .jstree-animated,.jstree-default-dark .jstree-wholerow{transition:background-color .15s,box-shadow .15s}.jstree-default-dark .jstree-hovered{background:#555;border-radius:2px;box-shadow:inset 0 0 1px #555}.jstree-default-dark .jstree-context{background:#555;border-radius:2px;box-shadow:inset 0 0 1px #555}.jstree-default-dark .jstree-clicked{background:#5fa2db;border-radius:2px;box-shadow:inset 0 0 1px #666666}.jstree-default-dark .jstree-no-icons .jstree-anchor>.jstree-themeicon{display:none}.jstree-default-dark .jstree-disabled{background:transparent;color:#666666}.jstree-default-dark .jstree-disabled.jstree-hovered{background:transparent;box-shadow:none}.jstree-default-dark .jstree-disabled.jstree-clicked{background:#333333}.jstree-default-dark .jstree-disabled>.jstree-icon{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default-dark .jstree-search{font-style:italic;color:#ffffff;font-weight:bold}.jstree-default-dark .jstree-no-checkboxes .jstree-checkbox{display:none !important}.jstree-default-dark.jstree-checkbox-no-clicked .jstree-clicked{background:transparent;box-shadow:none}.jstree-default-dark.jstree-checkbox-no-clicked .jstree-clicked.jstree-hovered{background:#555}.jstree-default-dark.jstree-checkbox-no-clicked>.jstree-wholerow-ul .jstree-wholerow-clicked{background:transparent}.jstree-default-dark.jstree-checkbox-no-clicked>.jstree-wholerow-ul .jstree-wholerow-clicked.jstree-wholerow-hovered{background:#555}.jstree-default-dark>.jstree-striped{min-width:100%;display:inline-block;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAkCAMAAAB/qqA+AAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlMNAMM9s3UAAAAXSURBVHjajcEBAQAAAIKg/H/aCQZ70AUBjAATb6YPDgAAAABJRU5ErkJggg==") left top repeat}.jstree-default-dark>.jstree-wholerow-ul .jstree-hovered,.jstree-default-dark>.jstree-wholerow-ul .jstree-clicked{background:transparent;box-shadow:none;border-radius:0}.jstree-default-dark .jstree-wholerow{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.jstree-default-dark .jstree-wholerow-hovered{background:#555}.jstree-default-dark .jstree-wholerow-clicked{background:#5fa2db;background:-webkit-linear-gradient(top, #5fa2db 0, #5fa2db 100%);background:linear-gradient(to bottom, #5fa2db 0, #5fa2db 100%)}.jstree-default-dark .jstree-node{min-height:24px;line-height:24px;margin-left:24px;min-width:24px}.jstree-default-dark .jstree-anchor{line-height:24px;height:24px}.jstree-default-dark .jstree-icon{width:24px;height:24px;line-height:24px}.jstree-default-dark .jstree-icon:empty{width:24px;height:24px;line-height:24px}.jstree-default-dark.jstree-rtl .jstree-node{margin-right:24px}.jstree-default-dark .jstree-wholerow{height:24px}.jstree-default-dark .jstree-node,.jstree-default-dark .jstree-icon{background-image:url("32px.png")}.jstree-default-dark .jstree-node{background-position:-292px -4px;background-repeat:repeat-y}.jstree-default-dark .jstree-last{background:transparent}.jstree-default-dark .jstree-open>.jstree-ocl{background-position:-132px -4px}.jstree-default-dark .jstree-closed>.jstree-ocl{background-position:-100px -4px}.jstree-default-dark .jstree-leaf>.jstree-ocl{background-position:-68px -4px}.jstree-default-dark .jstree-themeicon{background-position:-260px -4px}.jstree-default-dark>.jstree-no-dots .jstree-node,.jstree-default-dark>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:transparent}.jstree-default-dark>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-36px -4px}.jstree-default-dark>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-4px -4px}.jstree-default-dark .jstree-disabled{background:transparent}.jstree-default-dark .jstree-disabled.jstree-hovered{background:transparent}.jstree-default-dark .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default-dark .jstree-checkbox{background-position:-164px -4px}.jstree-default-dark .jstree-checkbox:hover{background-position:-164px -36px}.jstree-default-dark.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox,.jstree-default-dark .jstree-checked>.jstree-checkbox{background-position:-228px -4px}.jstree-default-dark.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover,.jstree-default-dark .jstree-checked>.jstree-checkbox:hover{background-position:-228px -36px}.jstree-default-dark .jstree-anchor>.jstree-undetermined{background-position:-196px -4px}.jstree-default-dark .jstree-anchor>.jstree-undetermined:hover{background-position:-196px -36px}.jstree-default-dark .jstree-checkbox-disabled{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default-dark>.jstree-striped{background-size:auto 48px}.jstree-default-dark.jstree-rtl .jstree-node{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==");background-position:100% 1px;background-repeat:repeat-y}.jstree-default-dark.jstree-rtl .jstree-last{background:transparent}.jstree-default-dark.jstree-rtl .jstree-open>.jstree-ocl{background-position:-132px -36px}.jstree-default-dark.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-100px -36px}.jstree-default-dark.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-68px -36px}.jstree-default-dark.jstree-rtl>.jstree-no-dots .jstree-node,.jstree-default-dark.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:transparent}.jstree-default-dark.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-36px -36px}.jstree-default-dark.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-4px -36px}.jstree-default-dark .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default-dark>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url("throbber.gif") center center no-repeat}.jstree-default-dark .jstree-file{background:url("32px.png") -100px -68px no-repeat}.jstree-default-dark .jstree-folder{background:url("32px.png") -260px -4px no-repeat}.jstree-default-dark>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}#jstree-dnd.jstree-default-dark{line-height:24px;padding:0 4px}#jstree-dnd.jstree-default-dark .jstree-ok,#jstree-dnd.jstree-default-dark .jstree-er{background-image:url("32px.png");background-repeat:no-repeat;background-color:transparent}#jstree-dnd.jstree-default-dark i{background:transparent;width:24px;height:24px;line-height:24px}#jstree-dnd.jstree-default-dark .jstree-ok{background-position:-4px -68px}#jstree-dnd.jstree-default-dark .jstree-er{background-position:-36px -68px}.jstree-default-dark .jstree-ellipsis{overflow:hidden}.jstree-default-dark .jstree-ellipsis .jstree-anchor{width:calc(100% - 29px);text-overflow:ellipsis;overflow:hidden}.jstree-default-dark.jstree-rtl .jstree-node{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==")}.jstree-default-dark.jstree-rtl .jstree-last{background:transparent}.jstree-default-dark-small .jstree-node{min-height:18px;line-height:18px;margin-left:18px;min-width:18px}.jstree-default-dark-small .jstree-anchor{line-height:18px;height:18px}.jstree-default-dark-small .jstree-icon{width:18px;height:18px;line-height:18px}.jstree-default-dark-small .jstree-icon:empty{width:18px;height:18px;line-height:18px}.jstree-default-dark-small.jstree-rtl .jstree-node{margin-right:18px}.jstree-default-dark-small .jstree-wholerow{height:18px}.jstree-default-dark-small .jstree-node,.jstree-default-dark-small .jstree-icon{background-image:url("32px.png")}.jstree-default-dark-small .jstree-node{background-position:-295px -7px;background-repeat:repeat-y}.jstree-default-dark-small .jstree-last{background:transparent}.jstree-default-dark-small .jstree-open>.jstree-ocl{background-position:-135px -7px}.jstree-default-dark-small .jstree-closed>.jstree-ocl{background-position:-103px -7px}.jstree-default-dark-small .jstree-leaf>.jstree-ocl{background-position:-71px -7px}.jstree-default-dark-small .jstree-themeicon{background-position:-263px -7px}.jstree-default-dark-small>.jstree-no-dots .jstree-node,.jstree-default-dark-small>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:transparent}.jstree-default-dark-small>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-39px -7px}.jstree-default-dark-small>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-7px -7px}.jstree-default-dark-small .jstree-disabled{background:transparent}.jstree-default-dark-small .jstree-disabled.jstree-hovered{background:transparent}.jstree-default-dark-small .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default-dark-small .jstree-checkbox{background-position:-167px -7px}.jstree-default-dark-small .jstree-checkbox:hover{background-position:-167px -39px}.jstree-default-dark-small.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox,.jstree-default-dark-small .jstree-checked>.jstree-checkbox{background-position:-231px -7px}.jstree-default-dark-small.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover,.jstree-default-dark-small .jstree-checked>.jstree-checkbox:hover{background-position:-231px -39px}.jstree-default-dark-small .jstree-anchor>.jstree-undetermined{background-position:-199px -7px}.jstree-default-dark-small .jstree-anchor>.jstree-undetermined:hover{background-position:-199px -39px}.jstree-default-dark-small .jstree-checkbox-disabled{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default-dark-small>.jstree-striped{background-size:auto 36px}.jstree-default-dark-small.jstree-rtl .jstree-node{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==");background-position:100% 1px;background-repeat:repeat-y}.jstree-default-dark-small.jstree-rtl .jstree-last{background:transparent}.jstree-default-dark-small.jstree-rtl .jstree-open>.jstree-ocl{background-position:-135px -39px}.jstree-default-dark-small.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-103px -39px}.jstree-default-dark-small.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-71px -39px}.jstree-default-dark-small.jstree-rtl>.jstree-no-dots .jstree-node,.jstree-default-dark-small.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:transparent}.jstree-default-dark-small.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-39px -39px}.jstree-default-dark-small.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-7px -39px}.jstree-default-dark-small .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default-dark-small>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url("throbber.gif") center center no-repeat}.jstree-default-dark-small .jstree-file{background:url("32px.png") -103px -71px no-repeat}.jstree-default-dark-small .jstree-folder{background:url("32px.png") -263px -7px no-repeat}.jstree-default-dark-small>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}#jstree-dnd.jstree-default-dark-small{line-height:18px;padding:0 4px}#jstree-dnd.jstree-default-dark-small .jstree-ok,#jstree-dnd.jstree-default-dark-small .jstree-er{background-image:url("32px.png");background-repeat:no-repeat;background-color:transparent}#jstree-dnd.jstree-default-dark-small i{background:transparent;width:18px;height:18px;line-height:18px}#jstree-dnd.jstree-default-dark-small .jstree-ok{background-position:-7px -71px}#jstree-dnd.jstree-default-dark-small .jstree-er{background-position:-39px -71px}.jstree-default-dark-small .jstree-ellipsis{overflow:hidden}.jstree-default-dark-small .jstree-ellipsis .jstree-anchor{width:calc(100% - 23px);text-overflow:ellipsis;overflow:hidden}.jstree-default-dark-small.jstree-rtl .jstree-node{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAACAQMAAABv1h6PAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMHBgAAiABBI4gz9AAAAABJRU5ErkJggg==")}.jstree-default-dark-small.jstree-rtl .jstree-last{background:transparent}.jstree-default-dark-large .jstree-node{min-height:32px;line-height:32px;margin-left:32px;min-width:32px}.jstree-default-dark-large .jstree-anchor{line-height:32px;height:32px}.jstree-default-dark-large .jstree-icon{width:32px;height:32px;line-height:32px}.jstree-default-dark-large .jstree-icon:empty{width:32px;height:32px;line-height:32px}.jstree-default-dark-large.jstree-rtl .jstree-node{margin-right:32px}.jstree-default-dark-large .jstree-wholerow{height:32px}.jstree-default-dark-large .jstree-node,.jstree-default-dark-large .jstree-icon{background-image:url("32px.png")}.jstree-default-dark-large .jstree-node{background-position:-288px 0;background-repeat:repeat-y}.jstree-default-dark-large .jstree-last{background:transparent}.jstree-default-dark-large .jstree-open>.jstree-ocl{background-position:-128px 0}.jstree-default-dark-large .jstree-closed>.jstree-ocl{background-position:-96px 0}.jstree-default-dark-large .jstree-leaf>.jstree-ocl{background-position:-64px 0}.jstree-default-dark-large .jstree-themeicon{background-position:-256px 0}.jstree-default-dark-large>.jstree-no-dots .jstree-node,.jstree-default-dark-large>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:transparent}.jstree-default-dark-large>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-32px 0}.jstree-default-dark-large>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:0 0}.jstree-default-dark-large .jstree-disabled{background:transparent}.jstree-default-dark-large .jstree-disabled.jstree-hovered{background:transparent}.jstree-default-dark-large .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default-dark-large .jstree-checkbox{background-position:-160px 0}.jstree-default-dark-large .jstree-checkbox:hover{background-position:-160px -32px}.jstree-default-dark-large.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox,.jstree-default-dark-large .jstree-checked>.jstree-checkbox{background-position:-224px 0}.jstree-default-dark-large.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover,.jstree-default-dark-large .jstree-checked>.jstree-checkbox:hover{background-position:-224px -32px}.jstree-default-dark-large .jstree-anchor>.jstree-undetermined{background-position:-192px 0}.jstree-default-dark-large .jstree-anchor>.jstree-undetermined:hover{background-position:-192px -32px}.jstree-default-dark-large .jstree-checkbox-disabled{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default-dark-large>.jstree-striped{background-size:auto 64px}.jstree-default-dark-large.jstree-rtl .jstree-node{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==");background-position:100% 1px;background-repeat:repeat-y}.jstree-default-dark-large.jstree-rtl .jstree-last{background:transparent}.jstree-default-dark-large.jstree-rtl .jstree-open>.jstree-ocl{background-position:-128px -32px}.jstree-default-dark-large.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-96px -32px}.jstree-default-dark-large.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-64px -32px}.jstree-default-dark-large.jstree-rtl>.jstree-no-dots .jstree-node,.jstree-default-dark-large.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:transparent}.jstree-default-dark-large.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-32px -32px}.jstree-default-dark-large.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:0 -32px}.jstree-default-dark-large .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default-dark-large>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url("throbber.gif") center center no-repeat}.jstree-default-dark-large .jstree-file{background:url("32px.png") -96px -64px no-repeat}.jstree-default-dark-large .jstree-folder{background:url("32px.png") -256px 0 no-repeat}.jstree-default-dark-large>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}#jstree-dnd.jstree-default-dark-large{line-height:32px;padding:0 4px}#jstree-dnd.jstree-default-dark-large .jstree-ok,#jstree-dnd.jstree-default-dark-large .jstree-er{background-image:url("32px.png");background-repeat:no-repeat;background-color:transparent}#jstree-dnd.jstree-default-dark-large i{background:transparent;width:32px;height:32px;line-height:32px}#jstree-dnd.jstree-default-dark-large .jstree-ok{background-position:0 -64px}#jstree-dnd.jstree-default-dark-large .jstree-er{background-position:-32px -64px}.jstree-default-dark-large .jstree-ellipsis{overflow:hidden}.jstree-default-dark-large .jstree-ellipsis .jstree-anchor{width:calc(100% - 37px);text-overflow:ellipsis;overflow:hidden}.jstree-default-dark-large.jstree-rtl .jstree-node{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAACAQMAAAAD0EyKAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjgIIGBgABCgCBvVLXcAAAAABJRU5ErkJggg==")}.jstree-default-dark-large.jstree-rtl .jstree-last{background:transparent}@media (max-width:768px){#jstree-dnd.jstree-dnd-responsive{line-height:40px;font-weight:bold;font-size:1.1em;text-shadow:1px 1px white}#jstree-dnd.jstree-dnd-responsive>i{background:transparent;width:40px;height:40px}#jstree-dnd.jstree-dnd-responsive>.jstree-ok{background-image:url("40px.png");background-position:0 -200px;background-size:120px 240px}#jstree-dnd.jstree-dnd-responsive>.jstree-er{background-image:url("40px.png");background-position:-40px -200px;background-size:120px 240px}#jstree-marker.jstree-dnd-responsive{border-left-width:10px;border-top-width:10px;border-bottom-width:10px;margin-top:-10px}}@media (max-width:768px){.jstree-default-dark-responsive .jstree-icon{background-image:url("40px.png")}.jstree-default-dark-responsive .jstree-node,.jstree-default-dark-responsive .jstree-leaf>.jstree-ocl{background:transparent}.jstree-default-dark-responsive .jstree-node{min-height:40px;line-height:40px;margin-left:40px;min-width:40px;white-space:nowrap}.jstree-default-dark-responsive .jstree-anchor{line-height:40px;height:40px}.jstree-default-dark-responsive .jstree-icon,.jstree-default-dark-responsive .jstree-icon:empty{width:40px;height:40px;line-height:40px}.jstree-default-dark-responsive>.jstree-container-ul>.jstree-node{margin-left:0}.jstree-default-dark-responsive.jstree-rtl .jstree-node{margin-left:0;margin-right:40px;background:transparent}.jstree-default-dark-responsive.jstree-rtl .jstree-container-ul>.jstree-node{margin-right:0}.jstree-default-dark-responsive .jstree-ocl,.jstree-default-dark-responsive .jstree-themeicon,.jstree-default-dark-responsive .jstree-checkbox{background-size:120px 240px}.jstree-default-dark-responsive .jstree-leaf>.jstree-ocl,.jstree-default-dark-responsive.jstree-rtl .jstree-leaf>.jstree-ocl{background:transparent}.jstree-default-dark-responsive .jstree-open>.jstree-ocl{background-position:0 0 !important}.jstree-default-dark-responsive .jstree-closed>.jstree-ocl{background-position:0 -40px !important}.jstree-default-dark-responsive.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-40px 0 !important}.jstree-default-dark-responsive .jstree-themeicon{background-position:-40px -40px}.jstree-default-dark-responsive .jstree-checkbox,.jstree-default-dark-responsive .jstree-checkbox:hover{background-position:-40px -80px}.jstree-default-dark-responsive.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox,.jstree-default-dark-responsive.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover,.jstree-default-dark-responsive .jstree-checked>.jstree-checkbox,.jstree-default-dark-responsive .jstree-checked>.jstree-checkbox:hover{background-position:0 -80px}.jstree-default-dark-responsive .jstree-anchor>.jstree-undetermined,.jstree-default-dark-responsive .jstree-anchor>.jstree-undetermined:hover{background-position:0 -120px}.jstree-default-dark-responsive .jstree-anchor{font-weight:bold;font-size:1.1em;text-shadow:1px 1px white}.jstree-default-dark-responsive>.jstree-striped{background:transparent}.jstree-default-dark-responsive .jstree-wholerow{border-top:1px solid #666;border-bottom:1px solid #000;background:#333333;height:40px}.jstree-default-dark-responsive .jstree-wholerow-hovered{background:#555}.jstree-default-dark-responsive .jstree-wholerow-clicked{background:#5fa2db}.jstree-default-dark-responsive .jstree-children .jstree-last>.jstree-wholerow{box-shadow:inset 0 -6px 3px -5px #111111}.jstree-default-dark-responsive .jstree-children .jstree-open>.jstree-wholerow{box-shadow:inset 0 6px 3px -5px #111111;border-top:0}.jstree-default-dark-responsive .jstree-children .jstree-open+.jstree-open{box-shadow:none}.jstree-default-dark-responsive .jstree-node,.jstree-default-dark-responsive .jstree-icon,.jstree-default-dark-responsive .jstree-node>.jstree-ocl,.jstree-default-dark-responsive .jstree-themeicon,.jstree-default-dark-responsive .jstree-checkbox{background-image:url("40px.png");background-size:120px 240px}.jstree-default-dark-responsive .jstree-node{background-position:-80px 0;background-repeat:repeat-y}.jstree-default-dark-responsive .jstree-last{background:transparent}.jstree-default-dark-responsive .jstree-leaf>.jstree-ocl{background-position:-40px -120px}.jstree-default-dark-responsive .jstree-last>.jstree-ocl{background-position:-40px -160px}.jstree-default-dark-responsive .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default-dark-responsive .jstree-file{background:url("40px.png") 0 -160px no-repeat;background-size:120px 240px}.jstree-default-dark-responsive .jstree-folder{background:url("40px.png") -40px -40px no-repeat;background-size:120px 240px}.jstree-default-dark-responsive>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}}.jstree-default-dark{background:#333}.jstree-default-dark .jstree-anchor{color:#999;text-shadow:1px 1px 0 rgba(0,0,0,0.5)}.jstree-default-dark .jstree-clicked,.jstree-default-dark .jstree-checked{color:white}.jstree-default-dark .jstree-hovered{color:white}#jstree-marker.jstree-default-dark{border-left-color:#999;background:transparent}.jstree-default-dark .jstree-anchor>.jstree-icon{opacity:.75}.jstree-default-dark .jstree-clicked>.jstree-icon,.jstree-default-dark .jstree-hovered>.jstree-icon,.jstree-default-dark .jstree-checked>.jstree-icon{opacity:1}.jstree-default-dark.jstree-rtl .jstree-node{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAACZmZl+9SADAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==")}.jstree-default-dark.jstree-rtl .jstree-last{background:transparent}.jstree-default-dark-small.jstree-rtl .jstree-node{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAACAQMAAABv1h6PAAAABlBMVEUAAACZmZl+9SADAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMHBgAAiABBI4gz9AAAAABJRU5ErkJggg==")}.jstree-default-dark-small.jstree-rtl .jstree-last{background:transparent}.jstree-default-dark-large.jstree-rtl .jstree-node{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAACAQMAAAAD0EyKAAAABlBMVEUAAACZmZl+9SADAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjgIIGBgABCgCBvVLXcAAAAABJRU5ErkJggg==")}.jstree-default-dark-large.jstree-rtl .jstree-last{background:transparent}
|
1 |
+
.jstree-node,.jstree-children,.jstree-container-ul{display:block;margin:0;padding:0;list-style-type:none;list-style-image:none}.jstree-node{white-space:nowrap}.jstree-anchor{display:inline-block;color:#000;white-space:nowrap;padding:0 4px 0 1px;margin:0;vertical-align:top}.jstree-anchor:focus{outline:0}.jstree-anchor,.jstree-anchor:link,.jstree-anchor:visited,.jstree-anchor:hover,.jstree-anchor:active{text-decoration:none;color:inherit}.jstree-icon{display:inline-block;text-decoration:none;margin:0;padding:0;vertical-align:top;text-align:center}.jstree-icon:empty{display:inline-block;text-decoration:none;margin:0;padding:0;vertical-align:top;text-align:center}.jstree-ocl{cursor:pointer}.jstree-leaf>.jstree-ocl{cursor:default}.jstree .jstree-open>.jstree-children{display:block}.jstree .jstree-closed>.jstree-children,.jstree .jstree-leaf>.jstree-children{display:none}.jstree-anchor>.jstree-themeicon{margin-right:2px}.jstree-no-icons .jstree-themeicon,.jstree-anchor>.jstree-themeicon-hidden{display:none}.jstree-hidden,.jstree-node.jstree-hidden{display:none}.jstree-rtl .jstree-anchor{padding:0 1px 0 4px}.jstree-rtl .jstree-anchor>.jstree-themeicon{margin-left:2px;margin-right:0}.jstree-rtl .jstree-node{margin-left:0}.jstree-rtl .jstree-container-ul>.jstree-node{margin-right:0}.jstree-wholerow-ul{position:relative;display:inline-block;min-width:100%}.jstree-wholerow-ul .jstree-leaf>.jstree-ocl{cursor:pointer}.jstree-wholerow-ul .jstree-anchor,.jstree-wholerow-ul .jstree-icon{position:relative}.jstree-wholerow-ul .jstree-wholerow{width:100%;cursor:pointer;position:absolute;left:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.jstree-contextmenu .jstree-anchor{-webkit-user-select:none;-webkit-touch-callout:none}.vakata-context{display:none}.vakata-context,.vakata-context ul{margin:0;padding:2px;position:absolute;background:#f5f5f5;border:1px solid #979797;box-shadow:2px 2px 2px #999}.vakata-context ul{list-style:none;left:100%;margin-top:-2.7em;margin-left:-4px}.vakata-context .vakata-context-right ul{left:auto;right:100%;margin-left:auto;margin-right:-4px}.vakata-context li{list-style:none}.vakata-context li>a{display:block;padding:0 2em;text-decoration:none;width:auto;color:#000;white-space:nowrap;line-height:2.4em;text-shadow:1px 1px 0 #fff;border-radius:1px}.vakata-context li>a:hover{position:relative;background-color:#e8eff7;box-shadow:0 0 2px #0a6aa1}.vakata-context li>a.vakata-context-parent{background-image:url(data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAIORI4JlrqN1oMSnmmZDQUAOw==);background-position:right center;background-repeat:no-repeat}.vakata-context li>a:focus{outline:0}.vakata-context .vakata-context-hover>a{position:relative;background-color:#e8eff7;box-shadow:0 0 2px #0a6aa1}.vakata-context .vakata-context-separator>a,.vakata-context .vakata-context-separator>a:hover{background:#fff;border:0;border-top:1px solid #e2e3e3;height:1px;min-height:1px;max-height:1px;padding:0;margin:0 0 0 2.4em;border-left:1px solid #e0e0e0;text-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;border-radius:0}.vakata-context .vakata-contextmenu-disabled a,.vakata-context .vakata-contextmenu-disabled a:hover{color:silver;background-color:transparent;border:0;box-shadow:0 0 0}.vakata-context li>a>i{text-decoration:none;display:inline-block;width:2.4em;height:2.4em;background:0 0;margin:0 0 0 -2em;vertical-align:top;text-align:center;line-height:2.4em}.vakata-context li>a>i:empty{width:2.4em;line-height:2.4em}.vakata-context li>a .vakata-contextmenu-sep{display:inline-block;width:1px;height:2.4em;background:#fff;margin:0 .5em 0 0;border-left:1px solid #e2e3e3}.vakata-context .vakata-contextmenu-shortcut{font-size:.8em;color:silver;opacity:.5;display:none}.vakata-context-rtl ul{left:auto;right:100%;margin-left:auto;margin-right:-4px}.vakata-context-rtl li>a.vakata-context-parent{background-image:url(data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAINjI+AC7rWHIsPtmoxLAA7);background-position:left center;background-repeat:no-repeat}.vakata-context-rtl .vakata-context-separator>a{margin:0 2.4em 0 0;border-left:0;border-right:1px solid #e2e3e3}.vakata-context-rtl .vakata-context-left ul{right:auto;left:100%;margin-left:-4px;margin-right:auto}.vakata-context-rtl li>a>i{margin:0 -2em 0 0}.vakata-context-rtl li>a .vakata-contextmenu-sep{margin:0 0 0 .5em;border-left-color:#fff;background:#e2e3e3}#jstree-marker{position:absolute;top:0;left:0;margin:-5px 0 0 0;padding:0;border-right:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid;width:0;height:0;font-size:0;line-height:0}#jstree-dnd{line-height:16px;margin:0;padding:4px}#jstree-dnd .jstree-icon,#jstree-dnd .jstree-copy{display:inline-block;text-decoration:none;margin:0 2px 0 0;padding:0;width:16px;height:16px}#jstree-dnd .jstree-ok{background:green}#jstree-dnd .jstree-er{background:red}#jstree-dnd .jstree-copy{margin:0 2px}.jstree-default-dark .jstree-node,.jstree-default-dark .jstree-icon{background-repeat:no-repeat;background-color:transparent}.jstree-default-dark .jstree-anchor,.jstree-default-dark .jstree-animated,.jstree-default-dark .jstree-wholerow{transition:background-color .15s,box-shadow .15s}.jstree-default-dark .jstree-hovered{background:#555;border-radius:2px;box-shadow:inset 0 0 1px #555}.jstree-default-dark .jstree-context{background:#555;border-radius:2px;box-shadow:inset 0 0 1px #555}.jstree-default-dark .jstree-clicked{background:#5fa2db;border-radius:2px;box-shadow:inset 0 0 1px #666}.jstree-default-dark .jstree-no-icons .jstree-anchor>.jstree-themeicon{display:none}.jstree-default-dark .jstree-disabled{background:0 0;color:#666}.jstree-default-dark .jstree-disabled.jstree-hovered{background:0 0;box-shadow:none}.jstree-default-dark .jstree-disabled.jstree-clicked{background:#333}.jstree-default-dark .jstree-disabled>.jstree-icon{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default-dark .jstree-search{font-style:italic;color:#fff;font-weight:700}.jstree-default-dark .jstree-no-checkboxes .jstree-checkbox{display:none!important}.jstree-default-dark.jstree-checkbox-no-clicked .jstree-clicked{background:0 0;box-shadow:none}.jstree-default-dark.jstree-checkbox-no-clicked .jstree-clicked.jstree-hovered{background:#555}.jstree-default-dark.jstree-checkbox-no-clicked>.jstree-wholerow-ul .jstree-wholerow-clicked{background:0 0}.jstree-default-dark.jstree-checkbox-no-clicked>.jstree-wholerow-ul .jstree-wholerow-clicked.jstree-wholerow-hovered{background:#555}.jstree-default-dark>.jstree-striped{min-width:100%;display:inline-block;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAkCAMAAAB/qqA+AAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlMNAMM9s3UAAAAXSURBVHjajcEBAQAAAIKg/H/aCQZ70AUBjAATb6YPDgAAAABJRU5ErkJggg==) left top repeat}.jstree-default-dark>.jstree-wholerow-ul .jstree-hovered,.jstree-default-dark>.jstree-wholerow-ul .jstree-clicked{background:0 0;box-shadow:none;border-radius:0}.jstree-default-dark .jstree-wholerow{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.jstree-default-dark .jstree-wholerow-hovered{background:#555}.jstree-default-dark .jstree-wholerow-clicked{background:#5fa2db;background:-webkit-linear-gradient(top,#5fa2db 0,#5fa2db 100%);background:linear-gradient(to bottom,#5fa2db 0,#5fa2db 100%)}.jstree-default-dark .jstree-node{min-height:24px;line-height:24px;margin-left:24px;min-width:24px}.jstree-default-dark .jstree-anchor{line-height:24px;height:24px}.jstree-default-dark .jstree-icon{width:24px;height:24px;line-height:24px}.jstree-default-dark .jstree-icon:empty{width:24px;height:24px;line-height:24px}.jstree-default-dark.jstree-rtl .jstree-node{margin-right:24px}.jstree-default-dark .jstree-wholerow{height:24px}.jstree-default-dark .jstree-node,.jstree-default-dark .jstree-icon{background-image:url(32px.png)}.jstree-default-dark .jstree-node{background-position:-292px -4px;background-repeat:repeat-y}.jstree-default-dark .jstree-last{background:0 0}.jstree-default-dark .jstree-open>.jstree-ocl{background-position:-132px -4px}.jstree-default-dark .jstree-closed>.jstree-ocl{background-position:-100px -4px}.jstree-default-dark .jstree-leaf>.jstree-ocl{background-position:-68px -4px}.jstree-default-dark .jstree-themeicon{background-position:-260px -4px}.jstree-default-dark>.jstree-no-dots .jstree-node,.jstree-default-dark>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:0 0}.jstree-default-dark>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-36px -4px}.jstree-default-dark>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-4px -4px}.jstree-default-dark .jstree-disabled{background:0 0}.jstree-default-dark .jstree-disabled.jstree-hovered{background:0 0}.jstree-default-dark .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default-dark .jstree-checkbox{background-position:-164px -4px}.jstree-default-dark .jstree-checkbox:hover{background-position:-164px -36px}.jstree-default-dark.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox,.jstree-default-dark .jstree-checked>.jstree-checkbox{background-position:-228px -4px}.jstree-default-dark.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover,.jstree-default-dark .jstree-checked>.jstree-checkbox:hover{background-position:-228px -36px}.jstree-default-dark .jstree-anchor>.jstree-undetermined{background-position:-196px -4px}.jstree-default-dark .jstree-anchor>.jstree-undetermined:hover{background-position:-196px -36px}.jstree-default-dark .jstree-checkbox-disabled{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default-dark>.jstree-striped{background-size:auto 48px}.jstree-default-dark.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==);background-position:100% 1px;background-repeat:repeat-y}.jstree-default-dark.jstree-rtl .jstree-last{background:0 0}.jstree-default-dark.jstree-rtl .jstree-open>.jstree-ocl{background-position:-132px -36px}.jstree-default-dark.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-100px -36px}.jstree-default-dark.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-68px -36px}.jstree-default-dark.jstree-rtl>.jstree-no-dots .jstree-node,.jstree-default-dark.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:0 0}.jstree-default-dark.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-36px -36px}.jstree-default-dark.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-4px -36px}.jstree-default-dark .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default-dark>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url(throbber.gif) center center no-repeat}.jstree-default-dark .jstree-file{background:url(32px.png) -100px -68px no-repeat}.jstree-default-dark .jstree-folder{background:url(32px.png) -260px -4px no-repeat}.jstree-default-dark>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}#jstree-dnd.jstree-default-dark{line-height:24px;padding:0 4px}#jstree-dnd.jstree-default-dark .jstree-ok,#jstree-dnd.jstree-default-dark .jstree-er{background-image:url(32px.png);background-repeat:no-repeat;background-color:transparent}#jstree-dnd.jstree-default-dark i{background:0 0;width:24px;height:24px;line-height:24px}#jstree-dnd.jstree-default-dark .jstree-ok{background-position:-4px -68px}#jstree-dnd.jstree-default-dark .jstree-er{background-position:-36px -68px}.jstree-default-dark .jstree-ellipsis{overflow:hidden}.jstree-default-dark .jstree-ellipsis .jstree-anchor{width:calc(100% - 29px);text-overflow:ellipsis;overflow:hidden}.jstree-default-dark .jstree-ellipsis.jstree-no-icons .jstree-anchor{width:calc(100% - 5px)}.jstree-default-dark.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==)}.jstree-default-dark.jstree-rtl .jstree-last{background:0 0}.jstree-default-dark-small .jstree-node{min-height:18px;line-height:18px;margin-left:18px;min-width:18px}.jstree-default-dark-small .jstree-anchor{line-height:18px;height:18px}.jstree-default-dark-small .jstree-icon{width:18px;height:18px;line-height:18px}.jstree-default-dark-small .jstree-icon:empty{width:18px;height:18px;line-height:18px}.jstree-default-dark-small.jstree-rtl .jstree-node{margin-right:18px}.jstree-default-dark-small .jstree-wholerow{height:18px}.jstree-default-dark-small .jstree-node,.jstree-default-dark-small .jstree-icon{background-image:url(32px.png)}.jstree-default-dark-small .jstree-node{background-position:-295px -7px;background-repeat:repeat-y}.jstree-default-dark-small .jstree-last{background:0 0}.jstree-default-dark-small .jstree-open>.jstree-ocl{background-position:-135px -7px}.jstree-default-dark-small .jstree-closed>.jstree-ocl{background-position:-103px -7px}.jstree-default-dark-small .jstree-leaf>.jstree-ocl{background-position:-71px -7px}.jstree-default-dark-small .jstree-themeicon{background-position:-263px -7px}.jstree-default-dark-small>.jstree-no-dots .jstree-node,.jstree-default-dark-small>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:0 0}.jstree-default-dark-small>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-39px -7px}.jstree-default-dark-small>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-7px -7px}.jstree-default-dark-small .jstree-disabled{background:0 0}.jstree-default-dark-small .jstree-disabled.jstree-hovered{background:0 0}.jstree-default-dark-small .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default-dark-small .jstree-checkbox{background-position:-167px -7px}.jstree-default-dark-small .jstree-checkbox:hover{background-position:-167px -39px}.jstree-default-dark-small.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox,.jstree-default-dark-small .jstree-checked>.jstree-checkbox{background-position:-231px -7px}.jstree-default-dark-small.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover,.jstree-default-dark-small .jstree-checked>.jstree-checkbox:hover{background-position:-231px -39px}.jstree-default-dark-small .jstree-anchor>.jstree-undetermined{background-position:-199px -7px}.jstree-default-dark-small .jstree-anchor>.jstree-undetermined:hover{background-position:-199px -39px}.jstree-default-dark-small .jstree-checkbox-disabled{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default-dark-small>.jstree-striped{background-size:auto 36px}.jstree-default-dark-small.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==);background-position:100% 1px;background-repeat:repeat-y}.jstree-default-dark-small.jstree-rtl .jstree-last{background:0 0}.jstree-default-dark-small.jstree-rtl .jstree-open>.jstree-ocl{background-position:-135px -39px}.jstree-default-dark-small.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-103px -39px}.jstree-default-dark-small.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-71px -39px}.jstree-default-dark-small.jstree-rtl>.jstree-no-dots .jstree-node,.jstree-default-dark-small.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:0 0}.jstree-default-dark-small.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-39px -39px}.jstree-default-dark-small.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-7px -39px}.jstree-default-dark-small .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default-dark-small>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url(throbber.gif) center center no-repeat}.jstree-default-dark-small .jstree-file{background:url(32px.png) -103px -71px no-repeat}.jstree-default-dark-small .jstree-folder{background:url(32px.png) -263px -7px no-repeat}.jstree-default-dark-small>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}#jstree-dnd.jstree-default-dark-small{line-height:18px;padding:0 4px}#jstree-dnd.jstree-default-dark-small .jstree-ok,#jstree-dnd.jstree-default-dark-small .jstree-er{background-image:url(32px.png);background-repeat:no-repeat;background-color:transparent}#jstree-dnd.jstree-default-dark-small i{background:0 0;width:18px;height:18px;line-height:18px}#jstree-dnd.jstree-default-dark-small .jstree-ok{background-position:-7px -71px}#jstree-dnd.jstree-default-dark-small .jstree-er{background-position:-39px -71px}.jstree-default-dark-small .jstree-ellipsis{overflow:hidden}.jstree-default-dark-small .jstree-ellipsis .jstree-anchor{width:calc(100% - 23px);text-overflow:ellipsis;overflow:hidden}.jstree-default-dark-small .jstree-ellipsis.jstree-no-icons .jstree-anchor{width:calc(100% - 5px)}.jstree-default-dark-small.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAACAQMAAABv1h6PAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMHBgAAiABBI4gz9AAAAABJRU5ErkJggg==)}.jstree-default-dark-small.jstree-rtl .jstree-last{background:0 0}.jstree-default-dark-large .jstree-node{min-height:32px;line-height:32px;margin-left:32px;min-width:32px}.jstree-default-dark-large .jstree-anchor{line-height:32px;height:32px}.jstree-default-dark-large .jstree-icon{width:32px;height:32px;line-height:32px}.jstree-default-dark-large .jstree-icon:empty{width:32px;height:32px;line-height:32px}.jstree-default-dark-large.jstree-rtl .jstree-node{margin-right:32px}.jstree-default-dark-large .jstree-wholerow{height:32px}.jstree-default-dark-large .jstree-node,.jstree-default-dark-large .jstree-icon{background-image:url(32px.png)}.jstree-default-dark-large .jstree-node{background-position:-288px 0;background-repeat:repeat-y}.jstree-default-dark-large .jstree-last{background:0 0}.jstree-default-dark-large .jstree-open>.jstree-ocl{background-position:-128px 0}.jstree-default-dark-large .jstree-closed>.jstree-ocl{background-position:-96px 0}.jstree-default-dark-large .jstree-leaf>.jstree-ocl{background-position:-64px 0}.jstree-default-dark-large .jstree-themeicon{background-position:-256px 0}.jstree-default-dark-large>.jstree-no-dots .jstree-node,.jstree-default-dark-large>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:0 0}.jstree-default-dark-large>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-32px 0}.jstree-default-dark-large>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:0 0}.jstree-default-dark-large .jstree-disabled{background:0 0}.jstree-default-dark-large .jstree-disabled.jstree-hovered{background:0 0}.jstree-default-dark-large .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default-dark-large .jstree-checkbox{background-position:-160px 0}.jstree-default-dark-large .jstree-checkbox:hover{background-position:-160px -32px}.jstree-default-dark-large.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox,.jstree-default-dark-large .jstree-checked>.jstree-checkbox{background-position:-224px 0}.jstree-default-dark-large.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover,.jstree-default-dark-large .jstree-checked>.jstree-checkbox:hover{background-position:-224px -32px}.jstree-default-dark-large .jstree-anchor>.jstree-undetermined{background-position:-192px 0}.jstree-default-dark-large .jstree-anchor>.jstree-undetermined:hover{background-position:-192px -32px}.jstree-default-dark-large .jstree-checkbox-disabled{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default-dark-large>.jstree-striped{background-size:auto 64px}.jstree-default-dark-large.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==);background-position:100% 1px;background-repeat:repeat-y}.jstree-default-dark-large.jstree-rtl .jstree-last{background:0 0}.jstree-default-dark-large.jstree-rtl .jstree-open>.jstree-ocl{background-position:-128px -32px}.jstree-default-dark-large.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-96px -32px}.jstree-default-dark-large.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-64px -32px}.jstree-default-dark-large.jstree-rtl>.jstree-no-dots .jstree-node,.jstree-default-dark-large.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:0 0}.jstree-default-dark-large.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-32px -32px}.jstree-default-dark-large.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:0 -32px}.jstree-default-dark-large .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default-dark-large>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url(throbber.gif) center center no-repeat}.jstree-default-dark-large .jstree-file{background:url(32px.png) -96px -64px no-repeat}.jstree-default-dark-large .jstree-folder{background:url(32px.png) -256px 0 no-repeat}.jstree-default-dark-large>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}#jstree-dnd.jstree-default-dark-large{line-height:32px;padding:0 4px}#jstree-dnd.jstree-default-dark-large .jstree-ok,#jstree-dnd.jstree-default-dark-large .jstree-er{background-image:url(32px.png);background-repeat:no-repeat;background-color:transparent}#jstree-dnd.jstree-default-dark-large i{background:0 0;width:32px;height:32px;line-height:32px}#jstree-dnd.jstree-default-dark-large .jstree-ok{background-position:0 -64px}#jstree-dnd.jstree-default-dark-large .jstree-er{background-position:-32px -64px}.jstree-default-dark-large .jstree-ellipsis{overflow:hidden}.jstree-default-dark-large .jstree-ellipsis .jstree-anchor{width:calc(100% - 37px);text-overflow:ellipsis;overflow:hidden}.jstree-default-dark-large .jstree-ellipsis.jstree-no-icons .jstree-anchor{width:calc(100% - 5px)}.jstree-default-dark-large.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAACAQMAAAAD0EyKAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjgIIGBgABCgCBvVLXcAAAAABJRU5ErkJggg==)}.jstree-default-dark-large.jstree-rtl .jstree-last{background:0 0}@media (max-width:768px){#jstree-dnd.jstree-dnd-responsive{line-height:40px;font-weight:700;font-size:1.1em;text-shadow:1px 1px #fff}#jstree-dnd.jstree-dnd-responsive>i{background:0 0;width:40px;height:40px}#jstree-dnd.jstree-dnd-responsive>.jstree-ok{background-image:url(40px.png);background-position:0 -200px;background-size:120px 240px}#jstree-dnd.jstree-dnd-responsive>.jstree-er{background-image:url(40px.png);background-position:-40px -200px;background-size:120px 240px}#jstree-marker.jstree-dnd-responsive{border-left-width:10px;border-top-width:10px;border-bottom-width:10px;margin-top:-10px}}@media (max-width:768px){.jstree-default-dark-responsive .jstree-icon{background-image:url(40px.png)}.jstree-default-dark-responsive .jstree-node,.jstree-default-dark-responsive .jstree-leaf>.jstree-ocl{background:0 0}.jstree-default-dark-responsive .jstree-node{min-height:40px;line-height:40px;margin-left:40px;min-width:40px;white-space:nowrap}.jstree-default-dark-responsive .jstree-anchor{line-height:40px;height:40px}.jstree-default-dark-responsive .jstree-icon,.jstree-default-dark-responsive .jstree-icon:empty{width:40px;height:40px;line-height:40px}.jstree-default-dark-responsive>.jstree-container-ul>.jstree-node{margin-left:0}.jstree-default-dark-responsive.jstree-rtl .jstree-node{margin-left:0;margin-right:40px;background:0 0}.jstree-default-dark-responsive.jstree-rtl .jstree-container-ul>.jstree-node{margin-right:0}.jstree-default-dark-responsive .jstree-ocl,.jstree-default-dark-responsive .jstree-themeicon,.jstree-default-dark-responsive .jstree-checkbox{background-size:120px 240px}.jstree-default-dark-responsive .jstree-leaf>.jstree-ocl,.jstree-default-dark-responsive.jstree-rtl .jstree-leaf>.jstree-ocl{background:0 0}.jstree-default-dark-responsive .jstree-open>.jstree-ocl{background-position:0 0!important}.jstree-default-dark-responsive .jstree-closed>.jstree-ocl{background-position:0 -40px!important}.jstree-default-dark-responsive.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-40px 0!important}.jstree-default-dark-responsive .jstree-themeicon{background-position:-40px -40px}.jstree-default-dark-responsive .jstree-checkbox,.jstree-default-dark-responsive .jstree-checkbox:hover{background-position:-40px -80px}.jstree-default-dark-responsive.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox,.jstree-default-dark-responsive.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover,.jstree-default-dark-responsive .jstree-checked>.jstree-checkbox,.jstree-default-dark-responsive .jstree-checked>.jstree-checkbox:hover{background-position:0 -80px}.jstree-default-dark-responsive .jstree-anchor>.jstree-undetermined,.jstree-default-dark-responsive .jstree-anchor>.jstree-undetermined:hover{background-position:0 -120px}.jstree-default-dark-responsive .jstree-anchor{font-weight:700;font-size:1.1em;text-shadow:1px 1px #fff}.jstree-default-dark-responsive>.jstree-striped{background:0 0}.jstree-default-dark-responsive .jstree-wholerow{border-top:1px solid #666;border-bottom:1px solid #000;background:#333;height:40px}.jstree-default-dark-responsive .jstree-wholerow-hovered{background:#555}.jstree-default-dark-responsive .jstree-wholerow-clicked{background:#5fa2db}.jstree-default-dark-responsive .jstree-children .jstree-last>.jstree-wholerow{box-shadow:inset 0 -6px 3px -5px #111}.jstree-default-dark-responsive .jstree-children .jstree-open>.jstree-wholerow{box-shadow:inset 0 6px 3px -5px #111;border-top:0}.jstree-default-dark-responsive .jstree-children .jstree-open+.jstree-open{box-shadow:none}.jstree-default-dark-responsive .jstree-node,.jstree-default-dark-responsive .jstree-icon,.jstree-default-dark-responsive .jstree-node>.jstree-ocl,.jstree-default-dark-responsive .jstree-themeicon,.jstree-default-dark-responsive .jstree-checkbox{background-image:url(40px.png);background-size:120px 240px}.jstree-default-dark-responsive .jstree-node{background-position:-80px 0;background-repeat:repeat-y}.jstree-default-dark-responsive .jstree-last{background:0 0}.jstree-default-dark-responsive .jstree-leaf>.jstree-ocl{background-position:-40px -120px}.jstree-default-dark-responsive .jstree-last>.jstree-ocl{background-position:-40px -160px}.jstree-default-dark-responsive .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default-dark-responsive .jstree-file{background:url(40px.png) 0 -160px no-repeat;background-size:120px 240px}.jstree-default-dark-responsive .jstree-folder{background:url(40px.png) -40px -40px no-repeat;background-size:120px 240px}.jstree-default-dark-responsive>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}}.jstree-default-dark{background:#333}.jstree-default-dark .jstree-anchor{color:#999;text-shadow:1px 1px 0 rgba(0,0,0,.5)}.jstree-default-dark .jstree-clicked,.jstree-default-dark .jstree-checked{color:#fff}.jstree-default-dark .jstree-hovered{color:#fff}#jstree-marker.jstree-default-dark{border-left-color:#999;background:0 0}.jstree-default-dark .jstree-anchor>.jstree-icon{opacity:.75}.jstree-default-dark .jstree-clicked>.jstree-icon,.jstree-default-dark .jstree-hovered>.jstree-icon,.jstree-default-dark .jstree-checked>.jstree-icon{opacity:1}.jstree-default-dark.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAACZmZl+9SADAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==)}.jstree-default-dark.jstree-rtl .jstree-last{background:0 0}.jstree-default-dark-small.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAACAQMAAABv1h6PAAAABlBMVEUAAACZmZl+9SADAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMHBgAAiABBI4gz9AAAAABJRU5ErkJggg==)}.jstree-default-dark-small.jstree-rtl .jstree-last{background:0 0}.jstree-default-dark-large.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAACAQMAAAAD0EyKAAAABlBMVEUAAACZmZl+9SADAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjgIIGBgABCgCBvVLXcAAAAABJRU5ErkJggg==)}.jstree-default-dark-large.jstree-rtl .jstree-last{background:0 0}
|
assets/jstree/themes/default-dark/throbber.gif
CHANGED
Binary file
|
assets/jstree/themes/default/style.css
CHANGED
@@ -110,6 +110,7 @@
|
|
110 |
/* disable selection/Copy of UIWebView */
|
111 |
-webkit-touch-callout: none;
|
112 |
/* disable the IOS popup when long-press on a link */
|
|
|
113 |
}
|
114 |
.vakata-context {
|
115 |
display: none;
|
@@ -162,6 +163,9 @@
|
|
162 |
.vakata-context li > a:focus {
|
163 |
outline: 0;
|
164 |
}
|
|
|
|
|
|
|
165 |
.vakata-context .vakata-context-hover > a {
|
166 |
position: relative;
|
167 |
background-color: #e8eff7;
|
110 |
/* disable selection/Copy of UIWebView */
|
111 |
-webkit-touch-callout: none;
|
112 |
/* disable the IOS popup when long-press on a link */
|
113 |
+
user-select: none;
|
114 |
}
|
115 |
.vakata-context {
|
116 |
display: none;
|
163 |
.vakata-context li > a:focus {
|
164 |
outline: 0;
|
165 |
}
|
166 |
+
.vakata-context .vakata-context-no-icons {
|
167 |
+
margin-left: 0;
|
168 |
+
}
|
169 |
.vakata-context .vakata-context-hover > a {
|
170 |
position: relative;
|
171 |
background-color: #e8eff7;
|
assets/jstree/themes/default/style.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.jstree-node,.jstree-children,.jstree-container-ul{display:block;margin:0;padding:0;list-style-type:none;list-style-image:none}.jstree-node{white-space:nowrap}.jstree-anchor{display:inline-block;color:black;white-space:nowrap;padding:0 4px 0 1px;margin:0;vertical-align:top}.jstree-anchor:focus{outline:0}.jstree-anchor,.jstree-anchor:link,.jstree-anchor:visited,.jstree-anchor:hover,.jstree-anchor:active{text-decoration:none;color:inherit}.jstree-icon{display:inline-block;text-decoration:none;margin:0;padding:0;vertical-align:top;text-align:center}.jstree-icon:empty{display:inline-block;text-decoration:none;margin:0;padding:0;vertical-align:top;text-align:center}.jstree-ocl{cursor:pointer}.jstree-leaf>.jstree-ocl{cursor:default}.jstree .jstree-open>.jstree-children{display:block}.jstree .jstree-closed>.jstree-children,.jstree .jstree-leaf>.jstree-children{display:none}.jstree-anchor>.jstree-themeicon{margin-right:2px}.jstree-no-icons .jstree-themeicon,.jstree-anchor>.jstree-themeicon-hidden{display:none}.jstree-hidden,.jstree-node.jstree-hidden{display:none}.jstree-rtl .jstree-anchor{padding:0 1px 0 4px}.jstree-rtl .jstree-anchor>.jstree-themeicon{margin-left:2px;margin-right:0}.jstree-rtl .jstree-node{margin-left:0}.jstree-rtl .jstree-container-ul>.jstree-node{margin-right:0}.jstree-wholerow-ul{position:relative;display:inline-block;min-width:100%}.jstree-wholerow-ul .jstree-leaf>.jstree-ocl{cursor:pointer}.jstree-wholerow-ul .jstree-anchor,.jstree-wholerow-ul .jstree-icon{position:relative}.jstree-wholerow-ul .jstree-wholerow{width:100%;cursor:pointer;position:absolute;left:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.jstree-contextmenu .jstree-anchor{-webkit-user-select:none;-webkit-touch-callout:none}.vakata-context{display:none}.vakata-context,.vakata-context ul{margin:0;padding:2px;position:absolute;background:#f5f5f5;border:1px solid #979797;box-shadow:2px 2px 2px #999999}.vakata-context ul{list-style:none;left:100%;margin-top:-2.7em;margin-left:-4px}.vakata-context .vakata-context-right ul{left:auto;right:100%;margin-left:auto;margin-right:-4px}.vakata-context li{list-style:none}.vakata-context li>a{display:block;padding:0 2em 0 2em;text-decoration:none;width:auto;color:black;white-space:nowrap;line-height:2.4em;text-shadow:1px 1px 0 white;border-radius:1px}.vakata-context li>a:hover{position:relative;background-color:#e8eff7;box-shadow:0 0 2px #0a6aa1}.vakata-context li>a.vakata-context-parent{background-image:url("data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAIORI4JlrqN1oMSnmmZDQUAOw==");background-position:right center;background-repeat:no-repeat}.vakata-context li>a:focus{outline:0}.vakata-context .vakata-context-hover>a{position:relative;background-color:#e8eff7;box-shadow:0 0 2px #0a6aa1}.vakata-context .vakata-context-separator>a,.vakata-context .vakata-context-separator>a:hover{background:white;border:0;border-top:1px solid #e2e3e3;height:1px;min-height:1px;max-height:1px;padding:0;margin:0 0 0 2.4em;border-left:1px solid #e0e0e0;text-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;border-radius:0}.vakata-context .vakata-contextmenu-disabled a,.vakata-context .vakata-contextmenu-disabled a:hover{color:silver;background-color:transparent;border:0;box-shadow:0 0 0}.vakata-context .vakata-contextmenu-disabled>a>i{filter:grayscale(100%)}.vakata-context li>a>i{text-decoration:none;display:inline-block;width:2.4em;height:2.4em;background:transparent;margin:0 0 0 -2em;vertical-align:top;text-align:center;line-height:2.4em}.vakata-context li>a>i:empty{width:2.4em;line-height:2.4em}.vakata-context li>a .vakata-contextmenu-sep{display:inline-block;width:1px;height:2.4em;background:white;margin:0 .5em 0 0;border-left:1px solid #e2e3e3}.vakata-context .vakata-contextmenu-shortcut{font-size:.8em;color:silver;opacity:.5;display:none}.vakata-context-rtl ul{left:auto;right:100%;margin-left:auto;margin-right:-4px}.vakata-context-rtl li>a.vakata-context-parent{background-image:url("data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAINjI+AC7rWHIsPtmoxLAA7");background-position:left center;background-repeat:no-repeat}.vakata-context-rtl .vakata-context-separator>a{margin:0 2.4em 0 0;border-left:0;border-right:1px solid #e2e3e3}.vakata-context-rtl .vakata-context-left ul{right:auto;left:100%;margin-left:-4px;margin-right:auto}.vakata-context-rtl li>a>i{margin:0 -2em 0 0}.vakata-context-rtl li>a .vakata-contextmenu-sep{margin:0 0 0 .5em;border-left-color:white;background:#e2e3e3}#jstree-marker{position:absolute;top:0;left:0;margin:-5px 0 0 0;padding:0;border-right:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid;width:0;height:0;font-size:0;line-height:0}#jstree-dnd{line-height:16px;margin:0;padding:4px}#jstree-dnd .jstree-icon,#jstree-dnd .jstree-copy{display:inline-block;text-decoration:none;margin:0 2px 0 0;padding:0;width:16px;height:16px}#jstree-dnd .jstree-ok{background:green}#jstree-dnd .jstree-er{background:red}#jstree-dnd .jstree-copy{margin:0 2px 0 2px}.jstree-default .jstree-node,.jstree-default .jstree-icon{background-repeat:no-repeat;background-color:transparent}.jstree-default .jstree-anchor,.jstree-default .jstree-animated,.jstree-default .jstree-wholerow{transition:background-color .15s,box-shadow .15s}.jstree-default .jstree-hovered{background:#e7f4f9;border-radius:2px;box-shadow:inset 0 0 1px #cccccc}.jstree-default .jstree-context{background:#e7f4f9;border-radius:2px;box-shadow:inset 0 0 1px #cccccc}.jstree-default .jstree-clicked{background:#beebff;border-radius:2px;box-shadow:inset 0 0 1px #999999}.jstree-default .jstree-no-icons .jstree-anchor>.jstree-themeicon{display:none}.jstree-default .jstree-disabled{background:transparent;color:#666666}.jstree-default .jstree-disabled.jstree-hovered{background:transparent;box-shadow:none}.jstree-default .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default .jstree-disabled>.jstree-icon{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default .jstree-search{font-style:italic;color:#8b0000;font-weight:bold}.jstree-default .jstree-no-checkboxes .jstree-checkbox{display:none !important}.jstree-default.jstree-checkbox-no-clicked .jstree-clicked{background:transparent;box-shadow:none}.jstree-default.jstree-checkbox-no-clicked .jstree-clicked.jstree-hovered{background:#e7f4f9}.jstree-default.jstree-checkbox-no-clicked>.jstree-wholerow-ul .jstree-wholerow-clicked{background:transparent}.jstree-default.jstree-checkbox-no-clicked>.jstree-wholerow-ul .jstree-wholerow-clicked.jstree-wholerow-hovered{background:#e7f4f9}.jstree-default>.jstree-striped{min-width:100%;display:inline-block;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAkCAMAAAB/qqA+AAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlMNAMM9s3UAAAAXSURBVHjajcEBAQAAAIKg/H/aCQZ70AUBjAATb6YPDgAAAABJRU5ErkJggg==") left top repeat}.jstree-default>.jstree-wholerow-ul .jstree-hovered,.jstree-default>.jstree-wholerow-ul .jstree-clicked{background:transparent;box-shadow:none;border-radius:0}.jstree-default .jstree-wholerow{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.jstree-default .jstree-wholerow-hovered{background:#e7f4f9}.jstree-default .jstree-wholerow-clicked{background:#beebff;background:-webkit-linear-gradient(top, #beebff 0, #a8e4ff 100%);background:linear-gradient(to bottom, #beebff 0, #a8e4ff 100%)}.jstree-default .jstree-node{min-height:24px;line-height:24px;margin-left:24px;min-width:24px}.jstree-default .jstree-anchor{line-height:24px;height:24px}.jstree-default .jstree-icon{width:24px;height:24px;line-height:24px}.jstree-default .jstree-icon:empty{width:24px;height:24px;line-height:24px}.jstree-default.jstree-rtl .jstree-node{margin-right:24px}.jstree-default .jstree-wholerow{height:24px}.jstree-default .jstree-node,.jstree-default .jstree-icon{background-image:url("32px.png")}.jstree-default .jstree-node{background-position:-292px -4px;background-repeat:repeat-y}.jstree-default .jstree-last{background:transparent}.jstree-default .jstree-open>.jstree-ocl{background-position:-132px -4px}.jstree-default .jstree-closed>.jstree-ocl{background-position:-100px -4px}.jstree-default .jstree-leaf>.jstree-ocl{background-position:-68px -4px}.jstree-default .jstree-themeicon{background-position:-260px -4px}.jstree-default>.jstree-no-dots .jstree-node,.jstree-default>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:transparent}.jstree-default>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-36px -4px}.jstree-default>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-4px -4px}.jstree-default .jstree-disabled{background:transparent}.jstree-default .jstree-disabled.jstree-hovered{background:transparent}.jstree-default .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default .jstree-checkbox{background-position:-164px -4px}.jstree-default .jstree-checkbox:hover{background-position:-164px -36px}.jstree-default.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox,.jstree-default .jstree-checked>.jstree-checkbox{background-position:-228px -4px}.jstree-default.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover,.jstree-default .jstree-checked>.jstree-checkbox:hover{background-position:-228px -36px}.jstree-default .jstree-anchor>.jstree-undetermined{background-position:-196px -4px}.jstree-default .jstree-anchor>.jstree-undetermined:hover{background-position:-196px -36px}.jstree-default .jstree-checkbox-disabled{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default>.jstree-striped{background-size:auto 48px}.jstree-default.jstree-rtl .jstree-node{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==");background-position:100% 1px;background-repeat:repeat-y}.jstree-default.jstree-rtl .jstree-last{background:transparent}.jstree-default.jstree-rtl .jstree-open>.jstree-ocl{background-position:-132px -36px}.jstree-default.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-100px -36px}.jstree-default.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-68px -36px}.jstree-default.jstree-rtl>.jstree-no-dots .jstree-node,.jstree-default.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:transparent}.jstree-default.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-36px -36px}.jstree-default.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-4px -36px}.jstree-default .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url("throbber.gif") center center no-repeat}.jstree-default .jstree-file{background:url("32px.png") -100px -68px no-repeat}.jstree-default .jstree-folder{background:url("32px.png") -260px -4px no-repeat}.jstree-default>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}#jstree-dnd.jstree-default{line-height:24px;padding:0 4px}#jstree-dnd.jstree-default .jstree-ok,#jstree-dnd.jstree-default .jstree-er{background-image:url("32px.png");background-repeat:no-repeat;background-color:transparent}#jstree-dnd.jstree-default i{background:transparent;width:24px;height:24px;line-height:24px}#jstree-dnd.jstree-default .jstree-ok{background-position:-4px -68px}#jstree-dnd.jstree-default .jstree-er{background-position:-36px -68px}.jstree-default .jstree-ellipsis{overflow:hidden}.jstree-default .jstree-ellipsis .jstree-anchor{width:calc(100% - 29px);text-overflow:ellipsis;overflow:hidden}.jstree-default.jstree-rtl .jstree-node{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==")}.jstree-default.jstree-rtl .jstree-last{background:transparent}.jstree-default-small .jstree-node{min-height:18px;line-height:18px;margin-left:18px;min-width:18px}.jstree-default-small .jstree-anchor{line-height:18px;height:18px}.jstree-default-small .jstree-icon{width:18px;height:18px;line-height:18px}.jstree-default-small .jstree-icon:empty{width:18px;height:18px;line-height:18px}.jstree-default-small.jstree-rtl .jstree-node{margin-right:18px}.jstree-default-small .jstree-wholerow{height:18px}.jstree-default-small .jstree-node,.jstree-default-small .jstree-icon{background-image:url("32px.png")}.jstree-default-small .jstree-node{background-position:-295px -7px;background-repeat:repeat-y}.jstree-default-small .jstree-last{background:transparent}.jstree-default-small .jstree-open>.jstree-ocl{background-position:-135px -7px}.jstree-default-small .jstree-closed>.jstree-ocl{background-position:-103px -7px}.jstree-default-small .jstree-leaf>.jstree-ocl{background-position:-71px -7px}.jstree-default-small .jstree-themeicon{background-position:-263px -7px}.jstree-default-small>.jstree-no-dots .jstree-node,.jstree-default-small>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:transparent}.jstree-default-small>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-39px -7px}.jstree-default-small>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-7px -7px}.jstree-default-small .jstree-disabled{background:transparent}.jstree-default-small .jstree-disabled.jstree-hovered{background:transparent}.jstree-default-small .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default-small .jstree-checkbox{background-position:-167px -7px}.jstree-default-small .jstree-checkbox:hover{background-position:-167px -39px}.jstree-default-small.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox,.jstree-default-small .jstree-checked>.jstree-checkbox{background-position:-231px -7px}.jstree-default-small.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover,.jstree-default-small .jstree-checked>.jstree-checkbox:hover{background-position:-231px -39px}.jstree-default-small .jstree-anchor>.jstree-undetermined{background-position:-199px -7px}.jstree-default-small .jstree-anchor>.jstree-undetermined:hover{background-position:-199px -39px}.jstree-default-small .jstree-checkbox-disabled{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default-small>.jstree-striped{background-size:auto 36px}.jstree-default-small.jstree-rtl .jstree-node{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==");background-position:100% 1px;background-repeat:repeat-y}.jstree-default-small.jstree-rtl .jstree-last{background:transparent}.jstree-default-small.jstree-rtl .jstree-open>.jstree-ocl{background-position:-135px -39px}.jstree-default-small.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-103px -39px}.jstree-default-small.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-71px -39px}.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-node,.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:transparent}.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-39px -39px}.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-7px -39px}.jstree-default-small .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default-small>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url("throbber.gif") center center no-repeat}.jstree-default-small .jstree-file{background:url("32px.png") -103px -71px no-repeat}.jstree-default-small .jstree-folder{background:url("32px.png") -263px -7px no-repeat}.jstree-default-small>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}#jstree-dnd.jstree-default-small{line-height:18px;padding:0 4px}#jstree-dnd.jstree-default-small .jstree-ok,#jstree-dnd.jstree-default-small .jstree-er{background-image:url("32px.png");background-repeat:no-repeat;background-color:transparent}#jstree-dnd.jstree-default-small i{background:transparent;width:18px;height:18px;line-height:18px}#jstree-dnd.jstree-default-small .jstree-ok{background-position:-7px -71px}#jstree-dnd.jstree-default-small .jstree-er{background-position:-39px -71px}.jstree-default-small .jstree-ellipsis{overflow:hidden}.jstree-default-small .jstree-ellipsis .jstree-anchor{width:calc(100% - 23px);text-overflow:ellipsis;overflow:hidden}.jstree-default-small.jstree-rtl .jstree-node{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAACAQMAAABv1h6PAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMHBgAAiABBI4gz9AAAAABJRU5ErkJggg==")}.jstree-default-small.jstree-rtl .jstree-last{background:transparent}.jstree-default-large .jstree-node{min-height:32px;line-height:32px;margin-left:32px;min-width:32px}.jstree-default-large .jstree-anchor{line-height:32px;height:32px}.jstree-default-large .jstree-icon{width:32px;height:32px;line-height:32px}.jstree-default-large .jstree-icon:empty{width:32px;height:32px;line-height:32px}.jstree-default-large.jstree-rtl .jstree-node{margin-right:32px}.jstree-default-large .jstree-wholerow{height:32px}.jstree-default-large .jstree-node,.jstree-default-large .jstree-icon{background-image:url("32px.png")}.jstree-default-large .jstree-node{background-position:-288px 0;background-repeat:repeat-y}.jstree-default-large .jstree-last{background:transparent}.jstree-default-large .jstree-open>.jstree-ocl{background-position:-128px 0}.jstree-default-large .jstree-closed>.jstree-ocl{background-position:-96px 0}.jstree-default-large .jstree-leaf>.jstree-ocl{background-position:-64px 0}.jstree-default-large .jstree-themeicon{background-position:-256px 0}.jstree-default-large>.jstree-no-dots .jstree-node,.jstree-default-large>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:transparent}.jstree-default-large>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-32px 0}.jstree-default-large>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:0 0}.jstree-default-large .jstree-disabled{background:transparent}.jstree-default-large .jstree-disabled.jstree-hovered{background:transparent}.jstree-default-large .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default-large .jstree-checkbox{background-position:-160px 0}.jstree-default-large .jstree-checkbox:hover{background-position:-160px -32px}.jstree-default-large.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox,.jstree-default-large .jstree-checked>.jstree-checkbox{background-position:-224px 0}.jstree-default-large.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover,.jstree-default-large .jstree-checked>.jstree-checkbox:hover{background-position:-224px -32px}.jstree-default-large .jstree-anchor>.jstree-undetermined{background-position:-192px 0}.jstree-default-large .jstree-anchor>.jstree-undetermined:hover{background-position:-192px -32px}.jstree-default-large .jstree-checkbox-disabled{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default-large>.jstree-striped{background-size:auto 64px}.jstree-default-large.jstree-rtl .jstree-node{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==");background-position:100% 1px;background-repeat:repeat-y}.jstree-default-large.jstree-rtl .jstree-last{background:transparent}.jstree-default-large.jstree-rtl .jstree-open>.jstree-ocl{background-position:-128px -32px}.jstree-default-large.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-96px -32px}.jstree-default-large.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-64px -32px}.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-node,.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:transparent}.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-32px -32px}.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:0 -32px}.jstree-default-large .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default-large>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url("throbber.gif") center center no-repeat}.jstree-default-large .jstree-file{background:url("32px.png") -96px -64px no-repeat}.jstree-default-large .jstree-folder{background:url("32px.png") -256px 0 no-repeat}.jstree-default-large>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}#jstree-dnd.jstree-default-large{line-height:32px;padding:0 4px}#jstree-dnd.jstree-default-large .jstree-ok,#jstree-dnd.jstree-default-large .jstree-er{background-image:url("32px.png");background-repeat:no-repeat;background-color:transparent}#jstree-dnd.jstree-default-large i{background:transparent;width:32px;height:32px;line-height:32px}#jstree-dnd.jstree-default-large .jstree-ok{background-position:0 -64px}#jstree-dnd.jstree-default-large .jstree-er{background-position:-32px -64px}.jstree-default-large .jstree-ellipsis{overflow:hidden}.jstree-default-large .jstree-ellipsis .jstree-anchor{width:calc(100% - 37px);text-overflow:ellipsis;overflow:hidden}.jstree-default-large.jstree-rtl .jstree-node{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAACAQMAAAAD0EyKAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjgIIGBgABCgCBvVLXcAAAAABJRU5ErkJggg==")}.jstree-default-large.jstree-rtl .jstree-last{background:transparent}@media (max-width:768px){#jstree-dnd.jstree-dnd-responsive{line-height:40px;font-weight:bold;font-size:1.1em;text-shadow:1px 1px white}#jstree-dnd.jstree-dnd-responsive>i{background:transparent;width:40px;height:40px}#jstree-dnd.jstree-dnd-responsive>.jstree-ok{background-image:url("40px.png");background-position:0 -200px;background-size:120px 240px}#jstree-dnd.jstree-dnd-responsive>.jstree-er{background-image:url("40px.png");background-position:-40px -200px;background-size:120px 240px}#jstree-marker.jstree-dnd-responsive{border-left-width:10px;border-top-width:10px;border-bottom-width:10px;margin-top:-10px}}@media (max-width:768px){.jstree-default-responsive .jstree-icon{background-image:url("40px.png")}.jstree-default-responsive .jstree-node,.jstree-default-responsive .jstree-leaf>.jstree-ocl{background:transparent}.jstree-default-responsive .jstree-node{min-height:40px;line-height:40px;margin-left:40px;min-width:40px;white-space:nowrap}.jstree-default-responsive .jstree-anchor{line-height:40px;height:40px}.jstree-default-responsive .jstree-icon,.jstree-default-responsive .jstree-icon:empty{width:40px;height:40px;line-height:40px}.jstree-default-responsive>.jstree-container-ul>.jstree-node{margin-left:0}.jstree-default-responsive.jstree-rtl .jstree-node{margin-left:0;margin-right:40px;background:transparent}.jstree-default-responsive.jstree-rtl .jstree-container-ul>.jstree-node{margin-right:0}.jstree-default-responsive .jstree-ocl,.jstree-default-responsive .jstree-themeicon,.jstree-default-responsive .jstree-checkbox{background-size:120px 240px}.jstree-default-responsive .jstree-leaf>.jstree-ocl,.jstree-default-responsive.jstree-rtl .jstree-leaf>.jstree-ocl{background:transparent}.jstree-default-responsive .jstree-open>.jstree-ocl{background-position:0 0 !important}.jstree-default-responsive .jstree-closed>.jstree-ocl{background-position:0 -40px !important}.jstree-default-responsive.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-40px 0 !important}.jstree-default-responsive .jstree-themeicon{background-position:-40px -40px}.jstree-default-responsive .jstree-checkbox,.jstree-default-responsive .jstree-checkbox:hover{background-position:-40px -80px}.jstree-default-responsive.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox,.jstree-default-responsive.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover,.jstree-default-responsive .jstree-checked>.jstree-checkbox,.jstree-default-responsive .jstree-checked>.jstree-checkbox:hover{background-position:0 -80px}.jstree-default-responsive .jstree-anchor>.jstree-undetermined,.jstree-default-responsive .jstree-anchor>.jstree-undetermined:hover{background-position:0 -120px}.jstree-default-responsive .jstree-anchor{font-weight:bold;font-size:1.1em;text-shadow:1px 1px white}.jstree-default-responsive>.jstree-striped{background:transparent}.jstree-default-responsive .jstree-wholerow{border-top:1px solid rgba(255,255,255,0.7);border-bottom:1px solid rgba(64,64,64,0.2);background:#ebebeb;height:40px}.jstree-default-responsive .jstree-wholerow-hovered{background:#e7f4f9}.jstree-default-responsive .jstree-wholerow-clicked{background:#beebff}.jstree-default-responsive .jstree-children .jstree-last>.jstree-wholerow{box-shadow:inset 0 -6px 3px -5px #666666}.jstree-default-responsive .jstree-children .jstree-open>.jstree-wholerow{box-shadow:inset 0 6px 3px -5px #666666;border-top:0}.jstree-default-responsive .jstree-children .jstree-open+.jstree-open{box-shadow:none}.jstree-default-responsive .jstree-node,.jstree-default-responsive .jstree-icon,.jstree-default-responsive .jstree-node>.jstree-ocl,.jstree-default-responsive .jstree-themeicon,.jstree-default-responsive .jstree-checkbox{background-image:url("40px.png");background-size:120px 240px}.jstree-default-responsive .jstree-node{background-position:-80px 0;background-repeat:repeat-y}.jstree-default-responsive .jstree-last{background:transparent}.jstree-default-responsive .jstree-leaf>.jstree-ocl{background-position:-40px -120px}.jstree-default-responsive .jstree-last>.jstree-ocl{background-position:-40px -160px}.jstree-default-responsive .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default-responsive .jstree-file{background:url("40px.png") 0 -160px no-repeat;background-size:120px 240px}.jstree-default-responsive .jstree-folder{background:url("40px.png") -40px -40px no-repeat;background-size:120px 240px}.jstree-default-responsive>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}}
|
1 |
+
.jstree-node,.jstree-children,.jstree-container-ul{display:block;margin:0;padding:0;list-style-type:none;list-style-image:none}.jstree-node{white-space:nowrap}.jstree-anchor{display:inline-block;color:black;white-space:nowrap;padding:0 4px 0 1px;margin:0;vertical-align:top}.jstree-anchor:focus{outline:0}.jstree-anchor,.jstree-anchor:link,.jstree-anchor:visited,.jstree-anchor:hover,.jstree-anchor:active{text-decoration:none;color:inherit}.jstree-icon{display:inline-block;text-decoration:none;margin:0;padding:0;vertical-align:top;text-align:center}.jstree-icon:empty{display:inline-block;text-decoration:none;margin:0;padding:0;vertical-align:top;text-align:center}.jstree-ocl{cursor:pointer}.jstree-leaf>.jstree-ocl{cursor:default}.jstree .jstree-open>.jstree-children{display:block}.jstree .jstree-closed>.jstree-children,.jstree .jstree-leaf>.jstree-children{display:none}.jstree-anchor>.jstree-themeicon{margin-right:2px}.jstree-no-icons .jstree-themeicon,.jstree-anchor>.jstree-themeicon-hidden{display:none}.jstree-hidden,.jstree-node.jstree-hidden{display:none}.jstree-rtl .jstree-anchor{padding:0 1px 0 4px}.jstree-rtl .jstree-anchor>.jstree-themeicon{margin-left:2px;margin-right:0}.jstree-rtl .jstree-node{margin-left:0}.jstree-rtl .jstree-container-ul>.jstree-node{margin-right:0}.jstree-wholerow-ul{position:relative;display:inline-block;min-width:100%}.jstree-wholerow-ul .jstree-leaf>.jstree-ocl{cursor:pointer}.jstree-wholerow-ul .jstree-anchor,.jstree-wholerow-ul .jstree-icon{position:relative}.jstree-wholerow-ul .jstree-wholerow{width:100%;cursor:pointer;position:absolute;left:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.jstree-contextmenu .jstree-anchor{-webkit-user-select:none;-webkit-touch-callout:none;user-select:none}.vakata-context{display:none}.vakata-context,.vakata-context ul{margin:0;padding:2px;position:absolute;background:#f5f5f5;border:1px solid #979797;box-shadow:2px 2px 2px #999999}.vakata-context ul{list-style:none;left:100%;margin-top:-2.7em;margin-left:-4px}.vakata-context .vakata-context-right ul{left:auto;right:100%;margin-left:auto;margin-right:-4px}.vakata-context li{list-style:none}.vakata-context li>a{display:block;padding:0 2em 0 2em;text-decoration:none;width:auto;color:black;white-space:nowrap;line-height:2.4em;text-shadow:1px 1px 0 white;border-radius:1px}.vakata-context li>a:hover{position:relative;background-color:#e8eff7;box-shadow:0 0 2px #0a6aa1}.vakata-context li>a.vakata-context-parent{background-image:url("data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAIORI4JlrqN1oMSnmmZDQUAOw==");background-position:right center;background-repeat:no-repeat}.vakata-context li>a:focus{outline:0}.vakata-context .vakata-context-no-icons{margin-left:0}.vakata-context .vakata-context-hover>a{position:relative;background-color:#e8eff7;box-shadow:0 0 2px #0a6aa1}.vakata-context .vakata-context-separator>a,.vakata-context .vakata-context-separator>a:hover{background:white;border:0;border-top:1px solid #e2e3e3;height:1px;min-height:1px;max-height:1px;padding:0;margin:0 0 0 2.4em;border-left:1px solid #e0e0e0;text-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;border-radius:0}.vakata-context .vakata-contextmenu-disabled a,.vakata-context .vakata-contextmenu-disabled a:hover{color:silver;background-color:transparent;border:0;box-shadow:0 0 0}.vakata-context .vakata-contextmenu-disabled>a>i{filter:grayscale(100%)}.vakata-context li>a>i{text-decoration:none;display:inline-block;width:2.4em;height:2.4em;background:transparent;margin:0 0 0 -2em;vertical-align:top;text-align:center;line-height:2.4em}.vakata-context li>a>i:empty{width:2.4em;line-height:2.4em}.vakata-context li>a .vakata-contextmenu-sep{display:inline-block;width:1px;height:2.4em;background:white;margin:0 .5em 0 0;border-left:1px solid #e2e3e3}.vakata-context .vakata-contextmenu-shortcut{font-size:.8em;color:silver;opacity:.5;display:none}.vakata-context-rtl ul{left:auto;right:100%;margin-left:auto;margin-right:-4px}.vakata-context-rtl li>a.vakata-context-parent{background-image:url("data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAINjI+AC7rWHIsPtmoxLAA7");background-position:left center;background-repeat:no-repeat}.vakata-context-rtl .vakata-context-separator>a{margin:0 2.4em 0 0;border-left:0;border-right:1px solid #e2e3e3}.vakata-context-rtl .vakata-context-left ul{right:auto;left:100%;margin-left:-4px;margin-right:auto}.vakata-context-rtl li>a>i{margin:0 -2em 0 0}.vakata-context-rtl li>a .vakata-contextmenu-sep{margin:0 0 0 .5em;border-left-color:white;background:#e2e3e3}#jstree-marker{position:absolute;top:0;left:0;margin:-5px 0 0 0;padding:0;border-right:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid;width:0;height:0;font-size:0;line-height:0}#jstree-dnd{line-height:16px;margin:0;padding:4px}#jstree-dnd .jstree-icon,#jstree-dnd .jstree-copy{display:inline-block;text-decoration:none;margin:0 2px 0 0;padding:0;width:16px;height:16px}#jstree-dnd .jstree-ok{background:green}#jstree-dnd .jstree-er{background:red}#jstree-dnd .jstree-copy{margin:0 2px 0 2px}.jstree-default .jstree-node,.jstree-default .jstree-icon{background-repeat:no-repeat;background-color:transparent}.jstree-default .jstree-anchor,.jstree-default .jstree-animated,.jstree-default .jstree-wholerow{transition:background-color .15s,box-shadow .15s}.jstree-default .jstree-hovered{background:#e7f4f9;border-radius:2px;box-shadow:inset 0 0 1px #cccccc}.jstree-default .jstree-context{background:#e7f4f9;border-radius:2px;box-shadow:inset 0 0 1px #cccccc}.jstree-default .jstree-clicked{background:#beebff;border-radius:2px;box-shadow:inset 0 0 1px #999999}.jstree-default .jstree-no-icons .jstree-anchor>.jstree-themeicon{display:none}.jstree-default .jstree-disabled{background:transparent;color:#666666}.jstree-default .jstree-disabled.jstree-hovered{background:transparent;box-shadow:none}.jstree-default .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default .jstree-disabled>.jstree-icon{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default .jstree-search{font-style:italic;color:#8b0000;font-weight:bold}.jstree-default .jstree-no-checkboxes .jstree-checkbox{display:none !important}.jstree-default.jstree-checkbox-no-clicked .jstree-clicked{background:transparent;box-shadow:none}.jstree-default.jstree-checkbox-no-clicked .jstree-clicked.jstree-hovered{background:#e7f4f9}.jstree-default.jstree-checkbox-no-clicked>.jstree-wholerow-ul .jstree-wholerow-clicked{background:transparent}.jstree-default.jstree-checkbox-no-clicked>.jstree-wholerow-ul .jstree-wholerow-clicked.jstree-wholerow-hovered{background:#e7f4f9}.jstree-default>.jstree-striped{min-width:100%;display:inline-block;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAkCAMAAAB/qqA+AAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlMNAMM9s3UAAAAXSURBVHjajcEBAQAAAIKg/H/aCQZ70AUBjAATb6YPDgAAAABJRU5ErkJggg==") left top repeat}.jstree-default>.jstree-wholerow-ul .jstree-hovered,.jstree-default>.jstree-wholerow-ul .jstree-clicked{background:transparent;box-shadow:none;border-radius:0}.jstree-default .jstree-wholerow{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.jstree-default .jstree-wholerow-hovered{background:#e7f4f9}.jstree-default .jstree-wholerow-clicked{background:#beebff;background:-webkit-linear-gradient(top, #beebff 0, #a8e4ff 100%);background:linear-gradient(to bottom, #beebff 0, #a8e4ff 100%)}.jstree-default .jstree-node{min-height:24px;line-height:24px;margin-left:24px;min-width:24px}.jstree-default .jstree-anchor{line-height:24px;height:24px}.jstree-default .jstree-icon{width:24px;height:24px;line-height:24px}.jstree-default .jstree-icon:empty{width:24px;height:24px;line-height:24px}.jstree-default.jstree-rtl .jstree-node{margin-right:24px}.jstree-default .jstree-wholerow{height:24px}.jstree-default .jstree-node,.jstree-default .jstree-icon{background-image:url("32px.png")}.jstree-default .jstree-node{background-position:-292px -4px;background-repeat:repeat-y}.jstree-default .jstree-last{background:transparent}.jstree-default .jstree-open>.jstree-ocl{background-position:-132px -4px}.jstree-default .jstree-closed>.jstree-ocl{background-position:-100px -4px}.jstree-default .jstree-leaf>.jstree-ocl{background-position:-68px -4px}.jstree-default .jstree-themeicon{background-position:-260px -4px}.jstree-default>.jstree-no-dots .jstree-node,.jstree-default>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:transparent}.jstree-default>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-36px -4px}.jstree-default>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-4px -4px}.jstree-default .jstree-disabled{background:transparent}.jstree-default .jstree-disabled.jstree-hovered{background:transparent}.jstree-default .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default .jstree-checkbox{background-position:-164px -4px}.jstree-default .jstree-checkbox:hover{background-position:-164px -36px}.jstree-default.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox,.jstree-default .jstree-checked>.jstree-checkbox{background-position:-228px -4px}.jstree-default.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover,.jstree-default .jstree-checked>.jstree-checkbox:hover{background-position:-228px -36px}.jstree-default .jstree-anchor>.jstree-undetermined{background-position:-196px -4px}.jstree-default .jstree-anchor>.jstree-undetermined:hover{background-position:-196px -36px}.jstree-default .jstree-checkbox-disabled{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default>.jstree-striped{background-size:auto 48px}.jstree-default.jstree-rtl .jstree-node{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==");background-position:100% 1px;background-repeat:repeat-y}.jstree-default.jstree-rtl .jstree-last{background:transparent}.jstree-default.jstree-rtl .jstree-open>.jstree-ocl{background-position:-132px -36px}.jstree-default.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-100px -36px}.jstree-default.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-68px -36px}.jstree-default.jstree-rtl>.jstree-no-dots .jstree-node,.jstree-default.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:transparent}.jstree-default.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-36px -36px}.jstree-default.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-4px -36px}.jstree-default .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url("throbber.gif") center center no-repeat}.jstree-default .jstree-file{background:url("32px.png") -100px -68px no-repeat}.jstree-default .jstree-folder{background:url("32px.png") -260px -4px no-repeat}.jstree-default>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}#jstree-dnd.jstree-default{line-height:24px;padding:0 4px}#jstree-dnd.jstree-default .jstree-ok,#jstree-dnd.jstree-default .jstree-er{background-image:url("32px.png");background-repeat:no-repeat;background-color:transparent}#jstree-dnd.jstree-default i{background:transparent;width:24px;height:24px;line-height:24px}#jstree-dnd.jstree-default .jstree-ok{background-position:-4px -68px}#jstree-dnd.jstree-default .jstree-er{background-position:-36px -68px}.jstree-default .jstree-ellipsis{overflow:hidden}.jstree-default .jstree-ellipsis .jstree-anchor{width:calc(100% - 29px);text-overflow:ellipsis;overflow:hidden}.jstree-default.jstree-rtl .jstree-node{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==")}.jstree-default.jstree-rtl .jstree-last{background:transparent}.jstree-default-small .jstree-node{min-height:18px;line-height:18px;margin-left:18px;min-width:18px}.jstree-default-small .jstree-anchor{line-height:18px;height:18px}.jstree-default-small .jstree-icon{width:18px;height:18px;line-height:18px}.jstree-default-small .jstree-icon:empty{width:18px;height:18px;line-height:18px}.jstree-default-small.jstree-rtl .jstree-node{margin-right:18px}.jstree-default-small .jstree-wholerow{height:18px}.jstree-default-small .jstree-node,.jstree-default-small .jstree-icon{background-image:url("32px.png")}.jstree-default-small .jstree-node{background-position:-295px -7px;background-repeat:repeat-y}.jstree-default-small .jstree-last{background:transparent}.jstree-default-small .jstree-open>.jstree-ocl{background-position:-135px -7px}.jstree-default-small .jstree-closed>.jstree-ocl{background-position:-103px -7px}.jstree-default-small .jstree-leaf>.jstree-ocl{background-position:-71px -7px}.jstree-default-small .jstree-themeicon{background-position:-263px -7px}.jstree-default-small>.jstree-no-dots .jstree-node,.jstree-default-small>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:transparent}.jstree-default-small>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-39px -7px}.jstree-default-small>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-7px -7px}.jstree-default-small .jstree-disabled{background:transparent}.jstree-default-small .jstree-disabled.jstree-hovered{background:transparent}.jstree-default-small .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default-small .jstree-checkbox{background-position:-167px -7px}.jstree-default-small .jstree-checkbox:hover{background-position:-167px -39px}.jstree-default-small.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox,.jstree-default-small .jstree-checked>.jstree-checkbox{background-position:-231px -7px}.jstree-default-small.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover,.jstree-default-small .jstree-checked>.jstree-checkbox:hover{background-position:-231px -39px}.jstree-default-small .jstree-anchor>.jstree-undetermined{background-position:-199px -7px}.jstree-default-small .jstree-anchor>.jstree-undetermined:hover{background-position:-199px -39px}.jstree-default-small .jstree-checkbox-disabled{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default-small>.jstree-striped{background-size:auto 36px}.jstree-default-small.jstree-rtl .jstree-node{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==");background-position:100% 1px;background-repeat:repeat-y}.jstree-default-small.jstree-rtl .jstree-last{background:transparent}.jstree-default-small.jstree-rtl .jstree-open>.jstree-ocl{background-position:-135px -39px}.jstree-default-small.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-103px -39px}.jstree-default-small.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-71px -39px}.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-node,.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:transparent}.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-39px -39px}.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-7px -39px}.jstree-default-small .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default-small>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url("throbber.gif") center center no-repeat}.jstree-default-small .jstree-file{background:url("32px.png") -103px -71px no-repeat}.jstree-default-small .jstree-folder{background:url("32px.png") -263px -7px no-repeat}.jstree-default-small>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}#jstree-dnd.jstree-default-small{line-height:18px;padding:0 4px}#jstree-dnd.jstree-default-small .jstree-ok,#jstree-dnd.jstree-default-small .jstree-er{background-image:url("32px.png");background-repeat:no-repeat;background-color:transparent}#jstree-dnd.jstree-default-small i{background:transparent;width:18px;height:18px;line-height:18px}#jstree-dnd.jstree-default-small .jstree-ok{background-position:-7px -71px}#jstree-dnd.jstree-default-small .jstree-er{background-position:-39px -71px}.jstree-default-small .jstree-ellipsis{overflow:hidden}.jstree-default-small .jstree-ellipsis .jstree-anchor{width:calc(100% - 23px);text-overflow:ellipsis;overflow:hidden}.jstree-default-small.jstree-rtl .jstree-node{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAACAQMAAABv1h6PAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMHBgAAiABBI4gz9AAAAABJRU5ErkJggg==")}.jstree-default-small.jstree-rtl .jstree-last{background:transparent}.jstree-default-large .jstree-node{min-height:32px;line-height:32px;margin-left:32px;min-width:32px}.jstree-default-large .jstree-anchor{line-height:32px;height:32px}.jstree-default-large .jstree-icon{width:32px;height:32px;line-height:32px}.jstree-default-large .jstree-icon:empty{width:32px;height:32px;line-height:32px}.jstree-default-large.jstree-rtl .jstree-node{margin-right:32px}.jstree-default-large .jstree-wholerow{height:32px}.jstree-default-large .jstree-node,.jstree-default-large .jstree-icon{background-image:url("32px.png")}.jstree-default-large .jstree-node{background-position:-288px 0;background-repeat:repeat-y}.jstree-default-large .jstree-last{background:transparent}.jstree-default-large .jstree-open>.jstree-ocl{background-position:-128px 0}.jstree-default-large .jstree-closed>.jstree-ocl{background-position:-96px 0}.jstree-default-large .jstree-leaf>.jstree-ocl{background-position:-64px 0}.jstree-default-large .jstree-themeicon{background-position:-256px 0}.jstree-default-large>.jstree-no-dots .jstree-node,.jstree-default-large>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:transparent}.jstree-default-large>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-32px 0}.jstree-default-large>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:0 0}.jstree-default-large .jstree-disabled{background:transparent}.jstree-default-large .jstree-disabled.jstree-hovered{background:transparent}.jstree-default-large .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default-large .jstree-checkbox{background-position:-160px 0}.jstree-default-large .jstree-checkbox:hover{background-position:-160px -32px}.jstree-default-large.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox,.jstree-default-large .jstree-checked>.jstree-checkbox{background-position:-224px 0}.jstree-default-large.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover,.jstree-default-large .jstree-checked>.jstree-checkbox:hover{background-position:-224px -32px}.jstree-default-large .jstree-anchor>.jstree-undetermined{background-position:-192px 0}.jstree-default-large .jstree-anchor>.jstree-undetermined:hover{background-position:-192px -32px}.jstree-default-large .jstree-checkbox-disabled{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default-large>.jstree-striped{background-size:auto 64px}.jstree-default-large.jstree-rtl .jstree-node{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==");background-position:100% 1px;background-repeat:repeat-y}.jstree-default-large.jstree-rtl .jstree-last{background:transparent}.jstree-default-large.jstree-rtl .jstree-open>.jstree-ocl{background-position:-128px -32px}.jstree-default-large.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-96px -32px}.jstree-default-large.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-64px -32px}.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-node,.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:transparent}.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-32px -32px}.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:0 -32px}.jstree-default-large .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default-large>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url("throbber.gif") center center no-repeat}.jstree-default-large .jstree-file{background:url("32px.png") -96px -64px no-repeat}.jstree-default-large .jstree-folder{background:url("32px.png") -256px 0 no-repeat}.jstree-default-large>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}#jstree-dnd.jstree-default-large{line-height:32px;padding:0 4px}#jstree-dnd.jstree-default-large .jstree-ok,#jstree-dnd.jstree-default-large .jstree-er{background-image:url("32px.png");background-repeat:no-repeat;background-color:transparent}#jstree-dnd.jstree-default-large i{background:transparent;width:32px;height:32px;line-height:32px}#jstree-dnd.jstree-default-large .jstree-ok{background-position:0 -64px}#jstree-dnd.jstree-default-large .jstree-er{background-position:-32px -64px}.jstree-default-large .jstree-ellipsis{overflow:hidden}.jstree-default-large .jstree-ellipsis .jstree-anchor{width:calc(100% - 37px);text-overflow:ellipsis;overflow:hidden}.jstree-default-large.jstree-rtl .jstree-node{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAACAQMAAAAD0EyKAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjgIIGBgABCgCBvVLXcAAAAABJRU5ErkJggg==")}.jstree-default-large.jstree-rtl .jstree-last{background:transparent}@media (max-width:768px){#jstree-dnd.jstree-dnd-responsive{line-height:40px;font-weight:bold;font-size:1.1em;text-shadow:1px 1px white}#jstree-dnd.jstree-dnd-responsive>i{background:transparent;width:40px;height:40px}#jstree-dnd.jstree-dnd-responsive>.jstree-ok{background-image:url("40px.png");background-position:0 -200px;background-size:120px 240px}#jstree-dnd.jstree-dnd-responsive>.jstree-er{background-image:url("40px.png");background-position:-40px -200px;background-size:120px 240px}#jstree-marker.jstree-dnd-responsive{border-left-width:10px;border-top-width:10px;border-bottom-width:10px;margin-top:-10px}}@media (max-width:768px){.jstree-default-responsive .jstree-icon{background-image:url("40px.png")}.jstree-default-responsive .jstree-node,.jstree-default-responsive .jstree-leaf>.jstree-ocl{background:transparent}.jstree-default-responsive .jstree-node{min-height:40px;line-height:40px;margin-left:40px;min-width:40px;white-space:nowrap}.jstree-default-responsive .jstree-anchor{line-height:40px;height:40px}.jstree-default-responsive .jstree-icon,.jstree-default-responsive .jstree-icon:empty{width:40px;height:40px;line-height:40px}.jstree-default-responsive>.jstree-container-ul>.jstree-node{margin-left:0}.jstree-default-responsive.jstree-rtl .jstree-node{margin-left:0;margin-right:40px;background:transparent}.jstree-default-responsive.jstree-rtl .jstree-container-ul>.jstree-node{margin-right:0}.jstree-default-responsive .jstree-ocl,.jstree-default-responsive .jstree-themeicon,.jstree-default-responsive .jstree-checkbox{background-size:120px 240px}.jstree-default-responsive .jstree-leaf>.jstree-ocl,.jstree-default-responsive.jstree-rtl .jstree-leaf>.jstree-ocl{background:transparent}.jstree-default-responsive .jstree-open>.jstree-ocl{background-position:0 0 !important}.jstree-default-responsive .jstree-closed>.jstree-ocl{background-position:0 -40px !important}.jstree-default-responsive.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-40px 0 !important}.jstree-default-responsive .jstree-themeicon{background-position:-40px -40px}.jstree-default-responsive .jstree-checkbox,.jstree-default-responsive .jstree-checkbox:hover{background-position:-40px -80px}.jstree-default-responsive.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox,.jstree-default-responsive.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover,.jstree-default-responsive .jstree-checked>.jstree-checkbox,.jstree-default-responsive .jstree-checked>.jstree-checkbox:hover{background-position:0 -80px}.jstree-default-responsive .jstree-anchor>.jstree-undetermined,.jstree-default-responsive .jstree-anchor>.jstree-undetermined:hover{background-position:0 -120px}.jstree-default-responsive .jstree-anchor{font-weight:bold;font-size:1.1em;text-shadow:1px 1px white}.jstree-default-responsive>.jstree-striped{background:transparent}.jstree-default-responsive .jstree-wholerow{border-top:1px solid rgba(255,255,255,0.7);border-bottom:1px solid rgba(64,64,64,0.2);background:#ebebeb;height:40px}.jstree-default-responsive .jstree-wholerow-hovered{background:#e7f4f9}.jstree-default-responsive .jstree-wholerow-clicked{background:#beebff}.jstree-default-responsive .jstree-children .jstree-last>.jstree-wholerow{box-shadow:inset 0 -6px 3px -5px #666666}.jstree-default-responsive .jstree-children .jstree-open>.jstree-wholerow{box-shadow:inset 0 6px 3px -5px #666666;border-top:0}.jstree-default-responsive .jstree-children .jstree-open+.jstree-open{box-shadow:none}.jstree-default-responsive .jstree-node,.jstree-default-responsive .jstree-icon,.jstree-default-responsive .jstree-node>.jstree-ocl,.jstree-default-responsive .jstree-themeicon,.jstree-default-responsive .jstree-checkbox{background-image:url("40px.png");background-size:120px 240px}.jstree-default-responsive .jstree-node{background-position:-80px 0;background-repeat:repeat-y}.jstree-default-responsive .jstree-last{background:transparent}.jstree-default-responsive .jstree-leaf>.jstree-ocl{background-position:-40px -120px}.jstree-default-responsive .jstree-last>.jstree-ocl{background-position:-40px -160px}.jstree-default-responsive .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default-responsive .jstree-file{background:url("40px.png") 0 -160px no-repeat;background-size:120px 240px}.jstree-default-responsive .jstree-folder{background:url("40px.png") -40px -40px no-repeat;background-size:120px 240px}.jstree-default-responsive>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}}
|
assets/magnific/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The MIT License (MIT)
|
2 |
+
|
3 |
+
Copyright (c) 2014-2016 Dmitry Semenov, http://dimsemenov.com
|
4 |
+
|
5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6 |
+
this software and associated documentation files (the "Software"), to deal in
|
7 |
+
the Software without restriction, including without limitation the rights to
|
8 |
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
9 |
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
10 |
+
subject to the following conditions:
|
11 |
+
|
12 |
+
The above copyright notice and this permission notice shall be included in all
|
13 |
+
copies or substantial portions of the Software.
|
14 |
+
|
15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
17 |
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
18 |
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
19 |
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
assets/magnific/README.md
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Magnific Popup Repository
|
2 |
+
|
3 |
+
[![Build Status](https://travis-ci.org/dimsemenov/Magnific-Popup.png)](https://travis-ci.org/dimsemenov/Magnific-Popup)
|
4 |
+
[![Flattr](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/thing/1310305/Magnific-Popup-by-dimsemenov)
|
5 |
+
|
6 |
+
Fast, light and responsive lightbox plugin, for jQuery and Zepto.js.
|
7 |
+
|
8 |
+
- [Documentation and getting started guide](http://dimsemenov.com/plugins/magnific-popup/documentation.html).
|
9 |
+
- [Examples and plugin home page](http://dimsemenov.com/plugins/magnific-popup/).
|
10 |
+
- More examples in [CodePen collection](http://codepen.io/collection/nLcqo).
|
11 |
+
|
12 |
+
Optionally, install via Bower `bower install magnific-popup` or npm: `npm install magnific-popup`.
|
13 |
+
[Ruby gem](https://rubygems.org/gems/magnific-popup-rails): `gem install magnific-popup-rails`.
|
14 |
+
|
15 |
+
## Extensions
|
16 |
+
|
17 |
+
- WordPress plugin - [under development](http://dimsemenov.com/plugins/magnific-popup/wordpress.html).
|
18 |
+
- [Drupal module](https://drupal.org/project/magnific_popup).
|
19 |
+
- [Concrete5 add-on](https://github.com/cdowdy/concrete5-Magnific-Popup).
|
20 |
+
- [Redaxo add-on](http://www.redaxo.org/de/download/addons/?addon_id=1131).
|
21 |
+
- [Contao extension](https://github.com/fritzmg/contao-magnific-popup).
|
22 |
+
|
23 |
+
If you created an extension for some CMS, email me and I'll add it to this list.
|
24 |
+
|
25 |
+
## Location of stuff
|
26 |
+
|
27 |
+
- Generated popup JS and CSS files are in folder [dist/](https://github.com/dimsemenov/Magnific-Popup/tree/master/dist). (Online build tool is on [documentation page](http://dimsemenov.com/plugins/magnific-popup/documentation.html)).
|
28 |
+
- Source files are in folder [src/](https://github.com/dimsemenov/Magnific-Popup/tree/master/src). They include [Sass CSS file](https://github.com/dimsemenov/Magnific-Popup/blob/master/src/css/main.scss) and js parts (edit them if you wish to submit commit).
|
29 |
+
- Website (examples & documentation) is in folder [website/](https://github.com/dimsemenov/Magnific-Popup/tree/master/website).
|
30 |
+
- Documentation page itself is in [website/documentation.md](https://github.com/dimsemenov/Magnific-Popup/blob/master/website/documentation.md) (contributions to it are very welcome).
|
31 |
+
|
32 |
+
|
33 |
+
|
34 |
+
## Using Magnific Popup?
|
35 |
+
|
36 |
+
If you used Magnific Popup in some interesting way, or on site of popular brand, I'd be very grateful if you <a href='mailto:diiiimaaaa@gmail.com?subject="Site that uses Magnific Popup"'>email me</a> a link to it.
|
37 |
+
|
38 |
+
|
39 |
+
## Build
|
40 |
+
|
41 |
+
To compile Magnific Popup by yourself, first of make sure that you have [Node.js](http://nodejs.org/), [Grunt.js](https://github.com/cowboy/grunt), [Ruby](http://www.ruby-lang.org/) and [Jekyll](https://github.com/mojombo/jekyll/) installed, then:
|
42 |
+
|
43 |
+
1) Copy repository
|
44 |
+
|
45 |
+
git clone https://github.com/dimsemenov/Magnific-Popup.git
|
46 |
+
|
47 |
+
2) Go inside Magnific Popup folder that you fetched and install Node dependencies
|
48 |
+
|
49 |
+
cd Magnific-Popup && npm install
|
50 |
+
|
51 |
+
3) Now simply run `grunt` to generate JS and CSS in folder `dist` and site in folder `_site/`.
|
52 |
+
|
53 |
+
grunt
|
54 |
+
|
55 |
+
Optionally:
|
56 |
+
|
57 |
+
- Run `grunt watch` to automatically rebuild script when you change files in `src/` or in `website/`.
|
58 |
+
- If you don't have and don't want to install Jekyll, run `grunt nosite` to just build JS and CSS files related to popup in `dist/`.
|
59 |
+
|
60 |
+
|
61 |
+
|
62 |
+
## [Changelog](https://github.com/dimsemenov/Magnific-Popup/releases)
|
63 |
+
|
64 |
+
## License
|
65 |
+
|
66 |
+
Script is MIT licensed and free and will always be kept this way. But has a small restriction from me - please do not create public WordPress plugin based on it(or at least contact me before creating it), because I will make it and it'll be open source too ([want to get notified?](http://dimsemenov.com/subscribe.html)).
|
67 |
+
|
68 |
+
Created by [@dimsemenov](http://twitter.com/dimsemenov) & [contributors](https://github.com/dimsemenov/Magnific-Popup/contributors).
|
69 |
+
|
70 |
+
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/dimsemenov/magnific-popup/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
|
71 |
+
|
72 |
+
## Bugs & contributing
|
73 |
+
|
74 |
+
Please report bugs via GitHub and ask general questions through [Stack Overflow](http://stackoverflow.com/questions/tagged/magnific-popup). Feel free to submit commit [pull-request](https://github.com/dimsemenov/Magnific-Popup/pulls), even the tiniest contributions to the script or to the documentation are very welcome.
|
75 |
+
|
76 |
+
|
assets/masonry/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
MIT License
|
2 |
+
|
3 |
+
Copyright (c) David DeSandro
|
4 |
+
|
5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6 |
+
of this software and associated documentation files (the "Software"), to deal
|
7 |
+
in the Software without restriction, including without limitation the rights
|
8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9 |
+
copies of the Software, and to permit persons to whom the Software is
|
10 |
+
furnished to do so, subject to the following conditions:
|
11 |
+
|
12 |
+
The above copyright notice and this permission notice shall be included in all
|
13 |
+
copies or substantial portions of the Software.
|
14 |
+
|
15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21 |
+
SOFTWARE.
|
assets/masonry/README.md
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Masonry
|
2 |
+
|
3 |
+
_Cascading grid layout library_
|
4 |
+
|
5 |
+
Masonry works by placing elements in optimal position based on available vertical space, sort of like a mason fitting stones in a wall. You’ve probably seen it in use all over the Internet.
|
6 |
+
|
7 |
+
See [masonry.desandro.com](https://masonry.desandro.com) for complete docs and demos.
|
8 |
+
|
9 |
+
## Install
|
10 |
+
|
11 |
+
### Download
|
12 |
+
|
13 |
+
+ [masonry.pkgd.js](https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.js) un-minified, or
|
14 |
+
+ [masonry.pkgd.min.js](https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js) minified
|
15 |
+
|
16 |
+
### CDN
|
17 |
+
|
18 |
+
Link directly to Masonry files on [unpkg](https://unpkg.com/).
|
19 |
+
|
20 |
+
``` html
|
21 |
+
<script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.js"></script>
|
22 |
+
<!-- or -->
|
23 |
+
<script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js"></script>
|
24 |
+
```
|
25 |
+
|
26 |
+
### Package managers
|
27 |
+
|
28 |
+
[npm](https://www.npmjs.com/package/masonry-layout): `npm install masonry-layout --save`
|
29 |
+
|
30 |
+
Bower: `bower install masonry-layout --save`
|
31 |
+
|
32 |
+
## Support Masonry development
|
33 |
+
|
34 |
+
Masonry has been actively maintained and improved upon for 8 years, with 900 GitHub issues closed. Please consider supporting its development by [purchasing a license for one of Metafizzy's commercial libraries](https://metafizzy.co).
|
35 |
+
|
36 |
+
## Initialize
|
37 |
+
|
38 |
+
With jQuery
|
39 |
+
|
40 |
+
``` js
|
41 |
+
$('.grid').masonry({
|
42 |
+
// options...
|
43 |
+
itemSelector: '.grid-item',
|
44 |
+
columnWidth: 200
|
45 |
+
});
|
46 |
+
```
|
47 |
+
|
48 |
+
With vanilla JavaScript
|
49 |
+
|
50 |
+
``` js
|
51 |
+
// vanilla JS
|
52 |
+
// init with element
|
53 |
+
var grid = document.querySelector('.grid');
|
54 |
+
var msnry = new Masonry( grid, {
|
55 |
+
// options...
|
56 |
+
itemSelector: '.grid-item',
|
57 |
+
columnWidth: 200
|
58 |
+
});
|
59 |
+
|
60 |
+
// init with selector
|
61 |
+
var msnry = new Masonry( '.grid', {
|
62 |
+
// options...
|
63 |
+
});
|
64 |
+
```
|
65 |
+
|
66 |
+
With HTML
|
67 |
+
|
68 |
+
Add a `data-masonry` attribute to your element. Options can be set in JSON in the value.
|
69 |
+
|
70 |
+
``` html
|
71 |
+
<div class="grid" data-masonry='{ "itemSelector": ".grid-item", "columnWidth": 200 }'>
|
72 |
+
<div class="grid-item"></div>
|
73 |
+
<div class="grid-item"></div>
|
74 |
+
...
|
75 |
+
</div>
|
76 |
+
```
|
77 |
+
|
78 |
+
## License
|
79 |
+
|
80 |
+
Masonry is released under the [MIT license](http://desandro.mit-license.org). Have at it.
|
81 |
+
|
82 |
+
* * *
|
83 |
+
|
84 |
+
Made by David DeSandro
|
assets/nivo/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Copyright (c) 2013 Dev7studios
|
2 |
+
|
3 |
+
Permission is hereby granted, free of charge, to any person
|
4 |
+
obtaining a copy of this software and associated documentation
|
5 |
+
files (the "Software"), to deal in the Software without
|
6 |
+
restriction, including without limitation the rights to use,
|
7 |
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8 |
+
copies of the Software, and to permit persons to whom the
|
9 |
+
Software is furnished to do so, subject to the following
|
10 |
+
conditions:
|
11 |
+
|
12 |
+
The above copyright notice and this permission notice shall be
|
13 |
+
included in all copies or substantial portions of the Software.
|
14 |
+
|
15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
16 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
17 |
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
18 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
19 |
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
20 |
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
22 |
+
OTHER DEALINGS IN THE SOFTWARE.
|
assets/perfect-scrollbar/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The MIT License (MIT)
|
2 |
+
|
3 |
+
Copyright (c) 2012-2019 Hyunje Jun, MDBootstrap.com and other contributors
|
4 |
+
|
5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6 |
+
this software and associated documentation files (the "Software"), to deal in
|
7 |
+
the Software without restriction, including without limitation the rights to
|
8 |
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
9 |
+
of the Software, and to permit persons to whom the Software is furnished to do
|
10 |
+
so, subject to the following conditions:
|
11 |
+
|
12 |
+
The above copyright notice and this permission notice shall be included in all
|
13 |
+
copies or substantial portions of the Software.
|
14 |
+
|
15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21 |
+
SOFTWARE.
|
assets/perfect-scrollbar/README.md
ADDED
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<p align="center">
|
2 |
+
<a href="https://perfectscrollbar.com/?utm_source=GitHub&utm_medium=PerfectScrollbar">
|
3 |
+
<img src="https://perfectscrollbar.com/logo2.png" width="300" height="200">
|
4 |
+
</a>
|
5 |
+
</p>
|
6 |
+
|
7 |
+
<h1 align="center">perfect-scrollbar</h1>
|
8 |
+
|
9 |
+
<p align="center">Minimalistic but perfect custom scrollbar plugin<p>
|
10 |
+
|
11 |
+
|
12 |
+
<p align="center">
|
13 |
+
<a href="https://npmcharts.com/compare/perfect-scrollbar?minimal=true"><img src="https://img.shields.io/npm/dm/perfect-scrollbar.svg" alt="Downloads"></a>
|
14 |
+
<a href="https://github.com/mdbootstrap/bootstrap-material-design/blob/master/License.pdf"><img src="https://img.shields.io/badge/license-MIT-green.svg" alt="License"></a>
|
15 |
+
<a href="https://badge.fury.io/js/perfect-scrollbar"><img src="https://badge.fury.io/js/perfect-scrollbar.svg" alt="npm"></a>
|
16 |
+
<a href="https://twitter.com/intent/tweet/?text=Thanks+@mdbootstrap+for+maintaining+amazing+and+free+Perfect+Scrollbar+Plugin%20https://perfectscrollbar.com/&hashtags=javascript,code,webdesign,bootstrap"><img src="https://img.shields.io/twitter/url/http/shields.io.svg?style=social&label=Let%20us%20know%20you%20were%20here%21&"></a>
|
17 |
+
<a href="https://www.youtube.com/watch?v=c9B4TPnak1A"><img alt="YouTube Video Views" src="https://img.shields.io/youtube/views/c9B4TPnak1A?label=Bootstrap%205%20Tutorial%20Views&style=social"></a>
|
18 |
+
</p>
|
19 |
+
|
20 |
+
________
|
21 |
+
|
22 |
+
|
23 |
+
|
24 |
+
## Why perfect-scrollbar?
|
25 |
+
|
26 |
+
perfect-scrollbar is minimalistic but *perfect* (for us, and maybe for most
|
27 |
+
developers) scrollbar plugin.
|
28 |
+
|
29 |
+
* No change on design layout
|
30 |
+
* No manipulation on DOM tree
|
31 |
+
* Use plain `scrollTop` and `scrollLeft`
|
32 |
+
* Scrollbar style is fully customizable
|
33 |
+
* Efficient update on layout change
|
34 |
+
|
35 |
+
We hope you will love it!
|
36 |
+
|
37 |
+
## Live preview
|
38 |
+
|
39 |
+
Check out the [Live Preview](https://mdbootstrap.com/snippets/standard/marveluck/3498209?utm_source=GitHub&utm_medium=PerfectScrollbar) snippet. You can fork it right away for testing and experimenting purposes.
|
40 |
+
|
41 |
+
|
42 |
+
|
43 |
+
## Related resources
|
44 |
+
|
45 |
+
|
46 |
+
- [Scroll Back To Top](https://mdbootstrap.com/docs/standard/extended/back-to-top/?utm_source=GitHub&utm_medium=PerfectScrollbar)
|
47 |
+
|
48 |
+
- [Scrollspy](https://mdbootstrap.com/docs/standard/navigation/scrollspy/?utm_source=GitHub&utm_medium=PerfectScrollbar)
|
49 |
+
|
50 |
+
- [Scrollbar](https://mdbootstrap.com/docs/standard/methods/scrollbar/)
|
51 |
+
|
52 |
+
- [Scroll Status](https://mdbootstrap.com/docs/standard/plugins/scroll-status/?utm_source=GitHub&utm_medium=PerfectScrollbar)
|
53 |
+
|
54 |
+
## Social Media
|
55 |
+
|
56 |
+
- [Twitter](https://twitter.com/MDBootstrap)
|
57 |
+
|
58 |
+
- [Facebook](https://www.facebook.com/mdbootstrap)
|
59 |
+
|
60 |
+
- [Pinterest](https://pl.pinterest.com/mdbootstrap)
|
61 |
+
|
62 |
+
- [Dribbble](https://dribbble.com/mdbootstrap)
|
63 |
+
|
64 |
+
- [LinkedIn](https://www.linkedin.com/company/material-design-for-bootstrap)
|
65 |
+
|
66 |
+
- [YouTube](https://www.youtube.com/channel/UC5CF7mLQZhvx8O5GODZAhdA)
|
67 |
+
|
68 |
+
## Get Free Material Design for Bootstrap 5
|
69 |
+
|
70 |
+
<table>
|
71 |
+
<tbody>
|
72 |
+
<tr>
|
73 |
+
<td>
|
74 |
+
<a href="https://mdbootstrap.com/docs/standard/" alt="Bootstrap 5" rel="dofollow">
|
75 |
+
<img src="https://mdbcdn.b-cdn.net/wp-content/themes/mdbootstrap4/content/en/_mdb5/standard/pro/_main/assets/mdb5-about-v2.jpg">
|
76 |
+
</a>
|
77 |
+
</td>
|
78 |
+
<td>
|
79 |
+
<ul style="list-style-type:none;">
|
80 |
+
<li>Material Design 2.0 + latest Bootstrap 5 based on plain JavaScript. 700+ material UI components, super simple, 1 minute installation, free templates & much more</li>
|
81 |
+
</ul>
|
82 |
+
</td>
|
83 |
+
</tr>
|
84 |
+
</tbody>
|
85 |
+
</table>
|
86 |
+
|
87 |
+
## Free Tutorials
|
88 |
+
|
89 |
+
Huge collection of free and high-quality tutorials. Learn Bootstrap, Angular, React, Vue, WordPress and many more. Create your own websites and apps.
|
90 |
+
|
91 |
+
|
92 |
+
[Check it out](https://www.youtube.com/c/Mdbootstrap)
|
assets/perfect-scrollbar/perfect-scrollbar.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/*!
|
2 |
-
* perfect-scrollbar v1.5.
|
3 |
-
* Copyright
|
4 |
* Licensed under MIT
|
5 |
*/
|
6 |
|
@@ -329,8 +329,9 @@
|
|
329 |
var roundedScrollTop = Math.floor(element.scrollTop);
|
330 |
var rect = element.getBoundingClientRect();
|
331 |
|
332 |
-
i.containerWidth = Math.
|
333 |
-
i.containerHeight = Math.
|
|
|
334 |
i.contentWidth = element.scrollWidth;
|
335 |
i.contentHeight = element.scrollHeight;
|
336 |
|
@@ -565,7 +566,9 @@
|
|
565 |
updateGeometry(i);
|
566 |
|
567 |
e.stopPropagation();
|
568 |
-
e.
|
|
|
|
|
569 |
}
|
570 |
|
571 |
function mouseUpHandler() {
|
@@ -1088,6 +1091,11 @@
|
|
1088 |
return;
|
1089 |
}
|
1090 |
|
|
|
|
|
|
|
|
|
|
|
1091 |
applyTouchMove(speed.x * 30, speed.y * 30);
|
1092 |
|
1093 |
speed.x *= 0.8;
|
1 |
/*!
|
2 |
+
* perfect-scrollbar v1.5.3
|
3 |
+
* Copyright 2021 Hyunje Jun, MDBootstrap and Contributors
|
4 |
* Licensed under MIT
|
5 |
*/
|
6 |
|
329 |
var roundedScrollTop = Math.floor(element.scrollTop);
|
330 |
var rect = element.getBoundingClientRect();
|
331 |
|
332 |
+
i.containerWidth = Math.round(rect.width);
|
333 |
+
i.containerHeight = Math.round(rect.height);
|
334 |
+
|
335 |
i.contentWidth = element.scrollWidth;
|
336 |
i.contentHeight = element.scrollHeight;
|
337 |
|
566 |
updateGeometry(i);
|
567 |
|
568 |
e.stopPropagation();
|
569 |
+
if (e.type.startsWith('touch') && e.changedTouches.length > 1) {
|
570 |
+
e.preventDefault();
|
571 |
+
}
|
572 |
}
|
573 |
|
574 |
function mouseUpHandler() {
|
1091 |
return;
|
1092 |
}
|
1093 |
|
1094 |
+
if (!i.element) {
|
1095 |
+
clearInterval(easingLoop);
|
1096 |
+
return;
|
1097 |
+
}
|
1098 |
+
|
1099 |
applyTouchMove(speed.x * 30, speed.y * 30);
|
1100 |
|
1101 |
speed.x *= 0.8;
|
assets/perfect-scrollbar/perfect-scrollbar.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;height:15px;bottom:0;position:absolute}.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;width:15px;right:0;position:absolute}.ps--active-x
|
1 |
+
.ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;height:15px;bottom:0;position:absolute}.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;width:15px;right:0;position:absolute}.ps--active-x > .ps__rail-x,.ps--active-y > .ps__rail-y{display:block;background-color:transparent}.ps:hover > .ps__rail-x,.ps:hover > .ps__rail-y,.ps--focus > .ps__rail-x,.ps--focus > .ps__rail-y,.ps--scrolling-x > .ps__rail-x,.ps--scrolling-y > .ps__rail-y{opacity:.6}.ps .ps__rail-x:hover,.ps .ps__rail-y:hover,.ps .ps__rail-x:focus,.ps .ps__rail-y:focus,.ps .ps__rail-x.ps--clicking,.ps .ps__rail-y.ps--clicking{background-color:#eee;opacity:.9}.ps__thumb-x{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px;position:absolute}.ps__thumb-y{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px;position:absolute}.ps__rail-x:hover > .ps__thumb-x,.ps__rail-x:focus > .ps__thumb-x,.ps__rail-x.ps--clicking .ps__thumb-x{background-color:#999;height:11px}.ps__rail-y:hover > .ps__thumb-y,.ps__rail-y:focus > .ps__thumb-y,.ps__rail-y.ps--clicking .ps__thumb-y{background-color:#999;width:11px}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.ps{overflow:auto!important}}
|
assets/perfect-scrollbar/perfect-scrollbar.min.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
/*!
|
2 |
-
* perfect-scrollbar v1.5.
|
3 |
-
* Copyright
|
4 |
* Licensed under MIT
|
5 |
*/(function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):(a=a||self,a.PerfectScrollbar=b())})(this,function(){'use strict';var u=Math.abs,v=Math.floor;function a(a){return getComputedStyle(a)}function b(a,b){for(var c in b){var d=b[c];"number"==typeof d&&(d+="px"),a.style[c]=d}return a}function c(a){var b=document.createElement("div");return b.className=a,b}function d(a,b){if(!w)throw new Error("No element matching method supported");return w.call(a,b)}function e(a){a.remove?a.remove():a.parentNode&&a.parentNode.removeChild(a)}function f(a,b){return Array.prototype.filter.call(a.children,function(a){return d(a,b)})}function g(a,b){var c=a.element.classList,d=z.state.scrolling(b);c.contains(d)?clearTimeout(A[b]):c.add(d)}function h(a,b){A[b]=setTimeout(function(){return a.isAlive&&a.element.classList.remove(z.state.scrolling(b))},a.settings.scrollingThreshold)}function j(a,b){g(a,b),h(a,b)}function k(a){if("function"==typeof window.CustomEvent)return new CustomEvent(a);var b=document.createEvent("CustomEvent");return b.initCustomEvent(a,!1,!1,void 0),b}function l(a,b,c,d,e){void 0===d&&(d=!0),void 0===e&&(e=!1);var f;if("top"===b)f=["contentHeight","containerHeight","scrollTop","y","up","down"];else if("left"===b)f=["contentWidth","containerWidth","scrollLeft","x","left","right"];else throw new Error("A proper axis should be provided");m(a,c,f,d,e)}function m(a,b,c,d,e){var f=c[0],g=c[1],h=c[2],i=c[3],l=c[4],m=c[5];void 0===d&&(d=!0),void 0===e&&(e=!1);var n=a.element;// reset reach
|
6 |
-
a.reach[i]=null,1>n[h]&&(a.reach[i]="start"),n[h]>a[f]-a[g]-1&&(a.reach[i]="end"),b&&(n.dispatchEvent(k("ps-scroll-"+i)),0>b?n.dispatchEvent(k("ps-scroll-"+l)):0<b&&n.dispatchEvent(k("ps-scroll-"+m)),d&&j(a,i)),a.reach[i]&&(b||e)&&n.dispatchEvent(k("ps-"+i+"-reach-"+a.reach[i]))}function n(a){return parseInt(a,10)||0}function o(a){return d(a,"input,[contenteditable]")||d(a,"select,[contenteditable]")||d(a,"textarea,[contenteditable]")||d(a,"button,[contenteditable]")}function p(b){var c=a(b);return n(c.width)+n(c.paddingLeft)+n(c.paddingRight)+n(c.borderLeftWidth)+n(c.borderRightWidth)}function q(a){var b=Math.
|
7 |
for(;e.shadowRoot;)e=e.shadowRoot.activeElement;if(o(e))return}var h=0,i=0;switch(d.which){case 37:h=d.metaKey?-a.contentWidth:d.altKey?-a.containerWidth:-30;break;case 38:i=d.metaKey?a.contentHeight:d.altKey?a.containerHeight:30;break;case 39:h=d.metaKey?a.contentWidth:d.altKey?a.containerWidth:30;break;case 40:i=d.metaKey?-a.contentHeight:d.altKey?-a.containerHeight:-30;break;case 32:i=d.shiftKey?a.containerHeight:-a.containerHeight;break;case 33:i=a.containerHeight;break;case 34:i=-a.containerHeight;break;case 36:i=a.contentHeight;break;case 35:i=-a.contentHeight;break;default:return;}a.settings.suppressScrollX&&0!==h||a.settings.suppressScrollY&&0!==i||(c.scrollTop-=i,c.scrollLeft+=h,q(a),b(h,i)&&d.preventDefault())}})},wheel:function(b){function c(a,c){var d,e=v(h.scrollTop),f=0===h.scrollTop,g=e+h.offsetHeight===h.scrollHeight,i=0===h.scrollLeft,j=h.scrollLeft+h.offsetWidth===h.scrollWidth;return d=u(c)>u(a)?f||g:i||j,!d||!b.settings.wheelPropagation}function d(a){var b=a.deltaX,c=-1*a.deltaY;return("undefined"==typeof b||"undefined"==typeof c)&&(b=-1*a.wheelDeltaX/6,c=a.wheelDeltaY/6),a.deltaMode&&1===a.deltaMode&&(b*=10,c*=10),b!==b&&c!==c/* NaN checks */&&(b=0,c=a.wheelDelta),a.shiftKey?[-c,-b]:[b,c]}function f(b,c,d){// FIXME: this is a workaround for <select> issue in FF and IE #571
|
8 |
if(!E.isWebKit&&h.querySelector("select:focus"))return!0;if(!h.contains(b))return!1;for(var e=b;e&&e!==h;){if(e.classList.contains(z.element.consuming))return!0;var f=a(e);// if deltaY && vertical scrollable
|
9 |
if(d&&f.overflowY.match(/(scroll|auto)/)){var g=e.scrollHeight-e.clientHeight;if(0<g&&(0<e.scrollTop&&0>d||e.scrollTop<g&&0<d))return!0}// if deltaX && horizontal scrollable
|
@@ -12,7 +12,7 @@ if(0>c&&d===b.contentHeight-b.containerHeight||0<c&&0===d)// set prevent for mob
|
|
12 |
return 0===window.scrollY&&0<c&&E.isChrome;}else if(f>g&&(0>a&&e===b.contentWidth-b.containerWidth||0<a&&0===e))// user is perhaps trying to swipe left/right across the page
|
13 |
return!0;return!0}function d(a,c){l.scrollTop-=c,l.scrollLeft-=a,q(b)}function f(a){return a.targetTouches?a.targetTouches[0]:a}function g(a){return!(a.pointerType&&"pen"===a.pointerType&&0===a.buttons)&&(!!(a.targetTouches&&1===a.targetTouches.length)||!!(a.pointerType&&"mouse"!==a.pointerType&&a.pointerType!==a.MSPOINTER_TYPE_MOUSE))}function h(a){if(g(a)){var b=f(a);m.pageX=b.pageX,m.pageY=b.pageY,n=new Date().getTime(),null!==p&&clearInterval(p)}}function i(b,c,d){if(!l.contains(b))return!1;for(var e=b;e&&e!==l;){if(e.classList.contains(z.element.consuming))return!0;var f=a(e);// if deltaY && vertical scrollable
|
14 |
if(d&&f.overflowY.match(/(scroll|auto)/)){var g=e.scrollHeight-e.clientHeight;if(0<g&&(0<e.scrollTop&&0>d||e.scrollTop<g&&0<d))return!0}// if deltaX && horizontal scrollable
|
15 |
-
if(c&&f.overflowX.match(/(scroll|auto)/)){var h=e.scrollWidth-e.clientWidth;if(0<h&&(0<e.scrollLeft&&0>c||e.scrollLeft<h&&0<c))return!0}e=e.parentNode}return!1}function j(a){if(g(a)){var b=f(a),e={pageX:b.pageX,pageY:b.pageY},h=e.pageX-m.pageX,j=e.pageY-m.pageY;if(i(a.target,h,j))return;d(h,j),m=e;var k=new Date().getTime(),l=k-n;0<l&&(o.x=h/l,o.y=j/l,n=k),c(h,j)&&a.preventDefault()}}function k(){b.settings.swipeEasing&&(clearInterval(p),p=setInterval(function(){return b.isInitialized?void clearInterval(p):o.x||o.y?.01>u(o.x)&&.01>u(o.y)?void clearInterval(p):void(d(30*o.x,30*o.y),o.x*=.8,o.y*=.8):void clearInterval(p)},10))}if(E.supportsTouch||E.supportsIePointer){var l=b.element,m={},n=0,o={},p=null;E.supportsTouch?(b.event.bind(l,"touchstart",h),b.event.bind(l,"touchmove",j),b.event.bind(l,"touchend",k)):E.supportsIePointer&&(window.PointerEvent?(b.event.bind(l,"pointerdown",h),b.event.bind(l,"pointermove",j),b.event.bind(l,"pointerup",k)):window.MSPointerEvent&&(b.event.bind(l,"MSPointerDown",h),b.event.bind(l,"MSPointerMove",j),b.event.bind(l,"MSPointerUp",k)))}}},H=function(d,e){var f=this;if(void 0===e&&(e={}),"string"==typeof d&&(d=document.querySelector(d)),!d||!d.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var g in this.element=d,d.classList.add(z.main),this.settings=F(),e)this.settings[g]=e[g];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var h=function(){return d.classList.add(z.state.focus)},i=function(){return d.classList.remove(z.state.focus)};this.isRtl="rtl"===a(d).direction,!0===this.isRtl&&d.classList.add(z.rtl),this.isNegativeScroll=function(){var a=d.scrollLeft,b=null;return d.scrollLeft=-1,b=0>d.scrollLeft,d.scrollLeft=a,b}(),this.negativeScrollAdjustment=this.isNegativeScroll?d.scrollWidth-d.clientWidth:0,this.event=new D,this.ownerDocument=d.ownerDocument||document,this.scrollbarXRail=c(z.element.rail("x")),d.appendChild(this.scrollbarXRail),this.scrollbarX=c(z.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",h),this.event.bind(this.scrollbarX,"blur",i),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var j=a(this.scrollbarXRail);this.scrollbarXBottom=parseInt(j.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=n(j.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=n(j.borderLeftWidth)+n(j.borderRightWidth),b(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=n(j.marginLeft)+n(j.marginRight),b(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=c(z.element.rail("y")),d.appendChild(this.scrollbarYRail),this.scrollbarY=c(z.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",h),this.event.bind(this.scrollbarY,"blur",i),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var k=a(this.scrollbarYRail);this.scrollbarYRight=parseInt(k.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=n(k.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?p(this.scrollbarY):null,this.railBorderYWidth=n(k.borderTopWidth)+n(k.borderBottomWidth),b(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=n(k.marginTop)+n(k.marginBottom),b(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:0>=d.scrollLeft?"start":d.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:0>=d.scrollTop?"start":d.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(a){return G[a](f)}),this.lastScrollTop=v(d.scrollTop),this.lastScrollLeft=d.scrollLeft,this.event.bind(this.element,"scroll",function(a){return f.onScroll(a)}),q(this)};return H.prototype.update=function(){this.isAlive&&(// Recalcuate negative scrollLeft adjustment
|
16 |
// Recalculate rail margins
|
17 |
// Hide scrollbars not to affect scrollWidth and scrollHeight
|
18 |
this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,b(this.scrollbarXRail,{display:"block"}),b(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=n(a(this.scrollbarXRail).marginLeft)+n(a(this.scrollbarXRail).marginRight),this.railYMarginHeight=n(a(this.scrollbarYRail).marginTop)+n(a(this.scrollbarYRail).marginBottom),b(this.scrollbarXRail,{display:"none"}),b(this.scrollbarYRail,{display:"none"}),q(this),l(this,"top",0,!1,!0),l(this,"left",0,!1,!0),b(this.scrollbarXRail,{display:""}),b(this.scrollbarYRail,{display:""}))},H.prototype.onScroll=function(){this.isAlive&&(q(this),l(this,"top",this.element.scrollTop-this.lastScrollTop),l(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=v(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},H.prototype.destroy=function(){this.isAlive&&(// unset elements
|
1 |
/*!
|
2 |
+
* perfect-scrollbar v1.5.3
|
3 |
+
* Copyright 2021 Hyunje Jun, MDBootstrap and Contributors
|
4 |
* Licensed under MIT
|
5 |
*/(function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):(a=a||self,a.PerfectScrollbar=b())})(this,function(){'use strict';var u=Math.abs,v=Math.floor;function a(a){return getComputedStyle(a)}function b(a,b){for(var c in b){var d=b[c];"number"==typeof d&&(d+="px"),a.style[c]=d}return a}function c(a){var b=document.createElement("div");return b.className=a,b}function d(a,b){if(!w)throw new Error("No element matching method supported");return w.call(a,b)}function e(a){a.remove?a.remove():a.parentNode&&a.parentNode.removeChild(a)}function f(a,b){return Array.prototype.filter.call(a.children,function(a){return d(a,b)})}function g(a,b){var c=a.element.classList,d=z.state.scrolling(b);c.contains(d)?clearTimeout(A[b]):c.add(d)}function h(a,b){A[b]=setTimeout(function(){return a.isAlive&&a.element.classList.remove(z.state.scrolling(b))},a.settings.scrollingThreshold)}function j(a,b){g(a,b),h(a,b)}function k(a){if("function"==typeof window.CustomEvent)return new CustomEvent(a);var b=document.createEvent("CustomEvent");return b.initCustomEvent(a,!1,!1,void 0),b}function l(a,b,c,d,e){void 0===d&&(d=!0),void 0===e&&(e=!1);var f;if("top"===b)f=["contentHeight","containerHeight","scrollTop","y","up","down"];else if("left"===b)f=["contentWidth","containerWidth","scrollLeft","x","left","right"];else throw new Error("A proper axis should be provided");m(a,c,f,d,e)}function m(a,b,c,d,e){var f=c[0],g=c[1],h=c[2],i=c[3],l=c[4],m=c[5];void 0===d&&(d=!0),void 0===e&&(e=!1);var n=a.element;// reset reach
|
6 |
+
a.reach[i]=null,1>n[h]&&(a.reach[i]="start"),n[h]>a[f]-a[g]-1&&(a.reach[i]="end"),b&&(n.dispatchEvent(k("ps-scroll-"+i)),0>b?n.dispatchEvent(k("ps-scroll-"+l)):0<b&&n.dispatchEvent(k("ps-scroll-"+m)),d&&j(a,i)),a.reach[i]&&(b||e)&&n.dispatchEvent(k("ps-"+i+"-reach-"+a.reach[i]))}function n(a){return parseInt(a,10)||0}function o(a){return d(a,"input,[contenteditable]")||d(a,"select,[contenteditable]")||d(a,"textarea,[contenteditable]")||d(a,"button,[contenteditable]")}function p(b){var c=a(b);return n(c.width)+n(c.paddingLeft)+n(c.paddingRight)+n(c.borderLeftWidth)+n(c.borderRightWidth)}function q(a){var b=Math.round,c=a.element,d=v(c.scrollTop),g=c.getBoundingClientRect();a.containerWidth=b(g.width),a.containerHeight=b(g.height),a.contentWidth=c.scrollWidth,a.contentHeight=c.scrollHeight,c.contains(a.scrollbarXRail)||(f(c,z.element.rail("x")).forEach(function(a){return e(a)}),c.appendChild(a.scrollbarXRail)),c.contains(a.scrollbarYRail)||(f(c,z.element.rail("y")).forEach(function(a){return e(a)}),c.appendChild(a.scrollbarYRail)),!a.settings.suppressScrollX&&a.containerWidth+a.settings.scrollXMarginOffset<a.contentWidth?(a.scrollbarXActive=!0,a.railXWidth=a.containerWidth-a.railXMarginWidth,a.railXRatio=a.containerWidth/a.railXWidth,a.scrollbarXWidth=r(a,n(a.railXWidth*a.containerWidth/a.contentWidth)),a.scrollbarXLeft=n((a.negativeScrollAdjustment+c.scrollLeft)*(a.railXWidth-a.scrollbarXWidth)/(a.contentWidth-a.containerWidth))):a.scrollbarXActive=!1,!a.settings.suppressScrollY&&a.containerHeight+a.settings.scrollYMarginOffset<a.contentHeight?(a.scrollbarYActive=!0,a.railYHeight=a.containerHeight-a.railYMarginHeight,a.railYRatio=a.containerHeight/a.railYHeight,a.scrollbarYHeight=r(a,n(a.railYHeight*a.containerHeight/a.contentHeight)),a.scrollbarYTop=n(d*(a.railYHeight-a.scrollbarYHeight)/(a.contentHeight-a.containerHeight))):a.scrollbarYActive=!1,a.scrollbarXLeft>=a.railXWidth-a.scrollbarXWidth&&(a.scrollbarXLeft=a.railXWidth-a.scrollbarXWidth),a.scrollbarYTop>=a.railYHeight-a.scrollbarYHeight&&(a.scrollbarYTop=a.railYHeight-a.scrollbarYHeight),s(c,a),a.scrollbarXActive?c.classList.add(z.state.active("x")):(c.classList.remove(z.state.active("x")),a.scrollbarXWidth=0,a.scrollbarXLeft=0,c.scrollLeft=!0===a.isRtl?a.contentWidth:0),a.scrollbarYActive?c.classList.add(z.state.active("y")):(c.classList.remove(z.state.active("y")),a.scrollbarYHeight=0,a.scrollbarYTop=0,c.scrollTop=0)}function r(a,b){var c=Math.min,d=Math.max;return a.settings.minScrollbarLength&&(b=d(b,a.settings.minScrollbarLength)),a.settings.maxScrollbarLength&&(b=c(b,a.settings.maxScrollbarLength)),b}function s(a,c){var d={width:c.railXWidth},e=v(a.scrollTop);d.left=c.isRtl?c.negativeScrollAdjustment+a.scrollLeft+c.containerWidth-c.contentWidth:a.scrollLeft,c.isScrollbarXUsingBottom?d.bottom=c.scrollbarXBottom-e:d.top=c.scrollbarXTop+e,b(c.scrollbarXRail,d);var f={top:e,height:c.railYHeight};c.isScrollbarYUsingRight?c.isRtl?f.right=c.contentWidth-(c.negativeScrollAdjustment+a.scrollLeft)-c.scrollbarYRight-c.scrollbarYOuterWidth-9:f.right=c.scrollbarYRight-a.scrollLeft:c.isRtl?f.left=c.negativeScrollAdjustment+a.scrollLeft+2*c.containerWidth-c.contentWidth-c.scrollbarYLeft-c.scrollbarYOuterWidth:f.left=c.scrollbarYLeft+a.scrollLeft,b(c.scrollbarYRail,f),b(c.scrollbarX,{left:c.scrollbarXLeft,width:c.scrollbarXWidth-c.railBorderXWidth}),b(c.scrollbarY,{top:c.scrollbarYTop,height:c.scrollbarYHeight-c.railBorderYWidth})}function t(a,b){function c(b){b.touches&&b.touches[0]&&(b[k]=b.touches[0].pageY),s[o]=t+v*(b[k]-u),g(a,p),q(a),b.stopPropagation(),b.type.startsWith("touch")&&1<b.changedTouches.length&&b.preventDefault()}function d(){h(a,p),a[r].classList.remove(z.state.clicking),a.event.unbind(a.ownerDocument,"mousemove",c)}function f(b,e){t=s[o],e&&b.touches&&(b[k]=b.touches[0].pageY),u=b[k],v=(a[j]-a[i])/(a[l]-a[n]),e?a.event.bind(a.ownerDocument,"touchmove",c):(a.event.bind(a.ownerDocument,"mousemove",c),a.event.once(a.ownerDocument,"mouseup",d),b.preventDefault()),a[r].classList.add(z.state.clicking),b.stopPropagation()}var i=b[0],j=b[1],k=b[2],l=b[3],m=b[4],n=b[5],o=b[6],p=b[7],r=b[8],s=a.element,t=null,u=null,v=null;a.event.bind(a[m],"mousedown",function(a){f(a)}),a.event.bind(a[m],"touchstart",function(a){f(a,!0)})}var w="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector),z={main:"ps",rtl:"ps__rtl",element:{thumb:function(a){return"ps__thumb-"+a},rail:function(a){return"ps__rail-"+a},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(a){return"ps--active-"+a},scrolling:function(a){return"ps--scrolling-"+a}}},A={x:null,y:null},B=function(a){this.element=a,this.handlers={}},C={isEmpty:{configurable:!0}};B.prototype.bind=function(a,b){"undefined"==typeof this.handlers[a]&&(this.handlers[a]=[]),this.handlers[a].push(b),this.element.addEventListener(a,b,!1)},B.prototype.unbind=function(a,b){var c=this;this.handlers[a]=this.handlers[a].filter(function(d){return!!(b&&d!==b)||(c.element.removeEventListener(a,d,!1),!1)})},B.prototype.unbindAll=function(){for(var a in this.handlers)this.unbind(a)},C.isEmpty.get=function(){var a=this;return Object.keys(this.handlers).every(function(b){return 0===a.handlers[b].length})},Object.defineProperties(B.prototype,C);var D=function(){this.eventElements=[]};D.prototype.eventElement=function(a){var b=this.eventElements.filter(function(b){return b.element===a})[0];return b||(b=new B(a),this.eventElements.push(b)),b},D.prototype.bind=function(a,b,c){this.eventElement(a).bind(b,c)},D.prototype.unbind=function(a,b,c){var d=this.eventElement(a);d.unbind(b,c),d.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(d),1)},D.prototype.unbindAll=function(){this.eventElements.forEach(function(a){return a.unbindAll()}),this.eventElements=[]},D.prototype.once=function(a,b,c){var d=this.eventElement(a),e=function(a){d.unbind(b,e),c(a)};d.bind(b,e)};var E={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&0<window.navigator.maxTouchPoints||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)},F=function(){return{handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1}},G={"click-rail":function(a){a.element;a.event.bind(a.scrollbarY,"mousedown",function(a){return a.stopPropagation()}),a.event.bind(a.scrollbarYRail,"mousedown",function(b){var c=b.pageY-window.pageYOffset-a.scrollbarYRail.getBoundingClientRect().top,d=c>a.scrollbarYTop?1:-1;a.element.scrollTop+=d*a.containerHeight,q(a),b.stopPropagation()}),a.event.bind(a.scrollbarX,"mousedown",function(a){return a.stopPropagation()}),a.event.bind(a.scrollbarXRail,"mousedown",function(b){var c=b.pageX-window.pageXOffset-a.scrollbarXRail.getBoundingClientRect().left,d=c>a.scrollbarXLeft?1:-1;a.element.scrollLeft+=d*a.containerWidth,q(a),b.stopPropagation()})},"drag-thumb":function(a){t(a,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),t(a,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(a){function b(b,d){var e=v(c.scrollTop);if(0===b){if(!a.scrollbarYActive)return!1;if(0===e&&0<d||e>=a.contentHeight-a.containerHeight&&0>d)return!a.settings.wheelPropagation}var f=c.scrollLeft;if(0===d){if(!a.scrollbarXActive)return!1;if(0===f&&0>b||f>=a.contentWidth-a.containerWidth&&0<b)return!a.settings.wheelPropagation}return!0}var c=a.element,f=function(){return d(c,":hover")},g=function(){return d(a.scrollbarX,":focus")||d(a.scrollbarY,":focus")};a.event.bind(a.ownerDocument,"keydown",function(d){if(!(d.isDefaultPrevented&&d.isDefaultPrevented()||d.defaultPrevented)&&(f()||g())){var e=document.activeElement?document.activeElement:a.ownerDocument.activeElement;if(e){if("IFRAME"===e.tagName)e=e.contentDocument.activeElement;else// go deeper if element is a webcomponent
|
7 |
for(;e.shadowRoot;)e=e.shadowRoot.activeElement;if(o(e))return}var h=0,i=0;switch(d.which){case 37:h=d.metaKey?-a.contentWidth:d.altKey?-a.containerWidth:-30;break;case 38:i=d.metaKey?a.contentHeight:d.altKey?a.containerHeight:30;break;case 39:h=d.metaKey?a.contentWidth:d.altKey?a.containerWidth:30;break;case 40:i=d.metaKey?-a.contentHeight:d.altKey?-a.containerHeight:-30;break;case 32:i=d.shiftKey?a.containerHeight:-a.containerHeight;break;case 33:i=a.containerHeight;break;case 34:i=-a.containerHeight;break;case 36:i=a.contentHeight;break;case 35:i=-a.contentHeight;break;default:return;}a.settings.suppressScrollX&&0!==h||a.settings.suppressScrollY&&0!==i||(c.scrollTop-=i,c.scrollLeft+=h,q(a),b(h,i)&&d.preventDefault())}})},wheel:function(b){function c(a,c){var d,e=v(h.scrollTop),f=0===h.scrollTop,g=e+h.offsetHeight===h.scrollHeight,i=0===h.scrollLeft,j=h.scrollLeft+h.offsetWidth===h.scrollWidth;return d=u(c)>u(a)?f||g:i||j,!d||!b.settings.wheelPropagation}function d(a){var b=a.deltaX,c=-1*a.deltaY;return("undefined"==typeof b||"undefined"==typeof c)&&(b=-1*a.wheelDeltaX/6,c=a.wheelDeltaY/6),a.deltaMode&&1===a.deltaMode&&(b*=10,c*=10),b!==b&&c!==c/* NaN checks */&&(b=0,c=a.wheelDelta),a.shiftKey?[-c,-b]:[b,c]}function f(b,c,d){// FIXME: this is a workaround for <select> issue in FF and IE #571
|
8 |
if(!E.isWebKit&&h.querySelector("select:focus"))return!0;if(!h.contains(b))return!1;for(var e=b;e&&e!==h;){if(e.classList.contains(z.element.consuming))return!0;var f=a(e);// if deltaY && vertical scrollable
|
9 |
if(d&&f.overflowY.match(/(scroll|auto)/)){var g=e.scrollHeight-e.clientHeight;if(0<g&&(0<e.scrollTop&&0>d||e.scrollTop<g&&0<d))return!0}// if deltaX && horizontal scrollable
|
12 |
return 0===window.scrollY&&0<c&&E.isChrome;}else if(f>g&&(0>a&&e===b.contentWidth-b.containerWidth||0<a&&0===e))// user is perhaps trying to swipe left/right across the page
|
13 |
return!0;return!0}function d(a,c){l.scrollTop-=c,l.scrollLeft-=a,q(b)}function f(a){return a.targetTouches?a.targetTouches[0]:a}function g(a){return!(a.pointerType&&"pen"===a.pointerType&&0===a.buttons)&&(!!(a.targetTouches&&1===a.targetTouches.length)||!!(a.pointerType&&"mouse"!==a.pointerType&&a.pointerType!==a.MSPOINTER_TYPE_MOUSE))}function h(a){if(g(a)){var b=f(a);m.pageX=b.pageX,m.pageY=b.pageY,n=new Date().getTime(),null!==p&&clearInterval(p)}}function i(b,c,d){if(!l.contains(b))return!1;for(var e=b;e&&e!==l;){if(e.classList.contains(z.element.consuming))return!0;var f=a(e);// if deltaY && vertical scrollable
|
14 |
if(d&&f.overflowY.match(/(scroll|auto)/)){var g=e.scrollHeight-e.clientHeight;if(0<g&&(0<e.scrollTop&&0>d||e.scrollTop<g&&0<d))return!0}// if deltaX && horizontal scrollable
|
15 |
+
if(c&&f.overflowX.match(/(scroll|auto)/)){var h=e.scrollWidth-e.clientWidth;if(0<h&&(0<e.scrollLeft&&0>c||e.scrollLeft<h&&0<c))return!0}e=e.parentNode}return!1}function j(a){if(g(a)){var b=f(a),e={pageX:b.pageX,pageY:b.pageY},h=e.pageX-m.pageX,j=e.pageY-m.pageY;if(i(a.target,h,j))return;d(h,j),m=e;var k=new Date().getTime(),l=k-n;0<l&&(o.x=h/l,o.y=j/l,n=k),c(h,j)&&a.preventDefault()}}function k(){b.settings.swipeEasing&&(clearInterval(p),p=setInterval(function(){return b.isInitialized?void clearInterval(p):o.x||o.y?.01>u(o.x)&&.01>u(o.y)?void clearInterval(p):b.element?void(d(30*o.x,30*o.y),o.x*=.8,o.y*=.8):void clearInterval(p):void clearInterval(p)},10))}if(E.supportsTouch||E.supportsIePointer){var l=b.element,m={},n=0,o={},p=null;E.supportsTouch?(b.event.bind(l,"touchstart",h),b.event.bind(l,"touchmove",j),b.event.bind(l,"touchend",k)):E.supportsIePointer&&(window.PointerEvent?(b.event.bind(l,"pointerdown",h),b.event.bind(l,"pointermove",j),b.event.bind(l,"pointerup",k)):window.MSPointerEvent&&(b.event.bind(l,"MSPointerDown",h),b.event.bind(l,"MSPointerMove",j),b.event.bind(l,"MSPointerUp",k)))}}},H=function(d,e){var f=this;if(void 0===e&&(e={}),"string"==typeof d&&(d=document.querySelector(d)),!d||!d.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var g in this.element=d,d.classList.add(z.main),this.settings=F(),e)this.settings[g]=e[g];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var h=function(){return d.classList.add(z.state.focus)},i=function(){return d.classList.remove(z.state.focus)};this.isRtl="rtl"===a(d).direction,!0===this.isRtl&&d.classList.add(z.rtl),this.isNegativeScroll=function(){var a=d.scrollLeft,b=null;return d.scrollLeft=-1,b=0>d.scrollLeft,d.scrollLeft=a,b}(),this.negativeScrollAdjustment=this.isNegativeScroll?d.scrollWidth-d.clientWidth:0,this.event=new D,this.ownerDocument=d.ownerDocument||document,this.scrollbarXRail=c(z.element.rail("x")),d.appendChild(this.scrollbarXRail),this.scrollbarX=c(z.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",h),this.event.bind(this.scrollbarX,"blur",i),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var j=a(this.scrollbarXRail);this.scrollbarXBottom=parseInt(j.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=n(j.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=n(j.borderLeftWidth)+n(j.borderRightWidth),b(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=n(j.marginLeft)+n(j.marginRight),b(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=c(z.element.rail("y")),d.appendChild(this.scrollbarYRail),this.scrollbarY=c(z.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",h),this.event.bind(this.scrollbarY,"blur",i),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var k=a(this.scrollbarYRail);this.scrollbarYRight=parseInt(k.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=n(k.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?p(this.scrollbarY):null,this.railBorderYWidth=n(k.borderTopWidth)+n(k.borderBottomWidth),b(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=n(k.marginTop)+n(k.marginBottom),b(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:0>=d.scrollLeft?"start":d.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:0>=d.scrollTop?"start":d.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(a){return G[a](f)}),this.lastScrollTop=v(d.scrollTop),this.lastScrollLeft=d.scrollLeft,this.event.bind(this.element,"scroll",function(a){return f.onScroll(a)}),q(this)};return H.prototype.update=function(){this.isAlive&&(// Recalcuate negative scrollLeft adjustment
|
16 |
// Recalculate rail margins
|
17 |
// Hide scrollbars not to affect scrollWidth and scrollHeight
|
18 |
this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,b(this.scrollbarXRail,{display:"block"}),b(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=n(a(this.scrollbarXRail).marginLeft)+n(a(this.scrollbarXRail).marginRight),this.railYMarginHeight=n(a(this.scrollbarYRail).marginTop)+n(a(this.scrollbarYRail).marginBottom),b(this.scrollbarXRail,{display:"none"}),b(this.scrollbarYRail,{display:"none"}),q(this),l(this,"top",0,!1,!0),l(this,"left",0,!1,!0),b(this.scrollbarXRail,{display:""}),b(this.scrollbarYRail,{display:""}))},H.prototype.onScroll=function(){this.isAlive&&(q(this),l(this,"top",this.element.scrollTop-this.lastScrollTop),l(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=v(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},H.prototype.destroy=function(){this.isAlive&&(// unset elements
|
assets/prettyphoto/LICENSE
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Creative Commons 2.5
|
2 |
+
http://creativecommons.org/licenses/by/2.5/
|
3 |
+
|
4 |
+
OR
|
5 |
+
|
6 |
+
GPLV2 license
|
7 |
+
http://www.gnu.org/licenses/gpl-2.0.html
|
8 |
+
|
9 |
+
You are free to use prettyPhoto in commercial projects as long as the
|
10 |
+
copyright header is left intact.
|
assets/prettyphoto/README.md
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
prettyPhoto v3.1.4
|
2 |
+
© Copyright, Stephane Caron
|
3 |
+
http://www.no-margin-for-errors.com
|
4 |
+
|
5 |
+
|
6 |
+
============================= Released under =============================
|
7 |
+
|
8 |
+
Creative Commons 2.5
|
9 |
+
http://creativecommons.org/licenses/by/2.5/
|
10 |
+
|
11 |
+
OR
|
12 |
+
|
13 |
+
GPLV2 license
|
14 |
+
http://www.gnu.org/licenses/gpl-2.0.html
|
15 |
+
|
16 |
+
You are free to use prettyPhoto in commercial projects as long as the
|
17 |
+
copyright header is left intact.
|
18 |
+
|
19 |
+
============================ More information ============================
|
20 |
+
http://www.no-margin-for-errors.com/projects/prettyPhoto/
|
21 |
+
|
22 |
+
|
23 |
+
============================== Description ===============================
|
24 |
+
|
25 |
+
prettyPhoto is a jQuery based lightbox clone. Not only does it support images,
|
26 |
+
it also add support for videos, flash, YouTube, iFrame. It's a full blown
|
27 |
+
media modal box.
|
28 |
+
|
29 |
+
Please refer to http://www.no-margin-for-errors.com/projects/prettyPhoto/
|
30 |
+
for all the details on how to use.
|
assets/select2/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The MIT License (MIT)
|
2 |
+
|
3 |
+
Copyright (c) 2012-2017 Kevin Brown, Igor Vaynberg, and Select2 contributors
|
4 |
+
|
5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6 |
+
of this software and associated documentation files (the "Software"), to deal
|
7 |
+
in the Software without restriction, including without limitation the rights
|
8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9 |
+
copies of the Software, and to permit persons to whom the Software is
|
10 |
+
furnished to do so, subject to the following conditions:
|
11 |
+
|
12 |
+
The above copyright notice and this permission notice shall be included in
|
13 |
+
all copies or substantial portions of the Software.
|
14 |
+
|
15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21 |
+
THE SOFTWARE.
|
assets/select2/README.md
ADDED
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Select2
|
2 |
+
=======
|
3 |
+
![Build Status][github-actions-image]
|
4 |
+
[![Financial Contributors on Open Collective](https://opencollective.com/select2/all/badge.svg?label=financial+contributors)](https://opencollective.com/select2)
|
5 |
+
[![jsdelivr](https://data.jsdelivr.com/v1/package/npm/select2/badge)][jsdelivr]
|
6 |
+
[![cdnjs](https://img.shields.io/cdnjs/v/select2.svg)][cdnjs]
|
7 |
+
|
8 |
+
Select2 is a jQuery-based replacement for select boxes. It supports searching,
|
9 |
+
remote data sets, and pagination of results.
|
10 |
+
|
11 |
+
To get started, checkout examples and documentation at
|
12 |
+
https://select2.org/
|
13 |
+
|
14 |
+
Use cases
|
15 |
+
---------
|
16 |
+
* Enhancing native selects with search.
|
17 |
+
* Enhancing native selects with a better multi-select interface.
|
18 |
+
* Loading data from JavaScript: easily load items via AJAX and have them
|
19 |
+
searchable.
|
20 |
+
* Nesting optgroups: native selects only support one level of nesting. Select2
|
21 |
+
does not have this restriction.
|
22 |
+
* Tagging: ability to add new items on the fly.
|
23 |
+
* Working with large, remote datasets: ability to partially load a dataset based
|
24 |
+
on the search term.
|
25 |
+
* Paging of large datasets: easy support for loading more pages when the results
|
26 |
+
are scrolled to the end.
|
27 |
+
* Templating: support for custom rendering of results and selections.
|
28 |
+
|
29 |
+
Browser compatibility
|
30 |
+
---------------------
|
31 |
+
* IE 8+
|
32 |
+
* Chrome 8+
|
33 |
+
* Firefox 10+
|
34 |
+
* Safari 3+
|
35 |
+
* Opera 10.6+
|
36 |
+
|
37 |
+
Usage
|
38 |
+
-----
|
39 |
+
You can source Select2 directly from a CDN like [jsDelivr][jsdelivr] or
|
40 |
+
[cdnjs][cdnjs], [download it from this GitHub repo][releases], or use one of
|
41 |
+
the integrations below.
|
42 |
+
|
43 |
+
Integrations
|
44 |
+
------------
|
45 |
+
Third party developers have created plugins for platforms which allow Select2 to be integrated more natively and quickly. For many platforms, additional plugins are not required because Select2 acts as a standard `<select>` box.
|
46 |
+
|
47 |
+
Plugins
|
48 |
+
|
49 |
+
* [Backdrop CMS][backdrop-cms] - [backdrop-select2]
|
50 |
+
* [Django]
|
51 |
+
- [django-autocomplete-light]
|
52 |
+
- [django-easy-select2]
|
53 |
+
- [django-select2]
|
54 |
+
* [Drupal] - [drupal-select2]
|
55 |
+
* [Meteor] - [meteor-select2]
|
56 |
+
* [Ruby on Rails][ruby-on-rails] - [select2-rails]
|
57 |
+
* [Wicket] - [wicketstuff-select2]
|
58 |
+
* [Yii 2][yii2] - [yii2-widget-select2]
|
59 |
+
* [Angularjs][angularjs] - [mdr-angular-select2]
|
60 |
+
|
61 |
+
Themes
|
62 |
+
|
63 |
+
- [Bootstrap 3][bootstrap3] - [select2-bootstrap-theme]
|
64 |
+
- [Bootstrap 4][bootstrap4] - [select2-bootstrap4-theme]
|
65 |
+
- [Bootstrap 5](https://getbootstrap.com/docs/5.0) - [select2-bootstrap-5-theme](https://github.com/apalfrey/select2-bootstrap-5-theme)
|
66 |
+
- [Flat UI][flat-ui] - [select2-flat-theme]
|
67 |
+
|
68 |
+
Missing an integration? Modify this `README` and make a pull request back here to Select2 on GitHub.
|
69 |
+
|
70 |
+
Internationalization (i18n)
|
71 |
+
---------------------------
|
72 |
+
Select2 supports multiple languages by simply including the right language JS
|
73 |
+
file (`dist/js/i18n/it.js`, `dist/js/i18n/nl.js`, etc.) after
|
74 |
+
`dist/js/select2.js`.
|
75 |
+
|
76 |
+
Missing a language? Just copy `src/js/select2/i18n/en.js`, translate it, and
|
77 |
+
make a pull request back to Select2 here on GitHub.
|
78 |
+
|
79 |
+
Documentation
|
80 |
+
-------------
|
81 |
+
The documentation for Select2 is available
|
82 |
+
[online at the documentation website][documentation] and is located within the
|
83 |
+
[`docs` directory of this repository][documentation-directory].
|
84 |
+
|
85 |
+
Community
|
86 |
+
---------
|
87 |
+
You can find out about the different ways to get in touch with the Select2
|
88 |
+
community at the [Select2 community page][community].
|
89 |
+
|
90 |
+
Copyright and license
|
91 |
+
---------------------
|
92 |
+
The license is available within the repository in the [LICENSE][license] file.
|
93 |
+
|
94 |
+
Contributors
|
95 |
+
------------
|
96 |
+
|
97 |
+
### Code Contributors
|
98 |
+
|
99 |
+
This project exists thanks to all the people who contribute. [[Contribute](.github/CONTRIBUTING.md)].
|
100 |
+
<a href="https://github.com/select2/select2/graphs/contributors"><img src="https://opencollective.com/select2/contributors.svg?width=890&button=false" /></a>
|
101 |
+
|
102 |
+
### Financial Contributors
|
103 |
+
|
104 |
+
Become a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/select2/contribute)]
|
105 |
+
|
106 |
+
#### Individuals
|
107 |
+
|
108 |
+
<a href="https://opencollective.com/select2"><img src="https://opencollective.com/select2/individuals.svg?width=890"></a>
|
109 |
+
|
110 |
+
#### Organizations
|
111 |
+
|
112 |
+
Support this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/select2/contribute)]
|
113 |
+
|
114 |
+
<a href="https://opencollective.com/select2/organization/0/website"><img src="https://opencollective.com/select2/organization/0/avatar.svg"></a>
|
115 |
+
<a href="https://opencollective.com/select2/organization/1/website"><img src="https://opencollective.com/select2/organization/1/avatar.svg"></a>
|
116 |
+
<a href="https://opencollective.com/select2/organization/2/website"><img src="https://opencollective.com/select2/organization/2/avatar.svg"></a>
|
117 |
+
<a href="https://opencollective.com/select2/organization/3/website"><img src="https://opencollective.com/select2/organization/3/avatar.svg"></a>
|
118 |
+
<a href="https://opencollective.com/select2/organization/4/website"><img src="https://opencollective.com/select2/organization/4/avatar.svg"></a>
|
119 |
+
<a href="https://opencollective.com/select2/organization/5/website"><img src="https://opencollective.com/select2/organization/5/avatar.svg"></a>
|
120 |
+
<a href="https://opencollective.com/select2/organization/6/website"><img src="https://opencollective.com/select2/organization/6/avatar.svg"></a>
|
121 |
+
<a href="https://opencollective.com/select2/organization/7/website"><img src="https://opencollective.com/select2/organization/7/avatar.svg"></a>
|
122 |
+
<a href="https://opencollective.com/select2/organization/8/website"><img src="https://opencollective.com/select2/organization/8/avatar.svg"></a>
|
123 |
+
<a href="https://opencollective.com/select2/organization/9/website"><img src="https://opencollective.com/select2/organization/9/avatar.svg"></a>
|
124 |
+
|
125 |
+
|
126 |
+
[cdnjs]: http://www.cdnjs.com/libraries/select2
|
127 |
+
[community]: https://select2.org/getting-help
|
128 |
+
[documentation]: https://select2.org
|
129 |
+
[documentation-directory]: https://github.com/select2/select2/tree/develop/docs
|
130 |
+
[freenode]: https://freenode.net/
|
131 |
+
[github-actions-image]: https://github.com/select2/select2/workflows/CI/badge.svg
|
132 |
+
[jsdelivr]: https://www.jsdelivr.com/package/npm/select2
|
133 |
+
[license]: LICENSE.md
|
134 |
+
[releases]: https://github.com/select2/select2/releases
|
135 |
+
|
136 |
+
[angularjs]: https://angularjs.org/
|
137 |
+
[backdrop-cms]: https://backdropcms.org/
|
138 |
+
[backdrop-select2]: https://backdropcms.org/project/select2
|
139 |
+
[bootstrap3]: https://getbootstrap.com/
|
140 |
+
[bootstrap4]: https://getbootstrap.com/
|
141 |
+
[django]: https://www.djangoproject.com/
|
142 |
+
[django-autocomplete-light]: https://github.com/yourlabs/django-autocomplete-light
|
143 |
+
[django-easy-select2]: https://github.com/asyncee/django-easy-select2
|
144 |
+
[django-select2]: https://github.com/applegrew/django-select2
|
145 |
+
[drupal]: https://www.drupal.org/
|
146 |
+
[drupal-select2]: https://www.drupal.org/project/select2
|
147 |
+
[flat-ui]: http://designmodo.github.io/Flat-UI/
|
148 |
+
[mdr-angular-select2]: https://github.com/modulr/mdr-angular-select2
|
149 |
+
[meteor]: https://www.meteor.com/
|
150 |
+
[meteor-select2]: https://github.com/nate-strauser/meteor-select2
|
151 |
+
[ruby-on-rails]: http://rubyonrails.org/
|
152 |
+
[select2-bootstrap-theme]: https://github.com/select2/select2-bootstrap-theme
|
153 |
+
[select2-bootstrap4-theme]: https://github.com/ttskch/select2-bootstrap4-theme
|
154 |
+
[select2-flat-theme]: https://github.com/techhysahil/select2-Flat_Theme
|
155 |
+
[select2-rails]: https://github.com/argerim/select2-rails
|
156 |
+
[vue.js]: http://vuejs.org/
|
157 |
+
[select2-vue]: http://vuejs.org/examples/select2.html
|
158 |
+
[wicket]: https://wicket.apache.org/
|
159 |
+
[wicketstuff-select2]: https://github.com/wicketstuff/core/tree/master/select2-parent
|
160 |
+
[yii2]: http://www.yiiframework.com/
|
161 |
+
[yii2-widget-select2]: https://github.com/kartik-v/yii2-widget-select2
|
assets/select2/i18n/af.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/af",[],function(){return{errorLoading:function(){return"Die resultate kon nie gelaai word nie."},inputTooLong:function(e){var n=e.input.length-e.maximum,r="Verwyders asseblief "+n+" character";return 1!=n&&(r+="s"),r},inputTooShort:function(e){return"Voer asseblief "+(e.minimum-e.input.length)+" of meer karakters"},loadingMore:function(){return"Meer resultate word gelaai…"},maximumSelected:function(e){var n="Kies asseblief net "+e.maximum+" item";return 1!=e.maximum&&(n+="s"),n},noResults:function(){return"Geen resultate gevind"},searching:function(){return"Besig…"},removeAllItems:function(){return"Verwyder alle items"}}}),e.define,e.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/af",[],function(){return{errorLoading:function(){return"Die resultate kon nie gelaai word nie."},inputTooLong:function(e){var n=e.input.length-e.maximum,r="Verwyders asseblief "+n+" character";return 1!=n&&(r+="s"),r},inputTooShort:function(e){return"Voer asseblief "+(e.minimum-e.input.length)+" of meer karakters"},loadingMore:function(){return"Meer resultate word gelaai…"},maximumSelected:function(e){var n="Kies asseblief net "+e.maximum+" item";return 1!=e.maximum&&(n+="s"),n},noResults:function(){return"Geen resultate gevind"},searching:function(){return"Besig…"},removeAllItems:function(){return"Verwyder alle items"}}}),e.define,e.require}();
|
assets/select2/i18n/ar.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ar",[],function(){return{errorLoading:function(){return"لا يمكن تحميل النتائج"},inputTooLong:function(n){return"الرجاء حذف "+(n.input.length-n.maximum)+" عناصر"},inputTooShort:function(n){return"الرجاء إضافة "+(n.minimum-n.input.length)+" عناصر"},loadingMore:function(){return"جاري تحميل نتائج إضافية..."},maximumSelected:function(n){return"تستطيع إختيار "+n.maximum+" بنود فقط"},noResults:function(){return"لم يتم العثور على أي نتائج"},searching:function(){return"جاري البحث…"},removeAllItems:function(){return"قم بإزالة كل العناصر"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ar",[],function(){return{errorLoading:function(){return"لا يمكن تحميل النتائج"},inputTooLong:function(n){return"الرجاء حذف "+(n.input.length-n.maximum)+" عناصر"},inputTooShort:function(n){return"الرجاء إضافة "+(n.minimum-n.input.length)+" عناصر"},loadingMore:function(){return"جاري تحميل نتائج إضافية..."},maximumSelected:function(n){return"تستطيع إختيار "+n.maximum+" بنود فقط"},noResults:function(){return"لم يتم العثور على أي نتائج"},searching:function(){return"جاري البحث…"},removeAllItems:function(){return"قم بإزالة كل العناصر"}}}),n.define,n.require}();
|
assets/select2/i18n/az.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/az",[],function(){return{inputTooLong:function(n){return n.input.length-n.maximum+" simvol silin"},inputTooShort:function(n){return n.minimum-n.input.length+" simvol daxil edin"},loadingMore:function(){return"Daha çox nəticə yüklənir…"},maximumSelected:function(n){return"Sadəcə "+n.maximum+" element seçə bilərsiniz"},noResults:function(){return"Nəticə tapılmadı"},searching:function(){return"Axtarılır…"},removeAllItems:function(){return"Bütün elementləri sil"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/az",[],function(){return{inputTooLong:function(n){return n.input.length-n.maximum+" simvol silin"},inputTooShort:function(n){return n.minimum-n.input.length+" simvol daxil edin"},loadingMore:function(){return"Daha çox nəticə yüklənir…"},maximumSelected:function(n){return"Sadəcə "+n.maximum+" element seçə bilərsiniz"},noResults:function(){return"Nəticə tapılmadı"},searching:function(){return"Axtarılır…"},removeAllItems:function(){return"Bütün elementləri sil"}}}),n.define,n.require}();
|
assets/select2/i18n/bg.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/bg",[],function(){return{inputTooLong:function(n){var e=n.input.length-n.maximum,u="Моля въведете с "+e+" по-малко символ";return e>1&&(u+="a"),u},inputTooShort:function(n){var e=n.minimum-n.input.length,u="Моля въведете още "+e+" символ";return e>1&&(u+="a"),u},loadingMore:function(){return"Зареждат се още…"},maximumSelected:function(n){var e="Можете да направите до "+n.maximum+" ";return n.maximum>1?e+="избора":e+="избор",e},noResults:function(){return"Няма намерени съвпадения"},searching:function(){return"Търсене…"},removeAllItems:function(){return"Премахнете всички елементи"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/bg",[],function(){return{inputTooLong:function(n){var e=n.input.length-n.maximum,u="Моля въведете с "+e+" по-малко символ";return e>1&&(u+="a"),u},inputTooShort:function(n){var e=n.minimum-n.input.length,u="Моля въведете още "+e+" символ";return e>1&&(u+="a"),u},loadingMore:function(){return"Зареждат се още…"},maximumSelected:function(n){var e="Можете да направите до "+n.maximum+" ";return n.maximum>1?e+="избора":e+="избор",e},noResults:function(){return"Няма намерени съвпадения"},searching:function(){return"Търсене…"},removeAllItems:function(){return"Премахнете всички елементи"}}}),n.define,n.require}();
|
assets/select2/i18n/bn.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/bn",[],function(){return{errorLoading:function(){return"ফলাফলগুলি লোড করা যায়নি।"},inputTooLong:function(n){var e=n.input.length-n.maximum,u="অনুগ্রহ করে "+e+" টি অক্ষর মুছে দিন।";return 1!=e&&(u="অনুগ্রহ করে "+e+" টি অক্ষর মুছে দিন।"),u},inputTooShort:function(n){return n.minimum-n.input.length+" টি অক্ষর অথবা অধিক অক্ষর লিখুন।"},loadingMore:function(){return"আরো ফলাফল লোড হচ্ছে ..."},maximumSelected:function(n){var e=n.maximum+" টি আইটেম নির্বাচন করতে পারবেন।";return 1!=n.maximum&&(e=n.maximum+" টি আইটেম নির্বাচন করতে পারবেন।"),e},noResults:function(){return"কোন ফলাফল পাওয়া যায়নি।"},searching:function(){return"অনুসন্ধান করা হচ্ছে ..."}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/bn",[],function(){return{errorLoading:function(){return"ফলাফলগুলি লোড করা যায়নি।"},inputTooLong:function(n){var e=n.input.length-n.maximum,u="অনুগ্রহ করে "+e+" টি অক্ষর মুছে দিন।";return 1!=e&&(u="অনুগ্রহ করে "+e+" টি অক্ষর মুছে দিন।"),u},inputTooShort:function(n){return n.minimum-n.input.length+" টি অক্ষর অথবা অধিক অক্ষর লিখুন।"},loadingMore:function(){return"আরো ফলাফল লোড হচ্ছে ..."},maximumSelected:function(n){var e=n.maximum+" টি আইটেম নির্বাচন করতে পারবেন।";return 1!=n.maximum&&(e=n.maximum+" টি আইটেম নির্বাচন করতে পারবেন।"),e},noResults:function(){return"কোন ফলাফল পাওয়া যায়নি।"},searching:function(){return"অনুসন্ধান করা হচ্ছে ..."}}}),n.define,n.require}();
|
assets/select2/i18n/bs.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/bs",[],function(){function e(e,n,r,t){return e%10==1&&e%100!=11?n:e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?r:t}return{errorLoading:function(){return"Preuzimanje nije uspijelo."},inputTooLong:function(n){var r=n.input.length-n.maximum,t="Obrišite "+r+" simbol";return t+=e(r,"","a","a")},inputTooShort:function(n){var r=n.minimum-n.input.length,t="Ukucajte bar još "+r+" simbol";return t+=e(r,"","a","a")},loadingMore:function(){return"Preuzimanje još rezultata…"},maximumSelected:function(n){var r="Možete izabrati samo "+n.maximum+" stavk";return r+=e(n.maximum,"u","e","i")},noResults:function(){return"Ništa nije pronađeno"},searching:function(){return"Pretraga…"},removeAllItems:function(){return"Uklonite sve stavke"}}}),e.define,e.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/bs",[],function(){function e(e,n,r,t){return e%10==1&&e%100!=11?n:e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?r:t}return{errorLoading:function(){return"Preuzimanje nije uspijelo."},inputTooLong:function(n){var r=n.input.length-n.maximum,t="Obrišite "+r+" simbol";return t+=e(r,"","a","a")},inputTooShort:function(n){var r=n.minimum-n.input.length,t="Ukucajte bar još "+r+" simbol";return t+=e(r,"","a","a")},loadingMore:function(){return"Preuzimanje još rezultata…"},maximumSelected:function(n){var r="Možete izabrati samo "+n.maximum+" stavk";return r+=e(n.maximum,"u","e","i")},noResults:function(){return"Ništa nije pronađeno"},searching:function(){return"Pretraga…"},removeAllItems:function(){return"Uklonite sve stavke"}}}),e.define,e.require}();
|
assets/select2/i18n/ca.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/ca",[],function(){return{errorLoading:function(){return"La càrrega ha fallat"},inputTooLong:function(e){var n=e.input.length-e.maximum,r="Si us plau, elimina "+n+" car";return r+=1==n?"àcter":"àcters"},inputTooShort:function(e){var n=e.minimum-e.input.length,r="Si us plau, introdueix "+n+" car";return r+=1==n?"àcter":"àcters"},loadingMore:function(){return"Carregant més resultats…"},maximumSelected:function(e){var n="Només es pot seleccionar "+e.maximum+" element";return 1!=e.maximum&&(n+="s"),n},noResults:function(){return"No s'han trobat resultats"},searching:function(){return"Cercant…"},removeAllItems:function(){return"Treu tots els elements"}}}),e.define,e.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/ca",[],function(){return{errorLoading:function(){return"La càrrega ha fallat"},inputTooLong:function(e){var n=e.input.length-e.maximum,r="Si us plau, elimina "+n+" car";return r+=1==n?"àcter":"àcters"},inputTooShort:function(e){var n=e.minimum-e.input.length,r="Si us plau, introdueix "+n+" car";return r+=1==n?"àcter":"àcters"},loadingMore:function(){return"Carregant més resultats…"},maximumSelected:function(e){var n="Només es pot seleccionar "+e.maximum+" element";return 1!=e.maximum&&(n+="s"),n},noResults:function(){return"No s'han trobat resultats"},searching:function(){return"Cercant…"},removeAllItems:function(){return"Treu tots els elements"}}}),e.define,e.require}();
|
assets/select2/i18n/cs.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/cs",[],function(){function e(e,n){switch(e){case 2:return n?"dva":"dvě";case 3:return"tři";case 4:return"čtyři"}return""}return{errorLoading:function(){return"Výsledky nemohly být načteny."},inputTooLong:function(n){var t=n.input.length-n.maximum;return 1==t?"Prosím, zadejte o jeden znak méně.":t<=4?"Prosím, zadejte o "+e(t,!0)+" znaky méně.":"Prosím, zadejte o "+t+" znaků méně."},inputTooShort:function(n){var t=n.minimum-n.input.length;return 1==t?"Prosím, zadejte ještě jeden znak.":t<=4?"Prosím, zadejte ještě další "+e(t,!0)+" znaky.":"Prosím, zadejte ještě dalších "+t+" znaků."},loadingMore:function(){return"Načítají se další výsledky…"},maximumSelected:function(n){var t=n.maximum;return 1==t?"Můžete zvolit jen jednu položku.":t<=4?"Můžete zvolit maximálně "+e(t,!1)+" položky.":"Můžete zvolit maximálně "+t+" položek."},noResults:function(){return"Nenalezeny žádné položky."},searching:function(){return"Vyhledávání…"},removeAllItems:function(){return"Odstraňte všechny položky"}}}),e.define,e.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/cs",[],function(){function e(e,n){switch(e){case 2:return n?"dva":"dvě";case 3:return"tři";case 4:return"čtyři"}return""}return{errorLoading:function(){return"Výsledky nemohly být načteny."},inputTooLong:function(n){var t=n.input.length-n.maximum;return 1==t?"Prosím, zadejte o jeden znak méně.":t<=4?"Prosím, zadejte o "+e(t,!0)+" znaky méně.":"Prosím, zadejte o "+t+" znaků méně."},inputTooShort:function(n){var t=n.minimum-n.input.length;return 1==t?"Prosím, zadejte ještě jeden znak.":t<=4?"Prosím, zadejte ještě další "+e(t,!0)+" znaky.":"Prosím, zadejte ještě dalších "+t+" znaků."},loadingMore:function(){return"Načítají se další výsledky…"},maximumSelected:function(n){var t=n.maximum;return 1==t?"Můžete zvolit jen jednu položku.":t<=4?"Můžete zvolit maximálně "+e(t,!1)+" položky.":"Můžete zvolit maximálně "+t+" položek."},noResults:function(){return"Nenalezeny žádné položky."},searching:function(){return"Vyhledávání…"},removeAllItems:function(){return"Odstraňte všechny položky"}}}),e.define,e.require}();
|
assets/select2/i18n/da.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/da",[],function(){return{errorLoading:function(){return"Resultaterne kunne ikke indlæses."},inputTooLong:function(e){return"Angiv venligst "+(e.input.length-e.maximum)+" tegn mindre"},inputTooShort:function(e){return"Angiv venligst "+(e.minimum-e.input.length)+" tegn mere"},loadingMore:function(){return"Indlæser flere resultater…"},maximumSelected:function(e){var n="Du kan kun vælge "+e.maximum+" emne";return 1!=e.maximum&&(n+="r"),n},noResults:function(){return"Ingen resultater fundet"},searching:function(){return"Søger…"},removeAllItems:function(){return"Fjern alle elementer"}}}),e.define,e.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/da",[],function(){return{errorLoading:function(){return"Resultaterne kunne ikke indlæses."},inputTooLong:function(e){return"Angiv venligst "+(e.input.length-e.maximum)+" tegn mindre"},inputTooShort:function(e){return"Angiv venligst "+(e.minimum-e.input.length)+" tegn mere"},loadingMore:function(){return"Indlæser flere resultater…"},maximumSelected:function(e){var n="Du kan kun vælge "+e.maximum+" emne";return 1!=e.maximum&&(n+="r"),n},noResults:function(){return"Ingen resultater fundet"},searching:function(){return"Søger…"},removeAllItems:function(){return"Fjern alle elementer"}}}),e.define,e.require}();
|
assets/select2/i18n/de.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/de",[],function(){return{errorLoading:function(){return"Die Ergebnisse konnten nicht geladen werden."},inputTooLong:function(e){return"Bitte "+(e.input.length-e.maximum)+" Zeichen weniger eingeben"},inputTooShort:function(e){return"Bitte "+(e.minimum-e.input.length)+" Zeichen mehr eingeben"},loadingMore:function(){return"Lade mehr Ergebnisse…"},maximumSelected:function(e){var n="Sie können nur "+e.maximum+" Element";return 1!=e.maximum&&(n+="e"),n+=" auswählen"},noResults:function(){return"Keine Übereinstimmungen gefunden"},searching:function(){return"Suche…"},removeAllItems:function(){return"Entferne alle Elemente"}}}),e.define,e.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/de",[],function(){return{errorLoading:function(){return"Die Ergebnisse konnten nicht geladen werden."},inputTooLong:function(e){return"Bitte "+(e.input.length-e.maximum)+" Zeichen weniger eingeben"},inputTooShort:function(e){return"Bitte "+(e.minimum-e.input.length)+" Zeichen mehr eingeben"},loadingMore:function(){return"Lade mehr Ergebnisse…"},maximumSelected:function(e){var n="Sie können nur "+e.maximum+" Element";return 1!=e.maximum&&(n+="e"),n+=" auswählen"},noResults:function(){return"Keine Übereinstimmungen gefunden"},searching:function(){return"Suche…"},removeAllItems:function(){return"Entferne alle Elemente"}}}),e.define,e.require}();
|
assets/select2/i18n/dsb.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/dsb",[],function(){var n=["znamuško","znamušce","znamuška","znamuškow"],e=["zapisk","zapiska","zapiski","zapiskow"],u=function(n,e){return 1===n?e[0]:2===n?e[1]:n>2&&n<=4?e[2]:n>=5?e[3]:void 0};return{errorLoading:function(){return"Wuslědki njejsu se dali zacytaś."},inputTooLong:function(e){var a=e.input.length-e.maximum;return"Pšosym lašuj "+a+" "+u(a,n)},inputTooShort:function(e){var a=e.minimum-e.input.length;return"Pšosym zapódaj nanejmjenjej "+a+" "+u(a,n)},loadingMore:function(){return"Dalšne wuslědki se zacytaju…"},maximumSelected:function(n){return"Móžoš jano "+n.maximum+" "+u(n.maximum,e)+"wubraś."},noResults:function(){return"Žedne wuslědki namakane"},searching:function(){return"Pyta se…"},removeAllItems:function(){return"Remove all items"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/dsb",[],function(){var n=["znamuško","znamušce","znamuška","znamuškow"],e=["zapisk","zapiska","zapiski","zapiskow"],u=function(n,e){return 1===n?e[0]:2===n?e[1]:n>2&&n<=4?e[2]:n>=5?e[3]:void 0};return{errorLoading:function(){return"Wuslědki njejsu se dali zacytaś."},inputTooLong:function(e){var a=e.input.length-e.maximum;return"Pšosym lašuj "+a+" "+u(a,n)},inputTooShort:function(e){var a=e.minimum-e.input.length;return"Pšosym zapódaj nanejmjenjej "+a+" "+u(a,n)},loadingMore:function(){return"Dalšne wuslědki se zacytaju…"},maximumSelected:function(n){return"Móžoš jano "+n.maximum+" "+u(n.maximum,e)+"wubraś."},noResults:function(){return"Žedne wuslědki namakane"},searching:function(){return"Pyta se…"},removeAllItems:function(){return"Remove all items"}}}),n.define,n.require}();
|
assets/select2/i18n/el.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/el",[],function(){return{errorLoading:function(){return"Τα αποτελέσματα δεν μπόρεσαν να φορτώσουν."},inputTooLong:function(n){var e=n.input.length-n.maximum,u="Παρακαλώ διαγράψτε "+e+" χαρακτήρ";return 1==e&&(u+="α"),1!=e&&(u+="ες"),u},inputTooShort:function(n){return"Παρακαλώ συμπληρώστε "+(n.minimum-n.input.length)+" ή περισσότερους χαρακτήρες"},loadingMore:function(){return"Φόρτωση περισσότερων αποτελεσμάτων…"},maximumSelected:function(n){var e="Μπορείτε να επιλέξετε μόνο "+n.maximum+" επιλογ";return 1==n.maximum&&(e+="ή"),1!=n.maximum&&(e+="ές"),e},noResults:function(){return"Δεν βρέθηκαν αποτελέσματα"},searching:function(){return"Αναζήτηση…"},removeAllItems:function(){return"Καταργήστε όλα τα στοιχεία"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/el",[],function(){return{errorLoading:function(){return"Τα αποτελέσματα δεν μπόρεσαν να φορτώσουν."},inputTooLong:function(n){var e=n.input.length-n.maximum,u="Παρακαλώ διαγράψτε "+e+" χαρακτήρ";return 1==e&&(u+="α"),1!=e&&(u+="ες"),u},inputTooShort:function(n){return"Παρακαλώ συμπληρώστε "+(n.minimum-n.input.length)+" ή περισσότερους χαρακτήρες"},loadingMore:function(){return"Φόρτωση περισσότερων αποτελεσμάτων…"},maximumSelected:function(n){var e="Μπορείτε να επιλέξετε μόνο "+n.maximum+" επιλογ";return 1==n.maximum&&(e+="ή"),1!=n.maximum&&(e+="ές"),e},noResults:function(){return"Δεν βρέθηκαν αποτελέσματα"},searching:function(){return"Αναζήτηση…"},removeAllItems:function(){return"Καταργήστε όλα τα στοιχεία"}}}),n.define,n.require}();
|
assets/select2/i18n/en.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
-
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var n=e.input.length-e.maximum,r="Please delete "+n+" character";return 1!=n&&(r+="s"),r},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var n="You can only select "+e.maximum+" item";return 1!=e.maximum&&(n+="s"),n},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"}}}),e.define,e.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
+
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var n=e.input.length-e.maximum,r="Please delete "+n+" character";return 1!=n&&(r+="s"),r},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var n="You can only select "+e.maximum+" item";return 1!=e.maximum&&(n+="s"),n},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"}}}),e.define,e.require}();
|
assets/select2/i18n/eo.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/eo",[],function(){return{errorLoading:function(){return"La rezultoj ne povas esti ŝargitaj."},inputTooLong:function(n){var e=n.input.length-n.maximum,r="Bonvolu forigi "+e+" signo";return r+=1==e?"n":"jn"},inputTooShort:function(n){return"Bv. enigi "+(n.minimum-n.input.length)+" aŭ pli multajn signojn"},loadingMore:function(){return"Ŝargado de pliaj rezultoj…"},maximumSelected:function(n){var e="Vi povas elekti nur "+n.maximum+" ero";return 1==n.maximum?e+="n":e+="jn",e},noResults:function(){return"Neniuj rezultoj trovitaj"},searching:function(){return"Serĉado…"},removeAllItems:function(){return"Forigi ĉiujn erojn"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/eo",[],function(){return{errorLoading:function(){return"La rezultoj ne povas esti ŝargitaj."},inputTooLong:function(n){var e=n.input.length-n.maximum,r="Bonvolu forigi "+e+" signo";return r+=1==e?"n":"jn"},inputTooShort:function(n){return"Bv. enigi "+(n.minimum-n.input.length)+" aŭ pli multajn signojn"},loadingMore:function(){return"Ŝargado de pliaj rezultoj…"},maximumSelected:function(n){var e="Vi povas elekti nur "+n.maximum+" ero";return 1==n.maximum?e+="n":e+="jn",e},noResults:function(){return"Neniuj rezultoj trovitaj"},searching:function(){return"Serĉado…"},removeAllItems:function(){return"Forigi ĉiujn erojn"}}}),n.define,n.require}();
|
assets/select2/i18n/es.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/es",[],function(){return{errorLoading:function(){return"No se pudieron cargar los resultados"},inputTooLong:function(e){var n=e.input.length-e.maximum,r="Por favor, elimine "+n+" car";return r+=1==n?"ácter":"acteres"},inputTooShort:function(e){var n=e.minimum-e.input.length,r="Por favor, introduzca "+n+" car";return r+=1==n?"ácter":"acteres"},loadingMore:function(){return"Cargando más resultados…"},maximumSelected:function(e){var n="Sólo puede seleccionar "+e.maximum+" elemento";return 1!=e.maximum&&(n+="s"),n},noResults:function(){return"No se encontraron resultados"},searching:function(){return"Buscando…"},removeAllItems:function(){return"Eliminar todos los elementos"}}}),e.define,e.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/es",[],function(){return{errorLoading:function(){return"No se pudieron cargar los resultados"},inputTooLong:function(e){var n=e.input.length-e.maximum,r="Por favor, elimine "+n+" car";return r+=1==n?"ácter":"acteres"},inputTooShort:function(e){var n=e.minimum-e.input.length,r="Por favor, introduzca "+n+" car";return r+=1==n?"ácter":"acteres"},loadingMore:function(){return"Cargando más resultados…"},maximumSelected:function(e){var n="Sólo puede seleccionar "+e.maximum+" elemento";return 1!=e.maximum&&(n+="s"),n},noResults:function(){return"No se encontraron resultados"},searching:function(){return"Buscando…"},removeAllItems:function(){return"Eliminar todos los elementos"}}}),e.define,e.require}();
|
assets/select2/i18n/et.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/et",[],function(){return{inputTooLong:function(e){var n=e.input.length-e.maximum,t="Sisesta "+n+" täht";return 1!=n&&(t+="e"),t+=" vähem"},inputTooShort:function(e){var n=e.minimum-e.input.length,t="Sisesta "+n+" täht";return 1!=n&&(t+="e"),t+=" rohkem"},loadingMore:function(){return"Laen tulemusi…"},maximumSelected:function(e){var n="Saad vaid "+e.maximum+" tulemus";return 1==e.maximum?n+="e":n+="t",n+=" valida"},noResults:function(){return"Tulemused puuduvad"},searching:function(){return"Otsin…"},removeAllItems:function(){return"Eemalda kõik esemed"}}}),e.define,e.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/et",[],function(){return{inputTooLong:function(e){var n=e.input.length-e.maximum,t="Sisesta "+n+" täht";return 1!=n&&(t+="e"),t+=" vähem"},inputTooShort:function(e){var n=e.minimum-e.input.length,t="Sisesta "+n+" täht";return 1!=n&&(t+="e"),t+=" rohkem"},loadingMore:function(){return"Laen tulemusi…"},maximumSelected:function(e){var n="Saad vaid "+e.maximum+" tulemus";return 1==e.maximum?n+="e":n+="t",n+=" valida"},noResults:function(){return"Tulemused puuduvad"},searching:function(){return"Otsin…"},removeAllItems:function(){return"Eemalda kõik esemed"}}}),e.define,e.require}();
|
assets/select2/i18n/eu.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/eu",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Idatzi ";return n+=1==t?"karaktere bat":t+" karaktere",n+=" gutxiago"},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Idatzi ";return n+=1==t?"karaktere bat":t+" karaktere",n+=" gehiago"},loadingMore:function(){return"Emaitza gehiago kargatzen…"},maximumSelected:function(e){return 1===e.maximum?"Elementu bakarra hauta dezakezu":e.maximum+" elementu hauta ditzakezu soilik"},noResults:function(){return"Ez da bat datorrenik aurkitu"},searching:function(){return"Bilatzen…"},removeAllItems:function(){return"Kendu elementu guztiak"}}}),e.define,e.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/eu",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Idatzi ";return n+=1==t?"karaktere bat":t+" karaktere",n+=" gutxiago"},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Idatzi ";return n+=1==t?"karaktere bat":t+" karaktere",n+=" gehiago"},loadingMore:function(){return"Emaitza gehiago kargatzen…"},maximumSelected:function(e){return 1===e.maximum?"Elementu bakarra hauta dezakezu":e.maximum+" elementu hauta ditzakezu soilik"},noResults:function(){return"Ez da bat datorrenik aurkitu"},searching:function(){return"Bilatzen…"},removeAllItems:function(){return"Kendu elementu guztiak"}}}),e.define,e.require}();
|
assets/select2/i18n/fa.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/fa",[],function(){return{errorLoading:function(){return"امکان بارگذاری نتایج وجود ندارد."},inputTooLong:function(n){return"لطفاً "+(n.input.length-n.maximum)+" کاراکتر را حذف نمایید"},inputTooShort:function(n){return"لطفاً تعداد "+(n.minimum-n.input.length)+" کاراکتر یا بیشتر وارد نمایید"},loadingMore:function(){return"در حال بارگذاری نتایج بیشتر..."},maximumSelected:function(n){return"شما تنها میتوانید "+n.maximum+" آیتم را انتخاب نمایید"},noResults:function(){return"هیچ نتیجهای یافت نشد"},searching:function(){return"در حال جستجو..."},removeAllItems:function(){return"همه موارد را حذف کنید"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/fa",[],function(){return{errorLoading:function(){return"امکان بارگذاری نتایج وجود ندارد."},inputTooLong:function(n){return"لطفاً "+(n.input.length-n.maximum)+" کاراکتر را حذف نمایید"},inputTooShort:function(n){return"لطفاً تعداد "+(n.minimum-n.input.length)+" کاراکتر یا بیشتر وارد نمایید"},loadingMore:function(){return"در حال بارگذاری نتایج بیشتر..."},maximumSelected:function(n){return"شما تنها میتوانید "+n.maximum+" آیتم را انتخاب نمایید"},noResults:function(){return"هیچ نتیجهای یافت نشد"},searching:function(){return"در حال جستجو..."},removeAllItems:function(){return"همه موارد را حذف کنید"}}}),n.define,n.require}();
|
assets/select2/i18n/fi.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/fi",[],function(){return{errorLoading:function(){return"Tuloksia ei saatu ladattua."},inputTooLong:function(n){return"Ole hyvä ja anna "+(n.input.length-n.maximum)+" merkkiä vähemmän"},inputTooShort:function(n){return"Ole hyvä ja anna "+(n.minimum-n.input.length)+" merkkiä lisää"},loadingMore:function(){return"Ladataan lisää tuloksia…"},maximumSelected:function(n){return"Voit valita ainoastaan "+n.maximum+" kpl"},noResults:function(){return"Ei tuloksia"},searching:function(){return"Haetaan…"},removeAllItems:function(){return"Poista kaikki kohteet"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/fi",[],function(){return{errorLoading:function(){return"Tuloksia ei saatu ladattua."},inputTooLong:function(n){return"Ole hyvä ja anna "+(n.input.length-n.maximum)+" merkkiä vähemmän"},inputTooShort:function(n){return"Ole hyvä ja anna "+(n.minimum-n.input.length)+" merkkiä lisää"},loadingMore:function(){return"Ladataan lisää tuloksia…"},maximumSelected:function(n){return"Voit valita ainoastaan "+n.maximum+" kpl"},noResults:function(){return"Ei tuloksia"},searching:function(){return"Haetaan…"},removeAllItems:function(){return"Poista kaikki kohteet"}}}),n.define,n.require}();
|
assets/select2/i18n/fr.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
-
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/fr",[],function(){return{errorLoading:function(){return"Les résultats ne peuvent pas être chargés."},inputTooLong:function(e){var n=e.input.length-e.maximum;return"Supprimez "+n+" caractère"+(n>1?"s":"")},inputTooShort:function(e){var n=e.minimum-e.input.length;return"Saisissez au moins "+n+" caractère"+(n>1?"s":"")},loadingMore:function(){return"Chargement de résultats supplémentaires…"},maximumSelected:function(e){return"Vous pouvez seulement sélectionner "+e.maximum+" élément"+(e.maximum>1?"s":"")},noResults:function(){return"Aucun résultat trouvé"},searching:function(){return"Recherche en cours…"},removeAllItems:function(){return"Supprimer tous les éléments"}}}),e.define,e.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
+
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/fr",[],function(){return{errorLoading:function(){return"Les résultats ne peuvent pas être chargés."},inputTooLong:function(e){var n=e.input.length-e.maximum;return"Supprimez "+n+" caractère"+(n>1?"s":"")},inputTooShort:function(e){var n=e.minimum-e.input.length;return"Saisissez au moins "+n+" caractère"+(n>1?"s":"")},loadingMore:function(){return"Chargement de résultats supplémentaires…"},maximumSelected:function(e){return"Vous pouvez seulement sélectionner "+e.maximum+" élément"+(e.maximum>1?"s":"")},noResults:function(){return"Aucun résultat trouvé"},searching:function(){return"Recherche en cours…"},removeAllItems:function(){return"Supprimer tous les éléments"},removeItem:function(){return"Supprimer l'élément"}}}),e.define,e.require}();
|
assets/select2/i18n/gl.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/gl",[],function(){return{errorLoading:function(){return"Non foi posíbel cargar os resultados."},inputTooLong:function(e){var n=e.input.length-e.maximum;return 1===n?"Elimine un carácter":"Elimine "+n+" caracteres"},inputTooShort:function(e){var n=e.minimum-e.input.length;return 1===n?"Engada un carácter":"Engada "+n+" caracteres"},loadingMore:function(){return"Cargando máis resultados…"},maximumSelected:function(e){return 1===e.maximum?"Só pode seleccionar un elemento":"Só pode seleccionar "+e.maximum+" elementos"},noResults:function(){return"Non se atoparon resultados"},searching:function(){return"Buscando…"},removeAllItems:function(){return"Elimina todos os elementos"}}}),e.define,e.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/gl",[],function(){return{errorLoading:function(){return"Non foi posíbel cargar os resultados."},inputTooLong:function(e){var n=e.input.length-e.maximum;return 1===n?"Elimine un carácter":"Elimine "+n+" caracteres"},inputTooShort:function(e){var n=e.minimum-e.input.length;return 1===n?"Engada un carácter":"Engada "+n+" caracteres"},loadingMore:function(){return"Cargando máis resultados…"},maximumSelected:function(e){return 1===e.maximum?"Só pode seleccionar un elemento":"Só pode seleccionar "+e.maximum+" elementos"},noResults:function(){return"Non se atoparon resultados"},searching:function(){return"Buscando…"},removeAllItems:function(){return"Elimina todos os elementos"}}}),e.define,e.require}();
|
assets/select2/i18n/he.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/he",[],function(){return{errorLoading:function(){return"שגיאה בטעינת התוצאות"},inputTooLong:function(n){var e=n.input.length-n.maximum,r="נא למחוק ";return r+=1===e?"תו אחד":e+" תווים"},inputTooShort:function(n){var e=n.minimum-n.input.length,r="נא להכניס ";return r+=1===e?"תו אחד":e+" תווים",r+=" או יותר"},loadingMore:function(){return"טוען תוצאות נוספות…"},maximumSelected:function(n){var e="באפשרותך לבחור עד ";return 1===n.maximum?e+="פריט אחד":e+=n.maximum+" פריטים",e},noResults:function(){return"לא נמצאו תוצאות"},searching:function(){return"מחפש…"},removeAllItems:function(){return"הסר את כל הפריטים"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/he",[],function(){return{errorLoading:function(){return"שגיאה בטעינת התוצאות"},inputTooLong:function(n){var e=n.input.length-n.maximum,r="נא למחוק ";return r+=1===e?"תו אחד":e+" תווים"},inputTooShort:function(n){var e=n.minimum-n.input.length,r="נא להכניס ";return r+=1===e?"תו אחד":e+" תווים",r+=" או יותר"},loadingMore:function(){return"טוען תוצאות נוספות…"},maximumSelected:function(n){var e="באפשרותך לבחור עד ";return 1===n.maximum?e+="פריט אחד":e+=n.maximum+" פריטים",e},noResults:function(){return"לא נמצאו תוצאות"},searching:function(){return"מחפש…"},removeAllItems:function(){return"הסר את כל הפריטים"}}}),n.define,n.require}();
|
assets/select2/i18n/hi.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/hi",[],function(){return{errorLoading:function(){return"परिणामों को लोड नहीं किया जा सका।"},inputTooLong:function(n){var e=n.input.length-n.maximum,r=e+" अक्षर को हटा दें";return e>1&&(r=e+" अक्षरों को हटा दें "),r},inputTooShort:function(n){return"कृपया "+(n.minimum-n.input.length)+" या अधिक अक्षर दर्ज करें"},loadingMore:function(){return"अधिक परिणाम लोड हो रहे है..."},maximumSelected:function(n){return"आप केवल "+n.maximum+" आइटम का चयन कर सकते हैं"},noResults:function(){return"कोई परिणाम नहीं मिला"},searching:function(){return"खोज रहा है..."},removeAllItems:function(){return"सभी वस्तुओं को हटा दें"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/hi",[],function(){return{errorLoading:function(){return"परिणामों को लोड नहीं किया जा सका।"},inputTooLong:function(n){var e=n.input.length-n.maximum,r=e+" अक्षर को हटा दें";return e>1&&(r=e+" अक्षरों को हटा दें "),r},inputTooShort:function(n){return"कृपया "+(n.minimum-n.input.length)+" या अधिक अक्षर दर्ज करें"},loadingMore:function(){return"अधिक परिणाम लोड हो रहे है..."},maximumSelected:function(n){return"आप केवल "+n.maximum+" आइटम का चयन कर सकते हैं"},noResults:function(){return"कोई परिणाम नहीं मिला"},searching:function(){return"खोज रहा है..."},removeAllItems:function(){return"सभी वस्तुओं को हटा दें"}}}),n.define,n.require}();
|
assets/select2/i18n/hr.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/hr",[],function(){function n(n){var e=" "+n+" znak";return n%10<5&&n%10>0&&(n%100<5||n%100>19)?n%10>1&&(e+="a"):e+="ova",e}return{errorLoading:function(){return"Preuzimanje nije uspjelo."},inputTooLong:function(e){return"Unesite "+n(e.input.length-e.maximum)},inputTooShort:function(e){return"Unesite još "+n(e.minimum-e.input.length)},loadingMore:function(){return"Učitavanje rezultata…"},maximumSelected:function(n){return"Maksimalan broj odabranih stavki je "+n.maximum},noResults:function(){return"Nema rezultata"},searching:function(){return"Pretraga…"},removeAllItems:function(){return"Ukloni sve stavke"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/hr",[],function(){function n(n){var e=" "+n+" znak";return n%10<5&&n%10>0&&(n%100<5||n%100>19)?n%10>1&&(e+="a"):e+="ova",e}return{errorLoading:function(){return"Preuzimanje nije uspjelo."},inputTooLong:function(e){return"Unesite "+n(e.input.length-e.maximum)},inputTooShort:function(e){return"Unesite još "+n(e.minimum-e.input.length)},loadingMore:function(){return"Učitavanje rezultata…"},maximumSelected:function(n){return"Maksimalan broj odabranih stavki je "+n.maximum},noResults:function(){return"Nema rezultata"},searching:function(){return"Pretraga…"},removeAllItems:function(){return"Ukloni sve stavke"}}}),n.define,n.require}();
|
assets/select2/i18n/hsb.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/hsb",[],function(){var n=["znamješko","znamješce","znamješka","znamješkow"],e=["zapisk","zapiskaj","zapiski","zapiskow"],u=function(n,e){return 1===n?e[0]:2===n?e[1]:n>2&&n<=4?e[2]:n>=5?e[3]:void 0};return{errorLoading:function(){return"Wuslědki njedachu so začitać."},inputTooLong:function(e){var a=e.input.length-e.maximum;return"Prošu zhašej "+a+" "+u(a,n)},inputTooShort:function(e){var a=e.minimum-e.input.length;return"Prošu zapodaj znajmjeńša "+a+" "+u(a,n)},loadingMore:function(){return"Dalše wuslědki so začitaja…"},maximumSelected:function(n){return"Móžeš jenož "+n.maximum+" "+u(n.maximum,e)+"wubrać"},noResults:function(){return"Žane wuslědki namakane"},searching:function(){return"Pyta so…"},removeAllItems:function(){return"Remove all items"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/hsb",[],function(){var n=["znamješko","znamješce","znamješka","znamješkow"],e=["zapisk","zapiskaj","zapiski","zapiskow"],u=function(n,e){return 1===n?e[0]:2===n?e[1]:n>2&&n<=4?e[2]:n>=5?e[3]:void 0};return{errorLoading:function(){return"Wuslědki njedachu so začitać."},inputTooLong:function(e){var a=e.input.length-e.maximum;return"Prošu zhašej "+a+" "+u(a,n)},inputTooShort:function(e){var a=e.minimum-e.input.length;return"Prošu zapodaj znajmjeńša "+a+" "+u(a,n)},loadingMore:function(){return"Dalše wuslědki so začitaja…"},maximumSelected:function(n){return"Móžeš jenož "+n.maximum+" "+u(n.maximum,e)+"wubrać"},noResults:function(){return"Žane wuslědki namakane"},searching:function(){return"Pyta so…"},removeAllItems:function(){return"Remove all items"}}}),n.define,n.require}();
|
assets/select2/i18n/hu.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
-
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/hu",[],function(){return{errorLoading:function(){return"Az eredmények betöltése nem sikerült."},inputTooLong:function(e){return"Túl hosszú. "+(e.input.length-e.maximum)+" karakterrel több, mint kellene."},inputTooShort:function(e){return"Túl rövid. Még "+(e.minimum-e.input.length)+" karakter hiányzik."},loadingMore:function(){return"Töltés…"},maximumSelected:function(e){return"Csak "+e.maximum+" elemet lehet kiválasztani."},noResults:function(){return"Nincs találat."},searching:function(){return"Keresés…"},removeAllItems:function(){return"Távolítson el minden elemet"}}}),e.define,e.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
+
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/hu",[],function(){return{errorLoading:function(){return"Az eredmények betöltése nem sikerült."},inputTooLong:function(e){return"Túl hosszú. "+(e.input.length-e.maximum)+" karakterrel több, mint kellene."},inputTooShort:function(e){return"Túl rövid. Még "+(e.minimum-e.input.length)+" karakter hiányzik."},loadingMore:function(){return"Töltés…"},maximumSelected:function(e){return"Csak "+e.maximum+" elemet lehet kiválasztani."},noResults:function(){return"Nincs találat."},searching:function(){return"Keresés…"},removeAllItems:function(){return"Távolítson el minden elemet"},removeItem:function(){return"Elem eltávolítása"},search:function(){return"Keresés"}}}),e.define,e.require}();
|
assets/select2/i18n/hy.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/hy",[],function(){return{errorLoading:function(){return"Արդյունքները հնարավոր չէ բեռնել։"},inputTooLong:function(n){return"Խնդրում ենք հեռացնել "+(n.input.length-n.maximum)+" նշան"},inputTooShort:function(n){return"Խնդրում ենք մուտքագրել "+(n.minimum-n.input.length)+" կամ ավել նշաններ"},loadingMore:function(){return"Բեռնվում են նոր արդյունքներ․․․"},maximumSelected:function(n){return"Դուք կարող եք ընտրել առավելագույնը "+n.maximum+" կետ"},noResults:function(){return"Արդյունքներ չեն գտնվել"},searching:function(){return"Որոնում․․․"},removeAllItems:function(){return"Հեռացնել բոլոր տարրերը"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/hy",[],function(){return{errorLoading:function(){return"Արդյունքները հնարավոր չէ բեռնել։"},inputTooLong:function(n){return"Խնդրում ենք հեռացնել "+(n.input.length-n.maximum)+" նշան"},inputTooShort:function(n){return"Խնդրում ենք մուտքագրել "+(n.minimum-n.input.length)+" կամ ավել նշաններ"},loadingMore:function(){return"Բեռնվում են նոր արդյունքներ․․․"},maximumSelected:function(n){return"Դուք կարող եք ընտրել առավելագույնը "+n.maximum+" կետ"},noResults:function(){return"Արդյունքներ չեն գտնվել"},searching:function(){return"Որոնում․․․"},removeAllItems:function(){return"Հեռացնել բոլոր տարրերը"}}}),n.define,n.require}();
|
assets/select2/i18n/id.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/id",[],function(){return{errorLoading:function(){return"Data tidak boleh diambil."},inputTooLong:function(n){return"Hapuskan "+(n.input.length-n.maximum)+" huruf"},inputTooShort:function(n){return"Masukkan "+(n.minimum-n.input.length)+" huruf lagi"},loadingMore:function(){return"Mengambil data…"},maximumSelected:function(n){return"Anda hanya dapat memilih "+n.maximum+" pilihan"},noResults:function(){return"Tidak ada data yang sesuai"},searching:function(){return"Mencari…"},removeAllItems:function(){return"Hapus semua item"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/id",[],function(){return{errorLoading:function(){return"Data tidak boleh diambil."},inputTooLong:function(n){return"Hapuskan "+(n.input.length-n.maximum)+" huruf"},inputTooShort:function(n){return"Masukkan "+(n.minimum-n.input.length)+" huruf lagi"},loadingMore:function(){return"Mengambil data…"},maximumSelected:function(n){return"Anda hanya dapat memilih "+n.maximum+" pilihan"},noResults:function(){return"Tidak ada data yang sesuai"},searching:function(){return"Mencari…"},removeAllItems:function(){return"Hapus semua item"}}}),n.define,n.require}();
|
assets/select2/i18n/is.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/is",[],function(){return{inputTooLong:function(n){var t=n.input.length-n.maximum,e="Vinsamlegast styttið texta um "+t+" staf";return t<=1?e:e+"i"},inputTooShort:function(n){var t=n.minimum-n.input.length,e="Vinsamlegast skrifið "+t+" staf";return t>1&&(e+="i"),e+=" í viðbót"},loadingMore:function(){return"Sæki fleiri niðurstöður…"},maximumSelected:function(n){return"Þú getur aðeins valið "+n.maximum+" atriði"},noResults:function(){return"Ekkert fannst"},searching:function(){return"Leita…"},removeAllItems:function(){return"Fjarlægðu öll atriði"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/is",[],function(){return{inputTooLong:function(n){var t=n.input.length-n.maximum,e="Vinsamlegast styttið texta um "+t+" staf";return t<=1?e:e+"i"},inputTooShort:function(n){var t=n.minimum-n.input.length,e="Vinsamlegast skrifið "+t+" staf";return t>1&&(e+="i"),e+=" í viðbót"},loadingMore:function(){return"Sæki fleiri niðurstöður…"},maximumSelected:function(n){return"Þú getur aðeins valið "+n.maximum+" atriði"},noResults:function(){return"Ekkert fannst"},searching:function(){return"Leita…"},removeAllItems:function(){return"Fjarlægðu öll atriði"}}}),n.define,n.require}();
|
assets/select2/i18n/it.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/it",[],function(){return{errorLoading:function(){return"I risultati non possono essere caricati."},inputTooLong:function(e){var n=e.input.length-e.maximum,t="Per favore cancella "+n+" caratter";return t+=1!==n?"i":"e"},inputTooShort:function(e){return"Per favore inserisci "+(e.minimum-e.input.length)+" o più caratteri"},loadingMore:function(){return"Caricando più risultati…"},maximumSelected:function(e){var n="Puoi selezionare solo "+e.maximum+" element";return 1!==e.maximum?n+="i":n+="o",n},noResults:function(){return"Nessun risultato trovato"},searching:function(){return"Sto cercando…"},removeAllItems:function(){return"Rimuovi tutti gli oggetti"}}}),e.define,e.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/it",[],function(){return{errorLoading:function(){return"I risultati non possono essere caricati."},inputTooLong:function(e){var n=e.input.length-e.maximum,t="Per favore cancella "+n+" caratter";return t+=1!==n?"i":"e"},inputTooShort:function(e){return"Per favore inserisci "+(e.minimum-e.input.length)+" o più caratteri"},loadingMore:function(){return"Caricando più risultati…"},maximumSelected:function(e){var n="Puoi selezionare solo "+e.maximum+" element";return 1!==e.maximum?n+="i":n+="o",n},noResults:function(){return"Nessun risultato trovato"},searching:function(){return"Sto cercando…"},removeAllItems:function(){return"Rimuovi tutti gli oggetti"}}}),e.define,e.require}();
|
assets/select2/i18n/ja.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ja",[],function(){return{errorLoading:function(){return"結果が読み込まれませんでした"},inputTooLong:function(n){return n.input.length-n.maximum+" 文字を削除してください"},inputTooShort:function(n){return"少なくとも "+(n.minimum-n.input.length)+" 文字を入力してください"},loadingMore:function(){return"読み込み中…"},maximumSelected:function(n){return n.maximum+" 件しか選択できません"},noResults:function(){return"対象が見つかりません"},searching:function(){return"検索しています…"},removeAllItems:function(){return"すべてのアイテムを削除"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ja",[],function(){return{errorLoading:function(){return"結果が読み込まれませんでした"},inputTooLong:function(n){return n.input.length-n.maximum+" 文字を削除してください"},inputTooShort:function(n){return"少なくとも "+(n.minimum-n.input.length)+" 文字を入力してください"},loadingMore:function(){return"読み込み中…"},maximumSelected:function(n){return n.maximum+" 件しか選択できません"},noResults:function(){return"対象が見つかりません"},searching:function(){return"検索しています…"},removeAllItems:function(){return"すべてのアイテムを削除"}}}),n.define,n.require}();
|
assets/select2/i18n/ka.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ka",[],function(){return{errorLoading:function(){return"მონაცემების ჩატვირთვა შეუძლებელია."},inputTooLong:function(n){return"გთხოვთ აკრიფეთ "+(n.input.length-n.maximum)+" სიმბოლოთი ნაკლები"},inputTooShort:function(n){return"გთხოვთ აკრიფეთ "+(n.minimum-n.input.length)+" სიმბოლო ან მეტი"},loadingMore:function(){return"მონაცემების ჩატვირთვა…"},maximumSelected:function(n){return"თქვენ შეგიძლიათ აირჩიოთ არაუმეტეს "+n.maximum+" ელემენტი"},noResults:function(){return"რეზულტატი არ მოიძებნა"},searching:function(){return"ძიება…"},removeAllItems:function(){return"ამოიღე ყველა ელემენტი"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ka",[],function(){return{errorLoading:function(){return"მონაცემების ჩატვირთვა შეუძლებელია."},inputTooLong:function(n){return"გთხოვთ აკრიფეთ "+(n.input.length-n.maximum)+" სიმბოლოთი ნაკლები"},inputTooShort:function(n){return"გთხოვთ აკრიფეთ "+(n.minimum-n.input.length)+" სიმბოლო ან მეტი"},loadingMore:function(){return"მონაცემების ჩატვირთვა…"},maximumSelected:function(n){return"თქვენ შეგიძლიათ აირჩიოთ არაუმეტეს "+n.maximum+" ელემენტი"},noResults:function(){return"რეზულტატი არ მოიძებნა"},searching:function(){return"ძიება…"},removeAllItems:function(){return"ამოიღე ყველა ელემენტი"}}}),n.define,n.require}();
|
assets/select2/i18n/km.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/km",[],function(){return{errorLoading:function(){return"មិនអាចទាញយកទិន្នន័យ"},inputTooLong:function(n){return"សូមលុបចេញ "+(n.input.length-n.maximum)+" អក្សរ"},inputTooShort:function(n){return"សូមបញ្ចូល"+(n.minimum-n.input.length)+" អក្សរ រឺ ច្រើនជាងនេះ"},loadingMore:function(){return"កំពុងទាញយកទិន្នន័យបន្ថែម..."},maximumSelected:function(n){return"អ្នកអាចជ្រើសរើសបានតែ "+n.maximum+" ជម្រើសប៉ុណ្ណោះ"},noResults:function(){return"មិនមានលទ្ធផល"},searching:function(){return"កំពុងស្វែងរក..."},removeAllItems:function(){return"លុបធាតុទាំងអស់"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/km",[],function(){return{errorLoading:function(){return"មិនអាចទាញយកទិន្នន័យ"},inputTooLong:function(n){return"សូមលុបចេញ "+(n.input.length-n.maximum)+" អក្សរ"},inputTooShort:function(n){return"សូមបញ្ចូល"+(n.minimum-n.input.length)+" អក្សរ រឺ ច្រើនជាងនេះ"},loadingMore:function(){return"កំពុងទាញយកទិន្នន័យបន្ថែម..."},maximumSelected:function(n){return"អ្នកអាចជ្រើសរើសបានតែ "+n.maximum+" ជម្រើសប៉ុណ្ណោះ"},noResults:function(){return"មិនមានលទ្ធផល"},searching:function(){return"កំពុងស្វែងរក..."},removeAllItems:function(){return"លុបធាតុទាំងអស់"}}}),n.define,n.require}();
|
assets/select2/i18n/ko.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ko",[],function(){return{errorLoading:function(){return"결과를 불러올 수 없습니다."},inputTooLong:function(n){return"너무 깁니다. "+(n.input.length-n.maximum)+" 글자 지워주세요."},inputTooShort:function(n){return"너무 짧습니다. "+(n.minimum-n.input.length)+" 글자 더 입력해주세요."},loadingMore:function(){return"불러오는 중…"},maximumSelected:function(n){return"최대 "+n.maximum+"개까지만 선택 가능합니다."},noResults:function(){return"결과가 없습니다."},searching:function(){return"검색 중…"},removeAllItems:function(){return"모든 항목 삭제"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ko",[],function(){return{errorLoading:function(){return"결과를 불러올 수 없습니다."},inputTooLong:function(n){return"너무 깁니다. "+(n.input.length-n.maximum)+" 글자 지워주세요."},inputTooShort:function(n){return"너무 짧습니다. "+(n.minimum-n.input.length)+" 글자 더 입력해주세요."},loadingMore:function(){return"불러오는 중…"},maximumSelected:function(n){return"최대 "+n.maximum+"개까지만 선택 가능합니다."},noResults:function(){return"결과가 없습니다."},searching:function(){return"검색 중…"},removeAllItems:function(){return"모든 항목 삭제"}}}),n.define,n.require}();
|
assets/select2/i18n/lt.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/lt",[],function(){function n(n,e,i,t){return n%10==1&&(n%100<11||n%100>19)?e:n%10>=2&&n%10<=9&&(n%100<11||n%100>19)?i:t}return{inputTooLong:function(e){var i=e.input.length-e.maximum,t="Pašalinkite "+i+" simbol";return t+=n(i,"į","ius","ių")},inputTooShort:function(e){var i=e.minimum-e.input.length,t="Įrašykite dar "+i+" simbol";return t+=n(i,"į","ius","ių")},loadingMore:function(){return"Kraunama daugiau rezultatų…"},maximumSelected:function(e){var i="Jūs galite pasirinkti tik "+e.maximum+" element";return i+=n(e.maximum,"ą","us","ų")},noResults:function(){return"Atitikmenų nerasta"},searching:function(){return"Ieškoma…"},removeAllItems:function(){return"Pašalinti visus elementus"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/lt",[],function(){function n(n,e,i,t){return n%10==1&&(n%100<11||n%100>19)?e:n%10>=2&&n%10<=9&&(n%100<11||n%100>19)?i:t}return{inputTooLong:function(e){var i=e.input.length-e.maximum,t="Pašalinkite "+i+" simbol";return t+=n(i,"į","ius","ių")},inputTooShort:function(e){var i=e.minimum-e.input.length,t="Įrašykite dar "+i+" simbol";return t+=n(i,"į","ius","ių")},loadingMore:function(){return"Kraunama daugiau rezultatų…"},maximumSelected:function(e){var i="Jūs galite pasirinkti tik "+e.maximum+" element";return i+=n(e.maximum,"ą","us","ų")},noResults:function(){return"Atitikmenų nerasta"},searching:function(){return"Ieškoma…"},removeAllItems:function(){return"Pašalinti visus elementus"}}}),n.define,n.require}();
|
assets/select2/i18n/lv.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/lv",[],function(){function e(e,n,u,i){return 11===e?n:e%10==1?u:i}return{inputTooLong:function(n){var u=n.input.length-n.maximum,i="Lūdzu ievadiet par "+u;return(i+=" simbol"+e(u,"iem","u","iem"))+" mazāk"},inputTooShort:function(n){var u=n.minimum-n.input.length,i="Lūdzu ievadiet vēl "+u;return i+=" simbol"+e(u,"us","u","us")},loadingMore:function(){return"Datu ielāde…"},maximumSelected:function(n){var u="Jūs varat izvēlēties ne vairāk kā "+n.maximum;return u+=" element"+e(n.maximum,"us","u","us")},noResults:function(){return"Sakritību nav"},searching:function(){return"Meklēšana…"},removeAllItems:function(){return"Noņemt visus vienumus"}}}),e.define,e.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/lv",[],function(){function e(e,n,u,i){return 11===e?n:e%10==1?u:i}return{inputTooLong:function(n){var u=n.input.length-n.maximum,i="Lūdzu ievadiet par "+u;return(i+=" simbol"+e(u,"iem","u","iem"))+" mazāk"},inputTooShort:function(n){var u=n.minimum-n.input.length,i="Lūdzu ievadiet vēl "+u;return i+=" simbol"+e(u,"us","u","us")},loadingMore:function(){return"Datu ielāde…"},maximumSelected:function(n){var u="Jūs varat izvēlēties ne vairāk kā "+n.maximum;return u+=" element"+e(n.maximum,"us","u","us")},noResults:function(){return"Sakritību nav"},searching:function(){return"Meklēšana…"},removeAllItems:function(){return"Noņemt visus vienumus"}}}),e.define,e.require}();
|
assets/select2/i18n/mk.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/mk",[],function(){return{inputTooLong:function(n){var e=(n.input.length,n.maximum,"Ве молиме внесете "+n.maximum+" помалку карактер");return 1!==n.maximum&&(e+="и"),e},inputTooShort:function(n){var e=(n.minimum,n.input.length,"Ве молиме внесете уште "+n.maximum+" карактер");return 1!==n.maximum&&(e+="и"),e},loadingMore:function(){return"Вчитување резултати…"},maximumSelected:function(n){var e="Можете да изберете само "+n.maximum+" ставк";return 1===n.maximum?e+="а":e+="и",e},noResults:function(){return"Нема пронајдено совпаѓања"},searching:function(){return"Пребарување…"},removeAllItems:function(){return"Отстрани ги сите предмети"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/mk",[],function(){return{inputTooLong:function(n){var e=(n.input.length,n.maximum,"Ве молиме внесете "+n.maximum+" помалку карактер");return 1!==n.maximum&&(e+="и"),e},inputTooShort:function(n){var e=(n.minimum,n.input.length,"Ве молиме внесете уште "+n.maximum+" карактер");return 1!==n.maximum&&(e+="и"),e},loadingMore:function(){return"Вчитување резултати…"},maximumSelected:function(n){var e="Можете да изберете само "+n.maximum+" ставк";return 1===n.maximum?e+="а":e+="и",e},noResults:function(){return"Нема пронајдено совпаѓања"},searching:function(){return"Пребарување…"},removeAllItems:function(){return"Отстрани ги сите предмети"}}}),n.define,n.require}();
|
assets/select2/i18n/ms.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ms",[],function(){return{errorLoading:function(){return"Keputusan tidak berjaya dimuatkan."},inputTooLong:function(n){return"Sila hapuskan "+(n.input.length-n.maximum)+" aksara"},inputTooShort:function(n){return"Sila masukkan "+(n.minimum-n.input.length)+" atau lebih aksara"},loadingMore:function(){return"Sedang memuatkan keputusan…"},maximumSelected:function(n){return"Anda hanya boleh memilih "+n.maximum+" pilihan"},noResults:function(){return"Tiada padanan yang ditemui"},searching:function(){return"Mencari…"},removeAllItems:function(){return"Keluarkan semua item"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ms",[],function(){return{errorLoading:function(){return"Keputusan tidak berjaya dimuatkan."},inputTooLong:function(n){return"Sila hapuskan "+(n.input.length-n.maximum)+" aksara"},inputTooShort:function(n){return"Sila masukkan "+(n.minimum-n.input.length)+" atau lebih aksara"},loadingMore:function(){return"Sedang memuatkan keputusan…"},maximumSelected:function(n){return"Anda hanya boleh memilih "+n.maximum+" pilihan"},noResults:function(){return"Tiada padanan yang ditemui"},searching:function(){return"Mencari…"},removeAllItems:function(){return"Keluarkan semua item"}}}),n.define,n.require}();
|
assets/select2/i18n/nb.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/nb",[],function(){return{errorLoading:function(){return"Kunne ikke hente resultater."},inputTooLong:function(e){return"Vennligst fjern "+(e.input.length-e.maximum)+" tegn"},inputTooShort:function(e){return"Vennligst skriv inn "+(e.minimum-e.input.length)+" tegn til"},loadingMore:function(){return"Laster flere resultater…"},maximumSelected:function(e){return"Du kan velge maks "+e.maximum+" elementer"},noResults:function(){return"Ingen treff"},searching:function(){return"Søker…"},removeAllItems:function(){return"Fjern alle elementer"}}}),e.define,e.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/nb",[],function(){return{errorLoading:function(){return"Kunne ikke hente resultater."},inputTooLong:function(e){return"Vennligst fjern "+(e.input.length-e.maximum)+" tegn"},inputTooShort:function(e){return"Vennligst skriv inn "+(e.minimum-e.input.length)+" tegn til"},loadingMore:function(){return"Laster flere resultater…"},maximumSelected:function(e){return"Du kan velge maks "+e.maximum+" elementer"},noResults:function(){return"Ingen treff"},searching:function(){return"Søker…"},removeAllItems:function(){return"Fjern alle elementer"}}}),e.define,e.require}();
|
assets/select2/i18n/ne.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ne",[],function(){return{errorLoading:function(){return"नतिजाहरु देखाउन सकिएन।"},inputTooLong:function(n){var e=n.input.length-n.maximum,u="कृपया "+e+" अक्षर मेटाउनुहोस्।";return 1!=e&&(u+="कृपया "+e+" अक्षरहरु मेटाउनुहोस्।"),u},inputTooShort:function(n){return"कृपया बाँकी रहेका "+(n.minimum-n.input.length)+" वा अरु धेरै अक्षरहरु भर्नुहोस्।"},loadingMore:function(){return"अरु नतिजाहरु भरिँदैछन् …"},maximumSelected:function(n){var e="तँपाई "+n.maximum+" वस्तु मात्र छान्न पाउँनुहुन्छ।";return 1!=n.maximum&&(e="तँपाई "+n.maximum+" वस्तुहरु मात्र छान्न पाउँनुहुन्छ।"),e},noResults:function(){return"कुनै पनि नतिजा भेटिएन।"},searching:function(){return"खोजि हुँदैछ…"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ne",[],function(){return{errorLoading:function(){return"नतिजाहरु देखाउन सकिएन।"},inputTooLong:function(n){var e=n.input.length-n.maximum,u="कृपया "+e+" अक्षर मेटाउनुहोस्।";return 1!=e&&(u+="कृपया "+e+" अक्षरहरु मेटाउनुहोस्।"),u},inputTooShort:function(n){return"कृपया बाँकी रहेका "+(n.minimum-n.input.length)+" वा अरु धेरै अक्षरहरु भर्नुहोस्।"},loadingMore:function(){return"अरु नतिजाहरु भरिँदैछन् …"},maximumSelected:function(n){var e="तँपाई "+n.maximum+" वस्तु मात्र छान्न पाउँनुहुन्छ।";return 1!=n.maximum&&(e="तँपाई "+n.maximum+" वस्तुहरु मात्र छान्न पाउँनुहुन्छ।"),e},noResults:function(){return"कुनै पनि नतिजा भेटिएन।"},searching:function(){return"खोजि हुँदैछ…"}}}),n.define,n.require}();
|
assets/select2/i18n/nl.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/nl",[],function(){return{errorLoading:function(){return"De resultaten konden niet worden geladen."},inputTooLong:function(e){return"Gelieve "+(e.input.length-e.maximum)+" karakters te verwijderen"},inputTooShort:function(e){return"Gelieve "+(e.minimum-e.input.length)+" of meer karakters in te voeren"},loadingMore:function(){return"Meer resultaten laden…"},maximumSelected:function(e){var n=1==e.maximum?"kan":"kunnen",r="Er "+n+" maar "+e.maximum+" item";return 1!=e.maximum&&(r+="s"),r+=" worden geselecteerd"},noResults:function(){return"Geen resultaten gevonden…"},searching:function(){return"Zoeken…"},removeAllItems:function(){return"Verwijder alle items"}}}),e.define,e.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/nl",[],function(){return{errorLoading:function(){return"De resultaten konden niet worden geladen."},inputTooLong:function(e){return"Gelieve "+(e.input.length-e.maximum)+" karakters te verwijderen"},inputTooShort:function(e){return"Gelieve "+(e.minimum-e.input.length)+" of meer karakters in te voeren"},loadingMore:function(){return"Meer resultaten laden…"},maximumSelected:function(e){var n=1==e.maximum?"kan":"kunnen",r="Er "+n+" maar "+e.maximum+" item";return 1!=e.maximum&&(r+="s"),r+=" worden geselecteerd"},noResults:function(){return"Geen resultaten gevonden…"},searching:function(){return"Zoeken…"},removeAllItems:function(){return"Verwijder alle items"}}}),e.define,e.require}();
|
assets/select2/i18n/pa.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/pa",[],function(){return{errorLoading:function(){return"ਨਤੀਜੇ ਲੋਡ ਨਹੀਂ ਕੀਤੇ ਜਾ ਸਕਦੇ ।"},inputTooLong:function(n){var e=n.input.length-n.maximum;return"ਕ੍ਰਿਪਾ ਕਰਕੇ "+e+(1!=e?" ਅੱਖਰਾਂ ਨੂੰ ":" ਅੱਖਰ ")+"ਮਿਟਾਓ ।"},inputTooShort:function(n){var e=n.minimum-n.input.length;return"ਕ੍ਰਿਪਾ ਕਰਕੇ "+e+" ਜਾਂ "+e+" ਤੋਂ ਵੱਧ"+(e>1?" ਅੱਖਰਾਂ ":" ਅੱਖਰ ")+"ਦੀ ਵਰਤੋਂ ਕਰੋ ।"},loadingMore:function(){return"ਹੋਰ ਨਤੀਜੇ ਲੋਡ ਹੋ ਰਹੇ ਹਨ ...।"},maximumSelected:function(n){var e="ਤੁਸੀਂ ਸਿਰਫ਼ "+n.maximum+" ਨਤੀਜਾ ਚੁਣ ਸਕਦੇ ਹੋ ।";return 1!=n.maximum&&(e="ਤੁਸੀਂ ਸਿਰਫ਼ "+n.maximum+" ਨਤੀਜੇ ਚੁਣ ਸਕਦੇ ਹੋ ।"),e},noResults:function(){return"ਨਤੀਜਾ ਨਹੀਂ ਮਿਲ ਰਿਹਾ ਹੈ ।"},searching:function(){return"ਖ਼ੋਜ ਕਰ ਰਹੇਂ ਹਾਂ ...।"},removeAllItems:function(){return"ਸਾਰੇ ਨਤੀਜੇ ਮਿਟਾਓ ।"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/pa",[],function(){return{errorLoading:function(){return"ਨਤੀਜੇ ਲੋਡ ਨਹੀਂ ਕੀਤੇ ਜਾ ਸਕਦੇ ।"},inputTooLong:function(n){var e=n.input.length-n.maximum;return"ਕ੍ਰਿਪਾ ਕਰਕੇ "+e+(1!=e?" ਅੱਖਰਾਂ ਨੂੰ ":" ਅੱਖਰ ")+"ਮਿਟਾਓ ।"},inputTooShort:function(n){var e=n.minimum-n.input.length;return"ਕ੍ਰਿਪਾ ਕਰਕੇ "+e+" ਜਾਂ "+e+" ਤੋਂ ਵੱਧ"+(e>1?" ਅੱਖਰਾਂ ":" ਅੱਖਰ ")+"ਦੀ ਵਰਤੋਂ ਕਰੋ ।"},loadingMore:function(){return"ਹੋਰ ਨਤੀਜੇ ਲੋਡ ਹੋ ਰਹੇ ਹਨ ...।"},maximumSelected:function(n){var e="ਤੁਸੀਂ ਸਿਰਫ਼ "+n.maximum+" ਨਤੀਜਾ ਚੁਣ ਸਕਦੇ ਹੋ ।";return 1!=n.maximum&&(e="ਤੁਸੀਂ ਸਿਰਫ਼ "+n.maximum+" ਨਤੀਜੇ ਚੁਣ ਸਕਦੇ ਹੋ ।"),e},noResults:function(){return"ਨਤੀਜਾ ਨਹੀਂ ਮਿਲ ਰਿਹਾ ਹੈ ।"},searching:function(){return"ਖ਼ੋਜ ਕਰ ਰਹੇਂ ਹਾਂ ...।"},removeAllItems:function(){return"ਸਾਰੇ ਨਤੀਜੇ ਮਿਟਾਓ ।"}}}),n.define,n.require}();
|
assets/select2/i18n/pl.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/pl",[],function(){var n=["znak","znaki","znaków"],e=["element","elementy","elementów"],r=function(n,e){return 1===n?e[0]:n>1&&n<=4?e[1]:n>=5?e[2]:void 0};return{errorLoading:function(){return"Nie można załadować wyników."},inputTooLong:function(e){var t=e.input.length-e.maximum;return"Usuń "+t+" "+r(t,n)},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Podaj przynajmniej "+t+" "+r(t,n)},loadingMore:function(){return"Trwa ładowanie…"},maximumSelected:function(n){return"Możesz zaznaczyć tylko "+n.maximum+" "+r(n.maximum,e)},noResults:function(){return"Brak wyników"},searching:function(){return"Trwa wyszukiwanie…"},removeAllItems:function(){return"Usuń wszystkie przedmioty"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/pl",[],function(){var n=["znak","znaki","znaków"],e=["element","elementy","elementów"],r=function(n,e){return 1===n?e[0]:n>1&&n<=4?e[1]:n>=5?e[2]:void 0};return{errorLoading:function(){return"Nie można załadować wyników."},inputTooLong:function(e){var t=e.input.length-e.maximum;return"Usuń "+t+" "+r(t,n)},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Podaj przynajmniej "+t+" "+r(t,n)},loadingMore:function(){return"Trwa ładowanie…"},maximumSelected:function(n){return"Możesz zaznaczyć tylko "+n.maximum+" "+r(n.maximum,e)},noResults:function(){return"Brak wyników"},searching:function(){return"Trwa wyszukiwanie…"},removeAllItems:function(){return"Usuń wszystkie przedmioty"}}}),n.define,n.require}();
|
assets/select2/i18n/ps.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ps",[],function(){return{errorLoading:function(){return"پايلي نه سي ترلاسه کېدای"},inputTooLong:function(n){var e=n.input.length-n.maximum,r="د مهربانۍ لمخي "+e+" توری ړنګ کړئ";return 1!=e&&(r=r.replace("توری","توري")),r},inputTooShort:function(n){return"لږ تر لږه "+(n.minimum-n.input.length)+" يا ډېر توري وليکئ"},loadingMore:function(){return"نوري پايلي ترلاسه کيږي..."},maximumSelected:function(n){var e="تاسو يوازي "+n.maximum+" قلم په نښه کولای سی";return 1!=n.maximum&&(e=e.replace("قلم","قلمونه")),e},noResults:function(){return"پايلي و نه موندل سوې"},searching:function(){return"لټول کيږي..."},removeAllItems:function(){return"ټول توکي لرې کړئ"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ps",[],function(){return{errorLoading:function(){return"پايلي نه سي ترلاسه کېدای"},inputTooLong:function(n){var e=n.input.length-n.maximum,r="د مهربانۍ لمخي "+e+" توری ړنګ کړئ";return 1!=e&&(r=r.replace("توری","توري")),r},inputTooShort:function(n){return"لږ تر لږه "+(n.minimum-n.input.length)+" يا ډېر توري وليکئ"},loadingMore:function(){return"نوري پايلي ترلاسه کيږي..."},maximumSelected:function(n){var e="تاسو يوازي "+n.maximum+" قلم په نښه کولای سی";return 1!=n.maximum&&(e=e.replace("قلم","قلمونه")),e},noResults:function(){return"پايلي و نه موندل سوې"},searching:function(){return"لټول کيږي..."},removeAllItems:function(){return"ټول توکي لرې کړئ"}}}),n.define,n.require}();
|
assets/select2/i18n/pt-BR.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/pt-BR",[],function(){return{errorLoading:function(){return"Os resultados não puderam ser carregados."},inputTooLong:function(e){var n=e.input.length-e.maximum,r="Apague "+n+" caracter";return 1!=n&&(r+="es"),r},inputTooShort:function(e){return"Digite "+(e.minimum-e.input.length)+" ou mais caracteres"},loadingMore:function(){return"Carregando mais resultados…"},maximumSelected:function(e){var n="Você só pode selecionar "+e.maximum+" ite";return 1==e.maximum?n+="m":n+="ns",n},noResults:function(){return"Nenhum resultado encontrado"},searching:function(){return"Buscando…"},removeAllItems:function(){return"Remover todos os itens"}}}),e.define,e.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/pt-BR",[],function(){return{errorLoading:function(){return"Os resultados não puderam ser carregados."},inputTooLong:function(e){var n=e.input.length-e.maximum,r="Apague "+n+" caracter";return 1!=n&&(r+="es"),r},inputTooShort:function(e){return"Digite "+(e.minimum-e.input.length)+" ou mais caracteres"},loadingMore:function(){return"Carregando mais resultados…"},maximumSelected:function(e){var n="Você só pode selecionar "+e.maximum+" ite";return 1==e.maximum?n+="m":n+="ns",n},noResults:function(){return"Nenhum resultado encontrado"},searching:function(){return"Buscando…"},removeAllItems:function(){return"Remover todos os itens"}}}),e.define,e.require}();
|
assets/select2/i18n/pt.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/pt",[],function(){return{errorLoading:function(){return"Os resultados não puderam ser carregados."},inputTooLong:function(e){var r=e.input.length-e.maximum,n="Por favor apague "+r+" ";return n+=1!=r?"caracteres":"caractere"},inputTooShort:function(e){return"Introduza "+(e.minimum-e.input.length)+" ou mais caracteres"},loadingMore:function(){return"A carregar mais resultados…"},maximumSelected:function(e){var r="Apenas pode seleccionar "+e.maximum+" ";return r+=1!=e.maximum?"itens":"item"},noResults:function(){return"Sem resultados"},searching:function(){return"A procurar…"},removeAllItems:function(){return"Remover todos os itens"}}}),e.define,e.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/pt",[],function(){return{errorLoading:function(){return"Os resultados não puderam ser carregados."},inputTooLong:function(e){var r=e.input.length-e.maximum,n="Por favor apague "+r+" ";return n+=1!=r?"caracteres":"caractere"},inputTooShort:function(e){return"Introduza "+(e.minimum-e.input.length)+" ou mais caracteres"},loadingMore:function(){return"A carregar mais resultados…"},maximumSelected:function(e){var r="Apenas pode seleccionar "+e.maximum+" ";return r+=1!=e.maximum?"itens":"item"},noResults:function(){return"Sem resultados"},searching:function(){return"A procurar…"},removeAllItems:function(){return"Remover todos os itens"}}}),e.define,e.require}();
|
assets/select2/i18n/ro.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/ro",[],function(){return{errorLoading:function(){return"Rezultatele nu au putut fi incărcate."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Vă rugăm să ștergeți"+t+" caracter";return 1!==t&&(n+="e"),n},inputTooShort:function(e){return"Vă rugăm să introduceți "+(e.minimum-e.input.length)+" sau mai multe caractere"},loadingMore:function(){return"Se încarcă mai multe rezultate…"},maximumSelected:function(e){var t="Aveți voie să selectați cel mult "+e.maximum;return t+=" element",1!==e.maximum&&(t+="e"),t},noResults:function(){return"Nu au fost găsite rezultate"},searching:function(){return"Căutare…"},removeAllItems:function(){return"Eliminați toate elementele"}}}),e.define,e.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/ro",[],function(){return{errorLoading:function(){return"Rezultatele nu au putut fi incărcate."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Vă rugăm să ștergeți"+t+" caracter";return 1!==t&&(n+="e"),n},inputTooShort:function(e){return"Vă rugăm să introduceți "+(e.minimum-e.input.length)+" sau mai multe caractere"},loadingMore:function(){return"Se încarcă mai multe rezultate…"},maximumSelected:function(e){var t="Aveți voie să selectați cel mult "+e.maximum;return t+=" element",1!==e.maximum&&(t+="e"),t},noResults:function(){return"Nu au fost găsite rezultate"},searching:function(){return"Căutare…"},removeAllItems:function(){return"Eliminați toate elementele"}}}),e.define,e.require}();
|
assets/select2/i18n/ru.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ru",[],function(){function n(n,e,r,u){return n%10<5&&n%10>0&&n%100<5||n%100>20?n%10>1?r:e:u}return{errorLoading:function(){return"Невозможно загрузить результаты"},inputTooLong:function(e){var r=e.input.length-e.maximum,u="Пожалуйста, введите на "+r+" символ";return u+=n(r,"","a","ов"),u+=" меньше"},inputTooShort:function(e){var r=e.minimum-e.input.length,u="Пожалуйста, введите ещё хотя бы "+r+" символ";return u+=n(r,"","a","ов")},loadingMore:function(){return"Загрузка данных…"},maximumSelected:function(e){var r="Вы можете выбрать не более "+e.maximum+" элемент";return r+=n(e.maximum,"","a","ов")},noResults:function(){return"Совпадений не найдено"},searching:function(){return"Поиск…"},removeAllItems:function(){return"Удалить все элементы"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ru",[],function(){function n(n,e,r,u){return n%10<5&&n%10>0&&n%100<5||n%100>20?n%10>1?r:e:u}return{errorLoading:function(){return"Невозможно загрузить результаты"},inputTooLong:function(e){var r=e.input.length-e.maximum,u="Пожалуйста, введите на "+r+" символ";return u+=n(r,"","a","ов"),u+=" меньше"},inputTooShort:function(e){var r=e.minimum-e.input.length,u="Пожалуйста, введите ещё хотя бы "+r+" символ";return u+=n(r,"","a","ов")},loadingMore:function(){return"Загрузка данных…"},maximumSelected:function(e){var r="Вы можете выбрать не более "+e.maximum+" элемент";return r+=n(e.maximum,"","a","ов")},noResults:function(){return"Совпадений не найдено"},searching:function(){return"Поиск…"},removeAllItems:function(){return"Удалить все элементы"}}}),n.define,n.require}();
|
assets/select2/i18n/sk.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/sk",[],function(){var e={2:function(e){return e?"dva":"dve"},3:function(){return"tri"},4:function(){return"štyri"}};return{errorLoading:function(){return"Výsledky sa nepodarilo načítať."},inputTooLong:function(n){var t=n.input.length-n.maximum;return 1==t?"Prosím, zadajte o jeden znak menej":t>=2&&t<=4?"Prosím, zadajte o "+e[t](!0)+" znaky menej":"Prosím, zadajte o "+t+" znakov menej"},inputTooShort:function(n){var t=n.minimum-n.input.length;return 1==t?"Prosím, zadajte ešte jeden znak":t<=4?"Prosím, zadajte ešte ďalšie "+e[t](!0)+" znaky":"Prosím, zadajte ešte ďalších "+t+" znakov"},loadingMore:function(){return"Načítanie ďalších výsledkov…"},maximumSelected:function(n){return 1==n.maximum?"Môžete zvoliť len jednu položku":n.maximum>=2&&n.maximum<=4?"Môžete zvoliť najviac "+e[n.maximum](!1)+" položky":"Môžete zvoliť najviac "+n.maximum+" položiek"},noResults:function(){return"Nenašli sa žiadne položky"},searching:function(){return"Vyhľadávanie…"},removeAllItems:function(){return"Odstráňte všetky položky"}}}),e.define,e.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/sk",[],function(){var e={2:function(e){return e?"dva":"dve"},3:function(){return"tri"},4:function(){return"štyri"}};return{errorLoading:function(){return"Výsledky sa nepodarilo načítať."},inputTooLong:function(n){var t=n.input.length-n.maximum;return 1==t?"Prosím, zadajte o jeden znak menej":t>=2&&t<=4?"Prosím, zadajte o "+e[t](!0)+" znaky menej":"Prosím, zadajte o "+t+" znakov menej"},inputTooShort:function(n){var t=n.minimum-n.input.length;return 1==t?"Prosím, zadajte ešte jeden znak":t<=4?"Prosím, zadajte ešte ďalšie "+e[t](!0)+" znaky":"Prosím, zadajte ešte ďalších "+t+" znakov"},loadingMore:function(){return"Načítanie ďalších výsledkov…"},maximumSelected:function(n){return 1==n.maximum?"Môžete zvoliť len jednu položku":n.maximum>=2&&n.maximum<=4?"Môžete zvoliť najviac "+e[n.maximum](!1)+" položky":"Môžete zvoliť najviac "+n.maximum+" položiek"},noResults:function(){return"Nenašli sa žiadne položky"},searching:function(){return"Vyhľadávanie…"},removeAllItems:function(){return"Odstráňte všetky položky"}}}),e.define,e.require}();
|
assets/select2/i18n/sl.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/sl",[],function(){return{errorLoading:function(){return"Zadetkov iskanja ni bilo mogoče naložiti."},inputTooLong:function(e){var n=e.input.length-e.maximum,t="Prosim zbrišite "+n+" znak";return 2==n?t+="a":1!=n&&(t+="e"),t},inputTooShort:function(e){var n=e.minimum-e.input.length,t="Prosim vpišite še "+n+" znak";return 2==n?t+="a":1!=n&&(t+="e"),t},loadingMore:function(){return"Nalagam več zadetkov…"},maximumSelected:function(e){var n="Označite lahko največ "+e.maximum+" predmet";return 2==e.maximum?n+="a":1!=e.maximum&&(n+="e"),n},noResults:function(){return"Ni zadetkov."},searching:function(){return"Iščem…"},removeAllItems:function(){return"Odstranite vse elemente"}}}),e.define,e.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/sl",[],function(){return{errorLoading:function(){return"Zadetkov iskanja ni bilo mogoče naložiti."},inputTooLong:function(e){var n=e.input.length-e.maximum,t="Prosim zbrišite "+n+" znak";return 2==n?t+="a":1!=n&&(t+="e"),t},inputTooShort:function(e){var n=e.minimum-e.input.length,t="Prosim vpišite še "+n+" znak";return 2==n?t+="a":1!=n&&(t+="e"),t},loadingMore:function(){return"Nalagam več zadetkov…"},maximumSelected:function(e){var n="Označite lahko največ "+e.maximum+" predmet";return 2==e.maximum?n+="a":1!=e.maximum&&(n+="e"),n},noResults:function(){return"Ni zadetkov."},searching:function(){return"Iščem…"},removeAllItems:function(){return"Odstranite vse elemente"}}}),e.define,e.require}();
|
assets/select2/i18n/sq.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/sq",[],function(){return{errorLoading:function(){return"Rezultatet nuk mund të ngarkoheshin."},inputTooLong:function(e){var n=e.input.length-e.maximum,t="Të lutem fshi "+n+" karakter";return 1!=n&&(t+="e"),t},inputTooShort:function(e){return"Të lutem shkruaj "+(e.minimum-e.input.length)+" ose më shumë karaktere"},loadingMore:function(){return"Duke ngarkuar më shumë rezultate…"},maximumSelected:function(e){var n="Mund të zgjedhësh vetëm "+e.maximum+" element";return 1!=e.maximum&&(n+="e"),n},noResults:function(){return"Nuk u gjet asnjë rezultat"},searching:function(){return"Duke kërkuar…"},removeAllItems:function(){return"Hiq të gjitha sendet"}}}),e.define,e.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/sq",[],function(){return{errorLoading:function(){return"Rezultatet nuk mund të ngarkoheshin."},inputTooLong:function(e){var n=e.input.length-e.maximum,t="Të lutem fshi "+n+" karakter";return 1!=n&&(t+="e"),t},inputTooShort:function(e){return"Të lutem shkruaj "+(e.minimum-e.input.length)+" ose më shumë karaktere"},loadingMore:function(){return"Duke ngarkuar më shumë rezultate…"},maximumSelected:function(e){var n="Mund të zgjedhësh vetëm "+e.maximum+" element";return 1!=e.maximum&&(n+="e"),n},noResults:function(){return"Nuk u gjet asnjë rezultat"},searching:function(){return"Duke kërkuar…"},removeAllItems:function(){return"Hiq të gjitha sendet"}}}),e.define,e.require}();
|
assets/select2/i18n/sr-Cyrl.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/sr-Cyrl",[],function(){function n(n,e,r,u){return n%10==1&&n%100!=11?e:n%10>=2&&n%10<=4&&(n%100<12||n%100>14)?r:u}return{errorLoading:function(){return"Преузимање није успело."},inputTooLong:function(e){var r=e.input.length-e.maximum,u="Обришите "+r+" симбол";return u+=n(r,"","а","а")},inputTooShort:function(e){var r=e.minimum-e.input.length,u="Укуцајте бар још "+r+" симбол";return u+=n(r,"","а","а")},loadingMore:function(){return"Преузимање још резултата…"},maximumSelected:function(e){var r="Можете изабрати само "+e.maximum+" ставк";return r+=n(e.maximum,"у","е","и")},noResults:function(){return"Ништа није пронађено"},searching:function(){return"Претрага…"},removeAllItems:function(){return"Уклоните све ставке"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/sr-Cyrl",[],function(){function n(n,e,r,u){return n%10==1&&n%100!=11?e:n%10>=2&&n%10<=4&&(n%100<12||n%100>14)?r:u}return{errorLoading:function(){return"Преузимање није успело."},inputTooLong:function(e){var r=e.input.length-e.maximum,u="Обришите "+r+" симбол";return u+=n(r,"","а","а")},inputTooShort:function(e){var r=e.minimum-e.input.length,u="Укуцајте бар још "+r+" симбол";return u+=n(r,"","а","а")},loadingMore:function(){return"Преузимање још резултата…"},maximumSelected:function(e){var r="Можете изабрати само "+e.maximum+" ставк";return r+=n(e.maximum,"у","е","и")},noResults:function(){return"Ништа није пронађено"},searching:function(){return"Претрага…"},removeAllItems:function(){return"Уклоните све ставке"}}}),n.define,n.require}();
|
assets/select2/i18n/sr.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/sr",[],function(){function n(n,e,r,t){return n%10==1&&n%100!=11?e:n%10>=2&&n%10<=4&&(n%100<12||n%100>14)?r:t}return{errorLoading:function(){return"Preuzimanje nije uspelo."},inputTooLong:function(e){var r=e.input.length-e.maximum,t="Obrišite "+r+" simbol";return t+=n(r,"","a","a")},inputTooShort:function(e){var r=e.minimum-e.input.length,t="Ukucajte bar još "+r+" simbol";return t+=n(r,"","a","a")},loadingMore:function(){return"Preuzimanje još rezultata…"},maximumSelected:function(e){var r="Možete izabrati samo "+e.maximum+" stavk";return r+=n(e.maximum,"u","e","i")},noResults:function(){return"Ništa nije pronađeno"},searching:function(){return"Pretraga…"},removeAllItems:function(){return"Уклоните све ставке"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/sr",[],function(){function n(n,e,r,t){return n%10==1&&n%100!=11?e:n%10>=2&&n%10<=4&&(n%100<12||n%100>14)?r:t}return{errorLoading:function(){return"Preuzimanje nije uspelo."},inputTooLong:function(e){var r=e.input.length-e.maximum,t="Obrišite "+r+" simbol";return t+=n(r,"","a","a")},inputTooShort:function(e){var r=e.minimum-e.input.length,t="Ukucajte bar još "+r+" simbol";return t+=n(r,"","a","a")},loadingMore:function(){return"Preuzimanje još rezultata…"},maximumSelected:function(e){var r="Možete izabrati samo "+e.maximum+" stavk";return r+=n(e.maximum,"u","e","i")},noResults:function(){return"Ništa nije pronađeno"},searching:function(){return"Pretraga…"},removeAllItems:function(){return"Уклоните све ставке"}}}),n.define,n.require}();
|
assets/select2/i18n/sv.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/sv",[],function(){return{errorLoading:function(){return"Resultat kunde inte laddas."},inputTooLong:function(n){return"Vänligen sudda ut "+(n.input.length-n.maximum)+" tecken"},inputTooShort:function(n){return"Vänligen skriv in "+(n.minimum-n.input.length)+" eller fler tecken"},loadingMore:function(){return"Laddar fler resultat…"},maximumSelected:function(n){return"Du kan max välja "+n.maximum+" element"},noResults:function(){return"Inga träffar"},searching:function(){return"Söker…"},removeAllItems:function(){return"Ta bort alla objekt"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/sv",[],function(){return{errorLoading:function(){return"Resultat kunde inte laddas."},inputTooLong:function(n){return"Vänligen sudda ut "+(n.input.length-n.maximum)+" tecken"},inputTooShort:function(n){return"Vänligen skriv in "+(n.minimum-n.input.length)+" eller fler tecken"},loadingMore:function(){return"Laddar fler resultat…"},maximumSelected:function(n){return"Du kan max välja "+n.maximum+" element"},noResults:function(){return"Inga träffar"},searching:function(){return"Söker…"},removeAllItems:function(){return"Ta bort alla objekt"}}}),n.define,n.require}();
|
assets/select2/i18n/te.js
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
+
|
3 |
+
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/te",[],function(){return{errorLoading:function(){return"ఫలితాలు చూపించలేకపోతున్నాము"},inputTooLong:function(n){var e=n.input.length-n.maximum,r=e;return r+=1!=e?" అక్షరాలు తొలిగించండి":" అక్షరం తొలిగించండి"},inputTooShort:function(n){return n.minimum-n.input.length+" లేక మరిన్ని అక్షరాలను జోడించండి"},loadingMore:function(){return"మరిన్ని ఫలితాలు…"},maximumSelected:function(n){var e="మీరు "+n.maximum;return 1!=n.maximum?e+=" అంశాల్ని మాత్రమే ఎంచుకోగలరు":e+=" అంశాన్ని మాత్రమే ఎంచుకోగలరు",e},noResults:function(){return"ఫలితాలు లేవు"},searching:function(){return"శోధిస్తున్నాము…"},removeAllItems:function(){return"అన్ని అంశాల్ని తొలిగించండి"},removeItem:function(){return"తొలిగించు"}}}),n.define,n.require}();
|
assets/select2/i18n/th.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/th",[],function(){return{errorLoading:function(){return"ไม่สามารถค้นข้อมูลได้"},inputTooLong:function(n){return"โปรดลบออก "+(n.input.length-n.maximum)+" ตัวอักษร"},inputTooShort:function(n){return"โปรดพิมพ์เพิ่มอีก "+(n.minimum-n.input.length)+" ตัวอักษร"},loadingMore:function(){return"กำลังค้นข้อมูลเพิ่ม…"},maximumSelected:function(n){return"คุณสามารถเลือกได้ไม่เกิน "+n.maximum+" รายการ"},noResults:function(){return"ไม่พบข้อมูล"},searching:function(){return"กำลังค้นข้อมูล…"},removeAllItems:function(){return"ลบรายการทั้งหมด"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/th",[],function(){return{errorLoading:function(){return"ไม่สามารถค้นข้อมูลได้"},inputTooLong:function(n){return"โปรดลบออก "+(n.input.length-n.maximum)+" ตัวอักษร"},inputTooShort:function(n){return"โปรดพิมพ์เพิ่มอีก "+(n.minimum-n.input.length)+" ตัวอักษร"},loadingMore:function(){return"กำลังค้นข้อมูลเพิ่ม…"},maximumSelected:function(n){return"คุณสามารถเลือกได้ไม่เกิน "+n.maximum+" รายการ"},noResults:function(){return"ไม่พบข้อมูล"},searching:function(){return"กำลังค้นข้อมูล…"},removeAllItems:function(){return"ลบรายการทั้งหมด"}}}),n.define,n.require}();
|
assets/select2/i18n/tk.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/tk",[],function(){return{errorLoading:function(){return"Netije ýüklenmedi."},inputTooLong:function(e){return e.input.length-e.maximum+" harp bozuň."},inputTooShort:function(e){return"Ýene-de iň az "+(e.minimum-e.input.length)+" harp ýazyň."},loadingMore:function(){return"Köpräk netije görkezilýär…"},maximumSelected:function(e){return"Diňe "+e.maximum+" sanysyny saýlaň."},noResults:function(){return"Netije tapylmady."},searching:function(){return"Gözlenýär…"},removeAllItems:function(){return"Remove all items"}}}),e.define,e.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/tk",[],function(){return{errorLoading:function(){return"Netije ýüklenmedi."},inputTooLong:function(e){return e.input.length-e.maximum+" harp bozuň."},inputTooShort:function(e){return"Ýene-de iň az "+(e.minimum-e.input.length)+" harp ýazyň."},loadingMore:function(){return"Köpräk netije görkezilýär…"},maximumSelected:function(e){return"Diňe "+e.maximum+" sanysyny saýlaň."},noResults:function(){return"Netije tapylmady."},searching:function(){return"Gözlenýär…"},removeAllItems:function(){return"Remove all items"}}}),e.define,e.require}();
|
assets/select2/i18n/tr.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/tr",[],function(){return{errorLoading:function(){return"Sonuç yüklenemedi"},inputTooLong:function(n){return n.input.length-n.maximum+" karakter daha girmelisiniz"},inputTooShort:function(n){return"En az "+(n.minimum-n.input.length)+" karakter daha girmelisiniz"},loadingMore:function(){return"Daha fazla…"},maximumSelected:function(n){return"Sadece "+n.maximum+" seçim yapabilirsiniz"},noResults:function(){return"Sonuç bulunamadı"},searching:function(){return"Aranıyor…"},removeAllItems:function(){return"Tüm öğeleri kaldır"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/tr",[],function(){return{errorLoading:function(){return"Sonuç yüklenemedi"},inputTooLong:function(n){return n.input.length-n.maximum+" karakter daha girmelisiniz"},inputTooShort:function(n){return"En az "+(n.minimum-n.input.length)+" karakter daha girmelisiniz"},loadingMore:function(){return"Daha fazla…"},maximumSelected:function(n){return"Sadece "+n.maximum+" seçim yapabilirsiniz"},noResults:function(){return"Sonuç bulunamadı"},searching:function(){return"Aranıyor…"},removeAllItems:function(){return"Tüm öğeleri kaldır"}}}),n.define,n.require}();
|
assets/select2/i18n/uk.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/uk",[],function(){function n(n,e,u,r){return n%100>10&&n%100<15?r:n%10==1?e:n%10>1&&n%10<5?u:r}return{errorLoading:function(){return"Неможливо завантажити результати"},inputTooLong:function(e){return"Будь ласка, видаліть "+(e.input.length-e.maximum)+" "+n(e.maximum,"літеру","літери","літер")},inputTooShort:function(n){return"Будь ласка, введіть "+(n.minimum-n.input.length)+" або більше літер"},loadingMore:function(){return"Завантаження інших результатів…"},maximumSelected:function(e){return"Ви можете вибрати лише "+e.maximum+" "+n(e.maximum,"пункт","пункти","пунктів")},noResults:function(){return"Нічого не знайдено"},searching:function(){return"Пошук…"},removeAllItems:function(){return"Видалити всі елементи"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/uk",[],function(){function n(n,e,u,r){return n%100>10&&n%100<15?r:n%10==1?e:n%10>1&&n%10<5?u:r}return{errorLoading:function(){return"Неможливо завантажити результати"},inputTooLong:function(e){return"Будь ласка, видаліть "+(e.input.length-e.maximum)+" "+n(e.maximum,"літеру","літери","літер")},inputTooShort:function(n){return"Будь ласка, введіть "+(n.minimum-n.input.length)+" або більше літер"},loadingMore:function(){return"Завантаження інших результатів…"},maximumSelected:function(e){return"Ви можете вибрати лише "+e.maximum+" "+n(e.maximum,"пункт","пункти","пунктів")},noResults:function(){return"Нічого не знайдено"},searching:function(){return"Пошук…"},removeAllItems:function(){return"Видалити всі елементи"}}}),n.define,n.require}();
|
assets/select2/i18n/vi.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/vi",[],function(){return{inputTooLong:function(n){return"Vui lòng xóa bớt "+(n.input.length-n.maximum)+" ký tự"},inputTooShort:function(n){return"Vui lòng nhập thêm từ "+(n.minimum-n.input.length)+" ký tự trở lên"},loadingMore:function(){return"Đang lấy thêm kết quả…"},maximumSelected:function(n){return"Chỉ có thể chọn được "+n.maximum+" lựa chọn"},noResults:function(){return"Không tìm thấy kết quả"},searching:function(){return"Đang tìm…"},removeAllItems:function(){return"Xóa tất cả các mục"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/vi",[],function(){return{inputTooLong:function(n){return"Vui lòng xóa bớt "+(n.input.length-n.maximum)+" ký tự"},inputTooShort:function(n){return"Vui lòng nhập thêm từ "+(n.minimum-n.input.length)+" ký tự trở lên"},loadingMore:function(){return"Đang lấy thêm kết quả…"},maximumSelected:function(n){return"Chỉ có thể chọn được "+n.maximum+" lựa chọn"},noResults:function(){return"Không tìm thấy kết quả"},searching:function(){return"Đang tìm…"},removeAllItems:function(){return"Xóa tất cả các mục"}}}),n.define,n.require}();
|
assets/select2/i18n/zh-CN.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/zh-CN",[],function(){return{errorLoading:function(){return"无法载入结果。"},inputTooLong:function(n){return"请删除"+(n.input.length-n.maximum)+"个字符"},inputTooShort:function(n){return"请再输入至少"+(n.minimum-n.input.length)+"个字符"},loadingMore:function(){return"载入更多结果…"},maximumSelected:function(n){return"最多只能选择"+n.maximum+"个项目"},noResults:function(){return"未找到结果"},searching:function(){return"搜索中…"},removeAllItems:function(){return"删除所有项目"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/zh-CN",[],function(){return{errorLoading:function(){return"无法载入结果。"},inputTooLong:function(n){return"请删除"+(n.input.length-n.maximum)+"个字符"},inputTooShort:function(n){return"请再输入至少"+(n.minimum-n.input.length)+"个字符"},loadingMore:function(){return"载入更多结果…"},maximumSelected:function(n){return"最多只能选择"+n.maximum+"个项目"},noResults:function(){return"未找到结果"},searching:function(){return"搜索中…"},removeAllItems:function(){return"删除所有项目"}}}),n.define,n.require}();
|
assets/select2/i18n/zh-TW.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
/*! Select2 4.1.0-
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/zh-TW",[],function(){return{inputTooLong:function(n){return"請刪掉"+(n.input.length-n.maximum)+"個字元"},inputTooShort:function(n){return"請再輸入"+(n.minimum-n.input.length)+"個字元"},loadingMore:function(){return"載入中…"},maximumSelected:function(n){return"你只能選擇最多"+n.maximum+"項"},noResults:function(){return"沒有找到相符的項目"},searching:function(){return"搜尋中…"},removeAllItems:function(){return"刪除所有項目"}}}),n.define,n.require}();
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
|
3 |
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/zh-TW",[],function(){return{inputTooLong:function(n){return"請刪掉"+(n.input.length-n.maximum)+"個字元"},inputTooShort:function(n){return"請再輸入"+(n.minimum-n.input.length)+"個字元"},loadingMore:function(){return"載入中…"},maximumSelected:function(n){return"你只能選擇最多"+n.maximum+"項"},noResults:function(){return"沒有找到相符的項目"},searching:function(){return"搜尋中…"},removeAllItems:function(){return"刪除所有項目"}}}),n.define,n.require}();
|
assets/select2/select2.css
CHANGED
@@ -46,7 +46,14 @@
|
|
46 |
font-size: 100%;
|
47 |
margin-top: 5px;
|
48 |
margin-left: 5px;
|
49 |
-
padding: 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
|
51 |
-webkit-appearance: none; }
|
52 |
|
@@ -188,23 +195,35 @@
|
|
188 |
border-radius: 4px;
|
189 |
cursor: text;
|
190 |
padding-bottom: 5px;
|
191 |
-
padding-right: 5px;
|
|
|
|
|
|
|
192 |
.select2-container--default .select2-selection--multiple .select2-selection__clear {
|
193 |
cursor: pointer;
|
194 |
-
float: right;
|
195 |
font-weight: bold;
|
196 |
height: 20px;
|
197 |
margin-right: 10px;
|
198 |
margin-top: 5px;
|
|
|
|
|
199 |
padding: 1px; }
|
200 |
.select2-container--default .select2-selection--multiple .select2-selection__choice {
|
201 |
background-color: #e4e4e4;
|
202 |
border: 1px solid #aaa;
|
203 |
border-radius: 4px;
|
|
|
204 |
display: inline-block;
|
205 |
margin-left: 5px;
|
206 |
margin-top: 5px;
|
207 |
-
padding: 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
|
209 |
cursor: default;
|
210 |
padding-left: 2px;
|
@@ -219,7 +238,10 @@
|
|
219 |
cursor: pointer;
|
220 |
font-size: 1em;
|
221 |
font-weight: bold;
|
222 |
-
padding: 0 4px;
|
|
|
|
|
|
|
223 |
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover, .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus {
|
224 |
background-color: #f1f1f1;
|
225 |
color: #333;
|
46 |
font-size: 100%;
|
47 |
margin-top: 5px;
|
48 |
margin-left: 5px;
|
49 |
+
padding: 0;
|
50 |
+
max-width: 100%;
|
51 |
+
resize: none;
|
52 |
+
height: 18px;
|
53 |
+
vertical-align: bottom;
|
54 |
+
font-family: sans-serif;
|
55 |
+
overflow: hidden;
|
56 |
+
word-break: keep-all; }
|
57 |
.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
|
58 |
-webkit-appearance: none; }
|
59 |
|
195 |
border-radius: 4px;
|
196 |
cursor: text;
|
197 |
padding-bottom: 5px;
|
198 |
+
padding-right: 5px;
|
199 |
+
position: relative; }
|
200 |
+
.select2-container--default .select2-selection--multiple.select2-selection--clearable {
|
201 |
+
padding-right: 25px; }
|
202 |
.select2-container--default .select2-selection--multiple .select2-selection__clear {
|
203 |
cursor: pointer;
|
|
|
204 |
font-weight: bold;
|
205 |
height: 20px;
|
206 |
margin-right: 10px;
|
207 |
margin-top: 5px;
|
208 |
+
position: absolute;
|
209 |
+
right: 0;
|
210 |
padding: 1px; }
|
211 |
.select2-container--default .select2-selection--multiple .select2-selection__choice {
|
212 |
background-color: #e4e4e4;
|
213 |
border: 1px solid #aaa;
|
214 |
border-radius: 4px;
|
215 |
+
box-sizing: border-box;
|
216 |
display: inline-block;
|
217 |
margin-left: 5px;
|
218 |
margin-top: 5px;
|
219 |
+
padding: 0;
|
220 |
+
padding-left: 20px;
|
221 |
+
position: relative;
|
222 |
+
max-width: 100%;
|
223 |
+
overflow: hidden;
|
224 |
+
text-overflow: ellipsis;
|
225 |
+
vertical-align: bottom;
|
226 |
+
white-space: nowrap; }
|
227 |
.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
|
228 |
cursor: default;
|
229 |
padding-left: 2px;
|
238 |
cursor: pointer;
|
239 |
font-size: 1em;
|
240 |
font-weight: bold;
|
241 |
+
padding: 0 4px;
|
242 |
+
position: absolute;
|
243 |
+
left: 0;
|
244 |
+
top: 0; }
|
245 |
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover, .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus {
|
246 |
background-color: #f1f1f1;
|
247 |
color: #333;
|
assets/select2/select2.full.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*!
|
2 |
-
* Select2 4.1.0-
|
3 |
* https://select2.github.io
|
4 |
*
|
5 |
* Released under the MIT license
|
@@ -1085,7 +1085,8 @@ S2.define('select2/results',[
|
|
1085 |
}
|
1086 |
|
1087 |
var $childrenContainer = $('<ul></ul>', {
|
1088 |
-
'class': 'select2-results__options select2-results__options--nested'
|
|
|
1089 |
});
|
1090 |
|
1091 |
$childrenContainer.append($children);
|
@@ -1636,6 +1637,7 @@ S2.define('select2/selection/single',[
|
|
1636 |
.attr('role', 'textbox')
|
1637 |
.attr('aria-readonly', 'true');
|
1638 |
this.$selection.attr('aria-labelledby', id);
|
|
|
1639 |
|
1640 |
this.$selection.on('mousedown', function (evt) {
|
1641 |
// Only respond to left clicks
|
@@ -1888,6 +1890,15 @@ S2.define('select2/selection/placeholder',[
|
|
1888 |
$placeholder[0].classList.add('select2-selection__placeholder');
|
1889 |
$placeholder[0].classList.remove('select2-selection__choice');
|
1890 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1891 |
return $placeholder;
|
1892 |
};
|
1893 |
|
@@ -2006,6 +2017,7 @@ S2.define('select2/selection/allowClear',[
|
|
2006 |
decorated.call(this, data);
|
2007 |
|
2008 |
this.$selection.find('.select2-selection__clear').remove();
|
|
|
2009 |
|
2010 |
if (this.$selection.find('.select2-selection__placeholder').length > 0 ||
|
2011 |
data.length === 0) {
|
@@ -2028,6 +2040,7 @@ S2.define('select2/selection/allowClear',[
|
|
2028 |
Utils.StoreData($remove[0], 'data', data);
|
2029 |
|
2030 |
this.$selection.prepend($remove);
|
|
|
2031 |
};
|
2032 |
|
2033 |
return AllowClear;
|
@@ -2043,18 +2056,22 @@ S2.define('select2/selection/search',[
|
|
2043 |
}
|
2044 |
|
2045 |
Search.prototype.render = function (decorated) {
|
|
|
2046 |
var $search = $(
|
2047 |
'<span class="select2-search select2-search--inline">' +
|
2048 |
-
'<
|
|
|
2049 |
' autocorrect="off" autocapitalize="none"' +
|
2050 |
-
' spellcheck="false" role="searchbox" aria-autocomplete="list"
|
|
|
2051 |
'</span>'
|
2052 |
);
|
2053 |
|
2054 |
this.$searchContainer = $search;
|
2055 |
-
this.$search = $search.find('
|
2056 |
|
2057 |
this.$search.prop('autocomplete', this.options.get('autocomplete'));
|
|
|
2058 |
|
2059 |
var $rendered = decorated.call(this);
|
2060 |
|
@@ -3841,7 +3858,7 @@ S2.define('select2/data/tags',[
|
|
3841 |
|
3842 |
if (tag != null) {
|
3843 |
var $option = self.option(tag);
|
3844 |
-
$option.attr('data-select2-tag', true);
|
3845 |
|
3846 |
self.addOptions([$option]);
|
3847 |
|
@@ -4177,6 +4194,7 @@ S2.define('select2/dropdown/search',[
|
|
4177 |
|
4178 |
Search.prototype.render = function (decorated) {
|
4179 |
var $rendered = decorated.call(this);
|
|
|
4180 |
|
4181 |
var $search = $(
|
4182 |
'<span class="select2-search select2-search--dropdown">' +
|
@@ -4190,6 +4208,7 @@ S2.define('select2/dropdown/search',[
|
|
4190 |
this.$search = $search.find('input');
|
4191 |
|
4192 |
this.$search.prop('autocomplete', this.options.get('autocomplete'));
|
|
|
4193 |
|
4194 |
$rendered.prepend($search);
|
4195 |
|
@@ -4835,6 +4854,38 @@ S2.define('select2/dropdown/dropdownCss',[
|
|
4835 |
return DropdownCSS;
|
4836 |
});
|
4837 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4838 |
S2.define('select2/i18n/en',[],function () {
|
4839 |
// English
|
4840 |
return {
|
@@ -4882,6 +4933,9 @@ S2.define('select2/i18n/en',[],function () {
|
|
4882 |
},
|
4883 |
removeItem: function () {
|
4884 |
return 'Remove item';
|
|
|
|
|
|
|
4885 |
}
|
4886 |
};
|
4887 |
});
|
@@ -4921,6 +4975,7 @@ S2.define('select2/defaults',[
|
|
4921 |
'./dropdown/selectOnClose',
|
4922 |
'./dropdown/closeOnSelect',
|
4923 |
'./dropdown/dropdownCss',
|
|
|
4924 |
|
4925 |
'./i18n/en'
|
4926 |
], function ($,
|
@@ -4937,7 +4992,7 @@ S2.define('select2/defaults',[
|
|
4937 |
|
4938 |
Dropdown, DropdownSearch, HidePlaceholder, InfiniteScroll,
|
4939 |
AttachBody, MinimumResultsForSearch, SelectOnClose, CloseOnSelect,
|
4940 |
-
DropdownCSS,
|
4941 |
|
4942 |
EnglishTranslation) {
|
4943 |
function Defaults () {
|
@@ -5012,6 +5067,13 @@ S2.define('select2/defaults',[
|
|
5012 |
SelectOnClose
|
5013 |
);
|
5014 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5015 |
}
|
5016 |
|
5017 |
if (options.dropdownAdapter == null) {
|
@@ -5757,12 +5819,11 @@ S2.define('select2/core',[
|
|
5757 |
var key = evt.which;
|
5758 |
|
5759 |
if (self.isOpen()) {
|
5760 |
-
if (key === KEYS.ESC || key === KEYS.
|
5761 |
-
(key === KEYS.UP && evt.altKey)) {
|
5762 |
self.close(evt);
|
5763 |
|
5764 |
evt.preventDefault();
|
5765 |
-
} else if (key === KEYS.ENTER) {
|
5766 |
self.trigger('results:select', {});
|
5767 |
|
5768 |
evt.preventDefault();
|
@@ -6009,6 +6070,7 @@ S2.define('select2/core',[
|
|
6009 |
};
|
6010 |
|
6011 |
Select2.prototype.destroy = function () {
|
|
|
6012 |
this.$container.remove();
|
6013 |
|
6014 |
this._observer.disconnect();
|
@@ -6367,7 +6429,7 @@ S2.define('select2/selection/stopPropagation',[
|
|
6367 |
}
|
6368 |
|
6369 |
function shouldAdjustOldDeltas(orgEvent, absDelta) {
|
6370 |
-
// If this is an older event and the delta is
|
6371 |
// then we are assuming that the browser is treating this as an
|
6372 |
// older mouse wheel event and that we should divide the deltas
|
6373 |
// by 40 to try and get a more usable deltaFactor.
|
1 |
/*!
|
2 |
+
* Select2 4.1.0-rc.0
|
3 |
* https://select2.github.io
|
4 |
*
|
5 |
* Released under the MIT license
|
1085 |
}
|
1086 |
|
1087 |
var $childrenContainer = $('<ul></ul>', {
|
1088 |
+
'class': 'select2-results__options select2-results__options--nested',
|
1089 |
+
'role': 'none'
|
1090 |
});
|
1091 |
|
1092 |
$childrenContainer.append($children);
|
1637 |
.attr('role', 'textbox')
|
1638 |
.attr('aria-readonly', 'true');
|
1639 |
this.$selection.attr('aria-labelledby', id);
|
1640 |
+
this.$selection.attr('aria-controls', id);
|
1641 |
|
1642 |
this.$selection.on('mousedown', function (evt) {
|
1643 |
// Only respond to left clicks
|
1890 |
$placeholder[0].classList.add('select2-selection__placeholder');
|
1891 |
$placeholder[0].classList.remove('select2-selection__choice');
|
1892 |
|
1893 |
+
var placeholderTitle = placeholder.title ||
|
1894 |
+
placeholder.text ||
|
1895 |
+
$placeholder.text();
|
1896 |
+
|
1897 |
+
this.$selection.find('.select2-selection__rendered').attr(
|
1898 |
+
'title',
|
1899 |
+
placeholderTitle
|
1900 |
+
);
|
1901 |
+
|
1902 |
return $placeholder;
|
1903 |
};
|
1904 |
|
2017 |
decorated.call(this, data);
|
2018 |
|
2019 |
this.$selection.find('.select2-selection__clear').remove();
|
2020 |
+
this.$selection[0].classList.remove('select2-selection--clearable');
|
2021 |
|
2022 |
if (this.$selection.find('.select2-selection__placeholder').length > 0 ||
|
2023 |
data.length === 0) {
|
2040 |
Utils.StoreData($remove[0], 'data', data);
|
2041 |
|
2042 |
this.$selection.prepend($remove);
|
2043 |
+
this.$selection[0].classList.add('select2-selection--clearable');
|
2044 |
};
|
2045 |
|
2046 |
return AllowClear;
|
2056 |
}
|
2057 |
|
2058 |
Search.prototype.render = function (decorated) {
|
2059 |
+
var searchLabel = this.options.get('translations').get('search');
|
2060 |
var $search = $(
|
2061 |
'<span class="select2-search select2-search--inline">' +
|
2062 |
+
'<textarea class="select2-search__field"'+
|
2063 |
+
' type="search" tabindex="-1"' +
|
2064 |
' autocorrect="off" autocapitalize="none"' +
|
2065 |
+
' spellcheck="false" role="searchbox" aria-autocomplete="list" >' +
|
2066 |
+
'</textarea>' +
|
2067 |
'</span>'
|
2068 |
);
|
2069 |
|
2070 |
this.$searchContainer = $search;
|
2071 |
+
this.$search = $search.find('textarea');
|
2072 |
|
2073 |
this.$search.prop('autocomplete', this.options.get('autocomplete'));
|
2074 |
+
this.$search.attr('aria-label', searchLabel());
|
2075 |
|
2076 |
var $rendered = decorated.call(this);
|
2077 |
|
3858 |
|
3859 |
if (tag != null) {
|
3860 |
var $option = self.option(tag);
|
3861 |
+
$option.attr('data-select2-tag', 'true');
|
3862 |
|
3863 |
self.addOptions([$option]);
|
3864 |
|
4194 |
|
4195 |
Search.prototype.render = function (decorated) {
|
4196 |
var $rendered = decorated.call(this);
|
4197 |
+
var searchLabel = this.options.get('translations').get('search');
|
4198 |
|
4199 |
var $search = $(
|
4200 |
'<span class="select2-search select2-search--dropdown">' +
|
4208 |
this.$search = $search.find('input');
|
4209 |
|
4210 |
this.$search.prop('autocomplete', this.options.get('autocomplete'));
|
4211 |
+
this.$search.attr('aria-label', searchLabel());
|
4212 |
|
4213 |
$rendered.prepend($search);
|
4214 |
|
4854 |
return DropdownCSS;
|
4855 |
});
|
4856 |
|
4857 |
+
S2.define('select2/dropdown/tagsSearchHighlight',[
|
4858 |
+
'../utils'
|
4859 |
+
], function (Utils) {
|
4860 |
+
function TagsSearchHighlight () { }
|
4861 |
+
|
4862 |
+
TagsSearchHighlight.prototype.highlightFirstItem = function (decorated) {
|
4863 |
+
var $options = this.$results
|
4864 |
+
.find(
|
4865 |
+
'.select2-results__option--selectable' +
|
4866 |
+
':not(.select2-results__option--selected)'
|
4867 |
+
);
|
4868 |
+
|
4869 |
+
if ($options.length > 0) {
|
4870 |
+
var $firstOption = $options.first();
|
4871 |
+
var data = Utils.GetData($firstOption[0], 'data');
|
4872 |
+
var firstElement = data.element;
|
4873 |
+
|
4874 |
+
if (firstElement && firstElement.getAttribute) {
|
4875 |
+
if (firstElement.getAttribute('data-select2-tag') === 'true') {
|
4876 |
+
$firstOption.trigger('mouseenter');
|
4877 |
+
|
4878 |
+
return;
|
4879 |
+
}
|
4880 |
+
}
|
4881 |
+
}
|
4882 |
+
|
4883 |
+
decorated.call(this);
|
4884 |
+
};
|
4885 |
+
|
4886 |
+
return TagsSearchHighlight;
|
4887 |
+
});
|
4888 |
+
|
4889 |
S2.define('select2/i18n/en',[],function () {
|
4890 |
// English
|
4891 |
return {
|
4933 |
},
|
4934 |
removeItem: function () {
|
4935 |
return 'Remove item';
|
4936 |
+
},
|
4937 |
+
search: function() {
|
4938 |
+
return 'Search';
|
4939 |
}
|
4940 |
};
|
4941 |
});
|
4975 |
'./dropdown/selectOnClose',
|
4976 |
'./dropdown/closeOnSelect',
|
4977 |
'./dropdown/dropdownCss',
|
4978 |
+
'./dropdown/tagsSearchHighlight',
|
4979 |
|
4980 |
'./i18n/en'
|
4981 |
], function ($,
|
4992 |
|
4993 |
Dropdown, DropdownSearch, HidePlaceholder, InfiniteScroll,
|
4994 |
AttachBody, MinimumResultsForSearch, SelectOnClose, CloseOnSelect,
|
4995 |
+
DropdownCSS, TagsSearchHighlight,
|
4996 |
|
4997 |
EnglishTranslation) {
|
4998 |
function Defaults () {
|
5067 |
SelectOnClose
|
5068 |
);
|
5069 |
}
|
5070 |
+
|
5071 |
+
if (options.tags) {
|
5072 |
+
options.resultsAdapter = Utils.Decorate(
|
5073 |
+
options.resultsAdapter,
|
5074 |
+
TagsSearchHighlight
|
5075 |
+
);
|
5076 |
+
}
|
5077 |
}
|
5078 |
|
5079 |
if (options.dropdownAdapter == null) {
|
5819 |
var key = evt.which;
|
5820 |
|
5821 |
if (self.isOpen()) {
|
5822 |
+
if (key === KEYS.ESC || (key === KEYS.UP && evt.altKey)) {
|
|
|
5823 |
self.close(evt);
|
5824 |
|
5825 |
evt.preventDefault();
|
5826 |
+
} else if (key === KEYS.ENTER || key === KEYS.TAB) {
|
5827 |
self.trigger('results:select', {});
|
5828 |
|
5829 |
evt.preventDefault();
|
6070 |
};
|
6071 |
|
6072 |
Select2.prototype.destroy = function () {
|
6073 |
+
Utils.RemoveData(this.$container[0]);
|
6074 |
this.$container.remove();
|
6075 |
|
6076 |
this._observer.disconnect();
|
6429 |
}
|
6430 |
|
6431 |
function shouldAdjustOldDeltas(orgEvent, absDelta) {
|
6432 |
+
// If this is an older event and the delta is divisible by 120,
|
6433 |
// then we are assuming that the browser is treating this as an
|
6434 |
// older mouse wheel event and that we should divide the deltas
|
6435 |
// by 40 to try and get a more usable deltaFactor.
|
assets/select2/select2.full.min.js
CHANGED
@@ -1 +1,2 @@
|
|
1 |
-
!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(t){var e,n,i,o,h,s,r,f,g,m,v,y,_,a,l,w,c,u=(t&&t.fn&&t.fn.select2&&t.fn.select2.amd&&(e=t.fn.select2.amd),e&&e.requirejs||(e?i=e:e={},m={},v={},y={},_={},a=Object.prototype.hasOwnProperty,l=[].slice,w=/\.js$/,f=function(e,t){var n,i,o=p(e),s=o[0],r=t[1];return e=o[1],s&&(n=A(s=d(s,r))),s?e=n&&n.normalize?n.normalize(e,(i=r,function(e){return d(e,i)})):d(e,r):(s=(o=p(e=d(e,r)))[0],e=o[1],s&&(n=A(s))),{f:s?s+"!"+e:e,n:e,pr:s,p:n}},g={require:function(e){return x(e)},exports:function(e){var t=m[e];return void 0!==t?t:m[e]={}},module:function(e){return{id:e,uri:"",exports:m[e],config:(t=e,function(){return y&&y.config&&y.config[t]||{}})};var t}},s=function(e,t,n,i){var o,s,r,a,l,c,u=[],d=typeof n,p=D(i=i||e);if("undefined"==d||"function"==d){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(s=(a=f(t[l],p)).f))u[l]=g.require(e);else if("exports"===s)u[l]=g.exports(e),c=!0;else if("module"===s)o=u[l]=g.module(e);else if(b(m,s)||b(v,s)||b(_,s))u[l]=A(s);else{if(!a.p)throw new Error(e+" missing "+s);a.p.load(a.n,x(i,!0),function(t){return function(e){m[t]=e}}(s),{}),u[l]=m[s]}r=n?n.apply(m[e],u):void 0,e&&(o&&o.exports!==h&&o.exports!==m[e]?m[e]=o.exports:r===h&&c||(m[e]=r))}else e&&(m[e]=n)},n=i=r=function(e,t,n,i,o){if("string"==typeof e)return g[e]?g[e](t):A(f(e,D(t)).f);if(!e.splice){if((y=e).deps&&r(y.deps,y.callback),!t)return;t.splice?(e=t,t=n,n=null):e=h}return t=t||function(){},"function"==typeof n&&(n=i,i=o),i?s(h,e,t,n):setTimeout(function(){s(h,e,t,n)},4),r},r.config=function(e){return r(e)},n._defined=m,(o=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=[]),b(m,e)||b(v,e)||(v[e]=[e,t,n])}).amd={jQuery:!0},e.requirejs=n,e.require=i,e.define=o),e.define("almond",function(){}),e.define("jquery",[],function(){var e=t||$;return null==e&&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."),e}),e.define("select2/utils",["jquery"],function(s){var o={};function c(e){var t=e.prototype,n=[];for(var i in t)"function"==typeof t[i]&&"constructor"!==i&&n.push(i);return n}function e(){this.listeners={}}o.Extend=function(e,t){var n={}.hasOwnProperty;function i(){this.constructor=e}for(var o in t)n.call(t,o)&&(e[o]=t[o]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},o.Decorate=function(i,o){var e=c(o),t=c(i);function s(){var e=Array.prototype.unshift,t=o.prototype.constructor.length,n=i.prototype.constructor;0<t&&(e.call(arguments,i.prototype.constructor),n=o.prototype.constructor),n.apply(this,arguments)}o.displayName=i.displayName,s.prototype=new function(){this.constructor=s};for(var n=0;n<t.length;n++){var r=t[n];s.prototype[r]=i.prototype[r]}for(var a=0;a<e.length;a++){var l=e[a];s.prototype[l]=function(e){var t=function(){};e in s.prototype&&(t=s.prototype[e]);var n=o.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}}(l)}return s},e.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},e.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)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},e.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},o.Observable=e,o.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t},o.bind=function(e,t){return function(){e.apply(t,arguments)}},o._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var o=0;o<n.length;o++){var s=n[o];(s=s.substring(0,1).toLowerCase()+s.substring(1))in i||(i[s]={}),o==n.length-1&&(i[s]=e[t]),i=i[s]}delete e[t]}}return e},o.hasScroll=function(e,t){var n=s(t),i=t.style.overflowX,o=t.style.overflowY;return(i!==o||"hidden"!==o&&"visible"!==o)&&("scroll"===i||"scroll"===o||n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth)},o.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},o.__cache={};var n=0;return o.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null!=t||(t=e.id?"select2-data-"+e.id:"select2-data-"+(++n).toString()+"-"+o.generateChars(4),e.setAttribute("data-select2-id",t)),t},o.StoreData=function(e,t,n){var i=o.GetUniqueElementId(e);o.__cache[i]||(o.__cache[i]={}),o.__cache[i][t]=n},o.GetData=function(e,t){var n=o.GetUniqueElementId(e);return t?o.__cache[n]&&null!=o.__cache[n][t]?o.__cache[n][t]:s(e).data(t):o.__cache[n]},o.RemoveData=function(e){var t=o.GetUniqueElementId(e);null!=o.__cache[t]&&delete o.__cache[t],e.removeAttribute("data-select2-id")},o.copyNonInternalCssClasses=function(e,t){var n=(n=e.getAttribute("class").trim().split(/\s+/)).filter(function(e){return 0===e.indexOf("select2-")}),i=(i=t.getAttribute("class").trim().split(/\s+/)).filter(function(e){return 0!==e.indexOf("select2-")}),o=n.concat(i);e.setAttribute("class",o.join(" "))},o}),e.define("select2/results",["jquery","./utils"],function(h,f){function i(e,t,n){this.$element=e,this.data=n,this.options=t,i.__super__.constructor.call(this)}return f.Extend(i,f.Observable),i.prototype.render=function(){var e=h('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=h('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),i=this.options.get("translations").get(e.message);n.append(t(i(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.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],o=this.option(i);t.push(o)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},i.prototype.position=function(e,t){t.find(".select2-results").append(e)},i.prototype.sort=function(e){return this.options.get("sorter")(e)},i.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option--selectable"),t=e.filter(".select2-results__option--selected");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var t=this;this.data.current(function(e){var i=e.map(function(e){return e.id.toString()});t.$results.find(".select2-results__option--selectable").each(function(){var e=h(this),t=f.GetData(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<i.indexOf(n)?(this.classList.add("select2-results__option--selected"),e.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),e.attr("aria-selected","false"))})})},i.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)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(e){var t=document.createElement("li");t.classList.add("select2-results__option"),t.classList.add("select2-results__option--selectable");var n={role:"option"},i=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var o in(null!=e.element&&i.call(e.element,":disabled")||null==e.element&&e.disabled)&&(n["aria-disabled"]="true",t.classList.remove("select2-results__option--selectable"),t.classList.add("select2-results__option--disabled")),null==e.id&&t.classList.remove("select2-results__option--selectable"),null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,t.classList.remove("select2-results__option--selectable"),t.classList.add("select2-results__option--group")),n){var s=n[o];t.setAttribute(o,s)}if(e.children){var r=h(t),a=document.createElement("strong");a.className="select2-results__group",this.template(e,a);for(var l=[],c=0;c<e.children.length;c++){var u=e.children[c],d=this.option(u);l.push(d)}var p=h("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(l),r.append(a),r.append(p)}else this.template(e,t);return f.StoreData(t,"data",e),t},i.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e,t=l.getHighlightedResults();0!==t.length&&(e=f.GetData(t[0],"data"),t.hasClass("select2-results__option--selected")?l.trigger("close",{}):l.trigger("select",{data:e}))}),t.on("results:previous",function(){var e,t,n,i,o,s=l.getHighlightedResults(),r=l.$results.find(".select2-results__option--selectable"),a=r.index(s);a<=0||(e=a-1,0===s.length&&(e=0),(t=r.eq(e)).trigger("mouseenter"),n=l.$results.offset().top,i=t.offset().top,o=l.$results.scrollTop()+(i-n),0===e?l.$results.scrollTop(0):i-n<0&&l.$results.scrollTop(o))}),t.on("results:next",function(){var e,t,n,i,o=l.getHighlightedResults(),s=l.$results.find(".select2-results__option--selectable"),r=s.index(o)+1;r>=s.length||((e=s.eq(r)).trigger("mouseenter"),t=l.$results.offset().top+l.$results.outerHeight(!1),n=e.offset().top+e.outerHeight(!1),i=l.$results.scrollTop()+n-t,0===r?l.$results.scrollTop(0):t<n&&l.$results.scrollTop(i))}),t.on("results:focus",function(e){e.element[0].classList.add("select2-results__option--highlighted"),e.element[0].setAttribute("aria-selected","true")}),t.on("results:message",function(e){l.displayMessage(e)}),h.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-t+e.deltaY,i=0<e.deltaY&&t-e.deltaY<=0,o=e.deltaY<0&&n<=l.$results.height();i?(l.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):o&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option--selectable",function(e){var t=h(this),n=f.GetData(this,"data");t.hasClass("select2-results__option--selected")?l.options.get("multiple")?l.trigger("unselect",{originalEvent:e,data:n}):l.trigger("close",{}):l.trigger("select",{originalEvent:e,data:n})}),this.$results.on("mouseenter",".select2-results__option--selectable",function(e){var t=f.GetData(this,"data");l.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),l.trigger("results:focus",{data:t,element:h(this)})})},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var e,t,n,i,o,s=this.getHighlightedResults();0!==s.length&&(e=this.$results.find(".select2-results__option--selectable").index(s),t=this.$results.offset().top,n=s.offset().top,i=this.$results.scrollTop()+(n-t),o=n-t,i-=2*s.outerHeight(!1),e<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(i))},i.prototype.template=function(e,t){var n=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),o=n(e,t);null==o?t.style.display="none":"string"==typeof o?t.innerHTML=i(o):h(t).append(o)},i}),e.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}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(n,i,o){function s(e,t){this.$element=e,this.options=t,s.__super__.constructor.call(this)}return i.Extend(s,i.Observable),s.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=i.GetData(this.$element[0],"old-tabindex")?this._tabindex=i.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e},s.prototype.bind=function(e,t){var n=this,i=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===o.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",i),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},s.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},s.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){this!=t[0]&&i.GetData(this,"element").select2("close")})})},s.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},s.prototype.position=function(e,t){t.find(".selection").append(e)},s.prototype.destroy=function(){this._detachCloseHandler(this.container)},s.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},s.prototype.isEnabled=function(){return!this.isDisabled()},s.prototype.isDisabled=function(){return this.options.get("disabled")},s}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function o(){o.__super__.constructor.apply(this,arguments)}return n.Extend(o,t),o.prototype.render=function(){var e=o.__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},o.prototype.bind=function(t,e){var n=this;o.__super__.bind.apply(this,arguments);var i=t.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){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")})},o.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},o.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},o.prototype.selectionContainer=function(){return e("<span></span>")},o.prototype.update=function(e){var t,n,i,o;0!==e.length?(t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n),n.empty().append(i),(o=t.title||t.text)?n.attr("title",o):n.removeAttr("title")):this.clear()},o}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(o,e,d){function s(e,t){s.__super__.constructor.apply(this,arguments)}return d.Extend(s,e),s.prototype.render=function(){var e=s.__super__.render.call(this);return e[0].classList.add("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},s.prototype.bind=function(e,t){var i=this;s.__super__.bind.apply(this,arguments);var n=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",n),this.$selection.on("click",function(e){i.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){var t,n;i.isDisabled()||(t=o(this).parent(),n=d.GetData(t[0],"data"),i.trigger("unselect",{originalEvent:e,data:n}))}),this.$selection.on("keydown",".select2-selection__choice__remove",function(e){i.isDisabled()||e.stopPropagation()})},s.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},s.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},s.prototype.selectionContainer=function(){return o('<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>')},s.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",i=0;i<e.length;i++){var o=e[i],s=this.selectionContainer(),r=this.display(o,s),a=n+d.generateChars(4)+"-";o.id?a+=o.id:a+=d.generateChars(4),s.find(".select2-selection__choice__display").append(r).attr("id",a);var l=o.title||o.text;l&&s.attr("title",l);var c=this.options.get("translations").get("removeItem"),u=s.find(".select2-selection__choice__remove");u.attr("title",c()),u.attr("aria-label",c()),u.attr("aria-describedby",a),d.StoreData(s[0],"data",o),t.push(s)}this.$selection.find(".select2-selection__rendered").append(t)}},s}),e.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();return n.html(this.display(t)),n[0].classList.add("select2-selection__placeholder"),n[0].classList.remove("select2-selection__choice"),n},e.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},e}),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(s,i,a){function e(){}return e.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)})},e.prototype._handleClear=function(e,t){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var i=a.GetData(n[0],"data"),o=this.$element.val();this.$element.val(this.placeholder.id);var s={data:i};if(this.trigger("clear",s),s.prevented)this.$element.val(o);else{for(var r=0;r<i.length;r++)if(s={data:i[r]},this.trigger("unselect",s),s.prevented)return void this.$element.val(o);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=i.DELETE&&t.which!=i.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){var n,i,o;e.call(this,t),this.$selection.find(".select2-selection__clear").remove(),0<this.$selection.find(".select2-selection__placeholder").length||0===t.length||(n=this.$selection.find(".select2-selection__rendered").attr("id"),i=this.options.get("translations").get("removeAllItems"),(o=s('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">×</span></button>')).attr("title",i()),o.attr("aria-label",i()),o.attr("aria-describedby",n),a.StoreData(o[0],"data",t),this.$selection.prepend(o))},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(i,l,c){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=i('<span class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');this.$searchContainer=t,this.$search=t.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete"));var n=e.call(this);return this._transferTabIndex(),n.append(this.$searchContainer),n},e.prototype.bind=function(e,t,n){var i=this,o=t.id+"-results",s=t.id+"-container";e.call(this,t,n),i.$search.attr("aria-describedby",s),t.on("open",function(){i.$search.attr("aria-controls",o),i.$search.trigger("focus")}),t.on("close",function(){i.$search.val(""),i.resizeSearch(),i.$search.removeAttr("aria-controls"),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")}),t.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),t.on("disable",function(){i.$search.prop("disabled",!0)}),t.on("focus",function(e){i.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?i.$search.attr("aria-activedescendant",e.data._resultId):i.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){i.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){i._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){var t,n;e.stopPropagation(),i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented(),e.which!==c.BACKSPACE||""!==i.$search.val()||0<(t=i.$selection.find(".select2-selection__choice").last()).length&&(n=l.GetData(t[0],"data"),i.searchRemoveChoice(n),e.preventDefault())}),this.$selection.on("click",".select2-search--inline",function(e){i.$search.val()&&e.stopPropagation()});var r=document.documentMode,a=r&&r<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){a?i.$selection.off("input.search input.searchcheck"):i.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){var t;a&&"input"===e.type?i.$selection.off("input.search input.searchcheck"):(t=e.which)!=c.SHIFT&&t!=c.CTRL&&t!=c.ALT&&t!=c.TAB&&i.handleSearch(e)})},e.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},e.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")},e.prototype.handleSearch=function(){var e;this.resizeSearch(),this._keyUpPrevented||(e=this.$search.val(),this.trigger("query",{term:e})),this._keyUpPrevented=!1},e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},e.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)},e}),e.define("select2/selection/selectionCss",["../utils"],function(i){function e(){}return e.prototype.render=function(e){var t=e.call(this),n=this.options.get("selectionCssClass")||"";return-1!==n.indexOf(":all:")&&(n=n.replace(":all:",""),i.copyNonInternalCssClasses(t[0],this.$element[0])),t.addClass(n),t},e}),e.define("select2/selection/eventRelay",["jquery"],function(r){function e(){}return e.prototype.bind=function(e,t,n){var i=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],s=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n),t.on("*",function(e,t){var n;-1!==o.indexOf(e)&&(t=t||{},n=r.Event("select2:"+e,{params:t}),i.$element.trigger(n),-1!==s.indexOf(e)&&(t.prevented=n.isDefaultPrevented()))})},e}),e.define("select2/translation",["jquery","require"],function(t,n){function i(e){this.dict=e||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(e){return this.dict[e]},i.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},i._cache={},i.loadPath=function(e){var t;return e in i._cache||(t=n(e),i._cache[e]=t),new i(i._cache[e])},i}),e.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","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),e.define("select2/data/base",["../utils"],function(i){function n(e,t){n.__super__.constructor.call(this)}return i.Extend(n,i.Observable),n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(e,t){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(e,t){var n=e.id+"-result-";return n+=i.generateChars(4),null!=t.id?n+="-"+t.id.toString():n+="-"+i.generateChars(4),n},n}),e.define("select2/data/select",["./base","../utils","jquery"],function(e,l,c){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return l.Extend(n,e),n.prototype.current=function(e){var t=this;e(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),function(e){return t.item(c(e))}))},n.prototype.select=function(o){var e,s=this;if(o.selected=!0,null!=o.element&&"option"===o.element.tagName.toLowerCase())return o.element.selected=!0,void this.$element.trigger("input").trigger("change");this.$element.prop("multiple")?this.current(function(e){var t=[];(o=[o]).push.apply(o,e);for(var n=0;n<o.length;n++){var i=o[n].id;-1===t.indexOf(i)&&t.push(i)}s.$element.val(t),s.$element.trigger("input").trigger("change")}):(e=o.id,this.$element.val(e),this.$element.trigger("input").trigger("change"))},n.prototype.unselect=function(o){var s=this;if(this.$element.prop("multiple")){if(o.selected=!1,null!=o.element&&"option"===o.element.tagName.toLowerCase())return o.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current(function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n].id;i!==o.id&&-1===t.indexOf(i)&&t.push(i)}s.$element.val(t),s.$element.trigger("input").trigger("change")})}},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){l.RemoveData(this)})},n.prototype.query=function(i,e){var o=[],s=this;this.$element.children().each(function(){var e,t,n;"option"!==this.tagName.toLowerCase()&&"optgroup"!==this.tagName.toLowerCase()||(e=c(this),t=s.item(e),null!==(n=s.matches(i,t))&&o.push(n))}),e({results:o})},n.prototype.addOptions=function(e){this.$element.append(e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=this._normalizeItem(e);return n.element=t,l.StoreData(t,"data",n),c(t)},n.prototype.item=function(e){var t={};if(null!=(t=l.GetData(e[0],"data")))return t;var n=e[0];if("option"===n.tagName.toLowerCase())t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if("optgroup"===n.tagName.toLowerCase()){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var i=e.children("option"),o=[],s=0;s<i.length;s++){var r=c(i[s]),a=this.item(r);o.push(a)}t.children=o}return(t=this._normalizeItem(t)).element=e[0],l.StoreData(e[0],"data",t),t},n.prototype._normalizeItem=function(e){return e!==Object(e)&&(e={id:e,text:e}),null!=(e=c.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)),c.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2/data/array",["./select","../utils","jquery"],function(e,t,h){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(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),i.__super__.select.call(this,n)},i.prototype.convertToOptions=function(e){for(var t=this,n=this.$element.find("option"),i=n.map(function(){return t.item(h(this)).id}).get(),o=[],s=0;s<e.length;s++){var r,a,l,c,u,d,p=this._normalizeItem(e[s]);0<=i.indexOf(p.id)?(r=n.filter(function(e){return function(){return h(this).val()==e.id}}(p)),a=this.item(r),l=h.extend(!0,{},p,a),c=this.option(l),r.replaceWith(c)):(u=this.option(p),p.children&&(d=this.convertToOptions(p.children),u.append(d)),o.push(u))}return o},i}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,s){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return s.extend({},e,{q:e.term})},transport:function(e,t,n){var i=s.ajax(e);return i.then(t),i.fail(n),i}};return s.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(n,i){var o=this;null!=this._request&&("function"==typeof this._request.abort&&this._request.abort(),this._request=null);var t=s.extend({type:"GET"},this.ajaxOptions);function e(){var e=t.transport(t,function(e){var t=o.processResults(e,n);o.options.get("debug")&&window.console&&console.error&&(t&&t.results&&Array.isArray(t.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),i(t)},function(){"status"in e&&(0===e.status||"0"===e.status)||o.trigger("results:message",{message:"errorLoading"})});o._request=e}"function"==typeof t.url&&(t.url=t.url.call(this.$element,n)),"function"==typeof t.data&&(t.data=t.data.call(this.$element,n)),this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("select2/data/tags",["jquery"],function(t){function e(e,t,n){var i=n.get("tags"),o=n.get("createTag");void 0!==o&&(this.createTag=o);var s=n.get("insertTag");if(void 0!==s&&(this.insertTag=s),e.call(this,t,n),Array.isArray(i))for(var r=0;r<i.length;r++){var a=i[r],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(e,c,u){var d=this;this._removeOldTags(),null!=c.term&&null==c.page?e.call(this,c,function e(t,n){for(var i=t.results,o=0;o<i.length;o++){var s=i[o],r=null!=s.children&&!e({results:s.children},!0);if((s.text||"").toUpperCase()===(c.term||"").toUpperCase()||r)return!n&&(t.data=i,void u(t))}if(n)return!0;var a,l=d.createTag(c);null!=l&&((a=d.option(l)).attr("data-select2-tag",!0),d.addOptions([a]),d.insertTag(i,l)),t.results=i,u(t)}):e.call(this,c,u)},e.prototype.createTag=function(e,t){if(null==t.term)return null;var n=t.term.trim();return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||t(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(d){function e(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,t,n){var o=this;t.term=t.term||"";var i=this.tokenizer(t,this.options,function(e){var t,n,i=o._normalizeItem(e);o.$element.find("option").filter(function(){return d(this).val()===i.id}).length||((t=o.option(i)).attr("data-select2-tag",!0),o._removeOldTags(),o.addOptions([t])),n=i,o.trigger("select",{data:n})});i.term!==t.term&&(this.$search.length&&(this.$search.val(i.term),this.$search.trigger("focus")),t.term=i.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,i){for(var o=n.get("tokenSeparators")||[],s=t.term,r=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};r<s.length;){var l,c,u=s[r];-1!==o.indexOf(u)?(l=s.substr(0,r),null!=(c=a(d.extend({},t,{term:l})))?(i(c),s=s.substr(r+1)||"",r=0):r++):r++}return{term:s}},e}),e.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}),e.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||"",0<this.maximumInputLength&&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}),e.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,n){var i=this;this.current(function(e){var t=null!=e?e.length:0;0<i.maximumSelectionLength&&t>=i.maximumSelectionLength?i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):n&&n()})},e}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery"],function(s){function e(){}return e.prototype.render=function(e){var t=e.call(this),n=s('<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=n,this.$search=n.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),t.prepend(n),t},e.prototype.bind=function(e,t,n){var i=this,o=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){s(this).off("keyup")}),this.$search.on("keyup input",function(e){i.handleSearch(e)}),t.on("open",function(){i.$search.attr("tabindex",0),i.$search.attr("aria-controls",o),i.$search.trigger("focus"),window.setTimeout(function(){i.$search.trigger("focus")},0)}),t.on("close",function(){i.$search.attr("tabindex",-1),i.$search.removeAttr("aria-controls"),i.$search.removeAttr("aria-activedescendant"),i.$search.val(""),i.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||i.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(i.showSearch(e)?i.$searchContainer[0].classList.remove("select2-search--hide"):i.$searchContainer[0].classList.add("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?i.$search.attr("aria-activedescendant",e.data._resultId):i.$search.removeAttr("aria-activedescendant")})},e.prototype.handleSearch=function(e){var t;this._keyUpPrevented||(t=this.$search.val(),this.trigger("query",{term:t})),this._keyUpPrevented=!1},e.prototype.showSearch=function(e,t){return!0},e}),e.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;0<=i;i--){var o=t[i];this.placeholder.id===o.id&&n.splice(i,1)}return n},e}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.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())},e.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))},e.prototype.loadMoreIfNeeded=function(){var e,t=n.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&t&&(e=this.$results.offset().top+this.$results.outerHeight(!1),this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=e+50&&this.loadMore())},e.prototype.loadMore=function(){this.loading=!0;var e=n.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=n('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(f,a){function e(e,t,n){this.$dropdownParent=f(n.get("dropdownParent")||document.body),e.call(this,t,n)}return e.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()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.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},e.prototype.render=function(e){var t=f("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._bindContainerResultHandlers=function(e,t){var n;this._containerResultsHandlersBound||(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)},e.prototype._attachPositioningHandler=function(e,t){var n=this,i="scroll.select2."+t.id,o="resize.select2."+t.id,s="orientationchange.select2."+t.id,r=this.$container.parents().filter(a.hasScroll);r.each(function(){a.StoreData(this,"select2-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),r.on(i,function(e){var t=a.GetData(this,"select2-scroll-position");f(this).scrollTop(t.y)}),f(window).on(i+" "+o+" "+s,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,i="resize.select2."+t.id,o="orientationchange.select2."+t.id;this.$container.parents().filter(a.hasScroll).off(n),f(window).off(n+" "+i+" "+o)},e.prototype._positionDropdown=function(){var e=f(window),t=this.$dropdown[0].classList.contains("select2-dropdown--above"),n=this.$dropdown[0].classList.contains("select2-dropdown--below"),i=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 r=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a<o.top-r,u=l>o.bottom+r,d={left:o.left,top:s.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h={top:0,left:0};(f.contains(document.body,p[0])||p[0].isConnected)&&(h=p.offset()),d.top-=h.top,d.left-=h.left,t||n||(i="below"),u||!c||t?!c&&u&&t&&(i="below"):i="above",("above"==i||t&&"below"!==i)&&(d.top=s.top-h.top-r),null!=i&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+i),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+i)),this.$dropdownContainer.css(d)},e.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)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.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 o=t[i];o.children?n+=e(o.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2/dropdown/selectOnClose",["../utils"],function(s){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var i,o=this.getHighlightedResults();o.length<1||null!=(i=s.GetData(o[0],"data")).element&&i.element.selected||null==i.element&&i.selected||this.trigger("select",{data:i})},e}),e.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}),e.define("select2/dropdown/dropdownCss",["../utils"],function(i){function e(){}return e.prototype.render=function(e){var t=e.call(this),n=this.options.get("dropdownCssClass")||"";return-1!==n.indexOf(":all:")&&(n=n.replace(":all:",""),i.copyNonInternalCssClasses(t[0],this.$element[0])),t.addClass(n),t},e}),e.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"}}}),e.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","./i18n/en"],function(l,s,r,a,c,u,d,p,h,f,g,t,m,v,y,_,w,b,$,x,A,D,S,O,E,L,C,T,q,e){function n(){this.reset()}return n.prototype.apply=function(e){var t;null==(e=l.extend(!0,{},this.defaults,e)).dataAdapter&&(null!=e.ajax?e.dataAdapter=y:null!=e.data?e.dataAdapter=v:e.dataAdapter=m,0<e.minimumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,b)),0<e.maximumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,$)),0<e.maximumSelectionLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,x)),e.tags&&(e.dataAdapter=f.Decorate(e.dataAdapter,_)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=f.Decorate(e.dataAdapter,w))),null==e.resultsAdapter&&(e.resultsAdapter=s,null!=e.ajax&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,O)),null!=e.placeholder&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,S)),e.selectOnClose&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,C))),null==e.dropdownAdapter&&(e.multiple?e.dropdownAdapter=A:(t=f.Decorate(A,D),e.dropdownAdapter=t),0!==e.minimumResultsForSearch&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,L)),e.closeOnSelect&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,T)),null!=e.dropdownCssClass&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,q)),e.dropdownAdapter=f.Decorate(e.dropdownAdapter,E)),null==e.selectionAdapter&&(e.multiple?e.selectionAdapter=a:e.selectionAdapter=r,null!=e.placeholder&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,c)),e.allowClear&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,u)),e.multiple&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,d)),null!=e.selectionCssClass&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,p)),e.selectionAdapter=f.Decorate(e.selectionAdapter,h)),e.language=this._resolveLanguage(e.language),e.language.push("en");for(var n=[],i=0;i<e.language.length;i++){var o=e.language[i];-1===n.indexOf(o)&&n.push(o)}return e.language=n,e.translations=this._processTranslations(e.language,e.debug),e},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:f.escapeMarkup,language:{},matcher:function e(t,n){if(null==t.term||""===t.term.trim())return n;if(n.children&&0<n.children.length){for(var i=l.extend(!0,{},n),o=n.children.length-1;0<=o;o--)null==e(t,n.children[o])&&i.children.splice(o,1);return 0<i.children.length?i:e(t,i)}var s=a(n.text).toUpperCase(),r=a(t.term).toUpperCase();return-1<s.indexOf(r)?n: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"}},n.prototype.applyFromElement=function(e,t){var n=e.language,i=this.defaults.language,o=t.prop("lang"),s=t.closest("[lang]").prop("lang"),r=Array.prototype.concat.call(this._resolveLanguage(o),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(s));return e.language=r,e},n.prototype._resolveLanguage=function(e){if(!e)return[];if(l.isEmptyObject(e))return[];if(l.isPlainObject(e))return[e];for(var t,n=Array.isArray(e)?e:[e],i=[],o=0;o<n.length;o++)i.push(n[o]),"string"==typeof n[o]&&0<n[o].indexOf("-")&&(t=n[o].split("-")[0],i.push(t));return i},n.prototype._processTranslations=function(e,t){for(var n=new g,i=0;i<e.length;i++){var o=new g,s=e[i];if("string"==typeof s)try{o=g.loadPath(s)}catch(e){try{s=this.defaults.amdLanguageBase+s,o=g.loadPath(s)}catch(e){t&&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=l.isPlainObject(s)?new g(s):s;n.extend(o)}return n},n.prototype.set=function(e,t){var n={};n[l.camelCase(e)]=t;var i=f._convertData(n);l.extend(!0,this.defaults,i)},new n}),e.define("select2/options",["jquery","./defaults","./utils"],function(d,n,p){function e(e,t){this.options=e,null!=t&&this.fromElement(t),null!=t&&(this.options=n.applyFromElement(this.options,t)),this.options=n.apply(this.options)}return e.prototype.fromElement=function(e){var t=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.autocomplete&&e.prop("autocomplete")&&(this.options.autocomplete=e.prop("autocomplete")),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),p.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.'),p.StoreData(e[0],"data",p.GetData(e[0],"select2Tags")),p.StoreData(e[0],"tags",!0)),p.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",p.GetData(e[0],"ajaxUrl")),p.StoreData(e[0],"ajax-Url",p.GetData(e[0],"ajaxUrl")));var n={};function i(e,t){return t.toUpperCase()}for(var o=0;o<e[0].attributes.length;o++){var s,r,a=e[0].attributes[o].name,l="data-";a.substr(0,l.length)==l&&(s=a.substring(l.length),r=p.GetData(e[0],s),n[s.replace(/-([a-z])/g,i)]=r)}d.fn.jquery&&"1."==d.fn.jquery.substr(0,2)&&e[0].dataset&&(n=d.extend(!0,{},e[0].dataset,n));var c=d.extend(!0,{},p.GetData(e[0]),n),c=p._convertData(c);for(var u in c)-1<t.indexOf(u)||(d.isPlainObject(this.options[u])?d.extend(this.options[u],c[u]):this.options[u]=c[u]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(t,c,u,i){var d=function(e,t){null!=u.GetData(e[0],"select2")&&u.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new c(t,e),d.__super__.constructor.call(this);var n=e.attr("tabindex")||0;u.StoreData(e[0],"old-tabindex",n),e.attr("tabindex","-1");var i=this.options.get("dataAdapter");this.dataAdapter=new i(e,this.options);var o=this.render();this._placeContainer(o);var s=this.options.get("selectionAdapter");this.selection=new s(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,o);var r=this.options.get("dropdownAdapter");this.dropdown=new r(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,o);var a=this.options.get("resultsAdapter");this.results=new a(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})}),e[0].classList.add("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),u.StoreData(e[0],"select2",this),e.data("select2",this)};return u.Extend(d,u.Observable),d.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+u.generateChars(2):u.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},d.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},d.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 o=e.outerWidth(!1);return o<=0?"auto":o+"px"}if("style"!=t)return"computedstyle"!=t?t:window.getComputedStyle(e[0]).width;var s=e.attr("style");if("string"!=typeof s)return null;for(var r=s.split(";"),a=0,l=r.length;a<l;a+=1){var c=r[a].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null},d.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)},d.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=u.bind(this._syncAttributes,this),this._syncS=u.bind(this._syncSubtree,this),this._observer=new window.MutationObserver(function(e){t._syncA(),t._syncS(e)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},d.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerSelectionEvents=function(){var n=this,i=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===i.indexOf(e)&&n.trigger(e,t)})},d.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container[0].classList.add("select2-container--open")}),this.on("close",function(){n.$container[0].classList.remove("select2-container--open")}),this.on("enable",function(){n.$container[0].classList.remove("select2-container--disabled")}),this.on("disable",function(){n.$container[0].classList.add("select2-container--disabled")}),this.on("blur",function(){n.$container[0].classList.remove("select2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===i.ESC||t===i.TAB||t===i.UP&&e.altKey?(n.close(e),e.preventDefault()):t===i.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===i.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===i.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===i.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===i.ENTER||t===i.SPACE||t===i.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},d.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},d.prototype._isChangeMutation=function(e){var t=this;if(e.addedNodes&&0<e.addedNodes.length){for(var n=0;n<e.addedNodes.length;n++)if(e.addedNodes[n].selected)return!0}else{if(e.removedNodes&&0<e.removedNodes.length)return!0;if(Array.isArray(e))return e.some(function(e){return t._isChangeMutation(e)})}return!1},d.prototype._syncSubtree=function(e){var t=this._isChangeMutation(e),n=this;t&&this.dataAdapter.current(function(e){n.trigger("selection:update",{data:e})})},d.prototype.trigger=function(e,t){var n=d.__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)},d.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},d.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},d.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},d.prototype.isEnabled=function(){return!this.isDisabled()},d.prototype.isDisabled=function(){return this.options.get("disabled")},d.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},d.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},d.prototype.focus=function(e){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},d.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)},d.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&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 t=[];return this.dataAdapter.current(function(e){t=e}),t},d.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")},d.prototype.destroy=function(){this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",u.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),u.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},d.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),u.StoreData(e[0],"element",this.$element),e},d}),e.define("select2/dropdown/attachContainer",[],function(){function e(e,t,n){e.call(this,t,n)}return e.prototype.position=function(e,t,n){n.find(".dropdown-wrapper").append(t),t[0].classList.add("select2-dropdown--below"),n[0].classList.add("select2-container--below")},e}),e.define("select2/dropdown/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$dropdown.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(e){e.stopPropagation()})},e}),e.define("select2/selection/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$selection.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(e){e.stopPropagation()})},e}),c=function(p){var h,f,e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],t="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],g=Array.prototype.slice;if(p.event.fixHooks)for(var n=e.length;n;)p.event.fixHooks[e[--n]]=p.event.mouseHooks;var m=p.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=t.length;e;)this.addEventListener(t[--e],i,!1);else this.onmousewheel=i;p.data(this,"mousewheel-line-height",m.getLineHeight(this)),p.data(this,"mousewheel-page-height",m.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=t.length;e;)this.removeEventListener(t[--e],i,!1);else this.onmousewheel=null;p.removeData(this,"mousewheel-line-height"),p.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var t=p(e),n=t["offsetParent"in p.fn?"offsetParent":"parent"]();return n.length||(n=p("body")),parseInt(n.css("fontSize"),10)||parseInt(t.css("fontSize"),10)||16},getPageHeight:function(e){return p(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function i(e){var t,n,i,o,s=e||window.event,r=g.call(arguments,1),a=0,l=0,c=0,u=0,d=0;if((e=p.event.fix(s)).type="mousewheel","detail"in s&&(c=-1*s.detail),"wheelDelta"in s&&(c=s.wheelDelta),"wheelDeltaY"in s&&(c=s.wheelDeltaY),"wheelDeltaX"in s&&(l=-1*s.wheelDeltaX),"axis"in s&&s.axis===s.HORIZONTAL_AXIS&&(l=-1*c,c=0),a=0===c?l:c,"deltaY"in s&&(a=c=-1*s.deltaY),"deltaX"in s&&(l=s.deltaX,0===c&&(a=-1*l)),0!==c||0!==l)return 1===s.deltaMode?(a*=n=p.data(this,"mousewheel-line-height"),c*=n,l*=n):2===s.deltaMode&&(a*=i=p.data(this,"mousewheel-page-height"),c*=i,l*=i),t=Math.max(Math.abs(c),Math.abs(l)),(!f||t<f)&&y(s,f=t)&&(f/=40),y(s,t)&&(a/=40,l/=40,c/=40),a=Math[1<=a?"floor":"ceil"](a/f),l=Math[1<=l?"floor":"ceil"](l/f),c=Math[1<=c?"floor":"ceil"](c/f),m.settings.normalizeOffset&&this.getBoundingClientRect&&(o=this.getBoundingClientRect(),u=e.clientX-o.left,d=e.clientY-o.top),e.deltaX=l,e.deltaY=c,e.deltaFactor=f,e.offsetX=u,e.offsetY=d,e.deltaMode=0,r.unshift(e,a,l,c),h&&clearTimeout(h),h=setTimeout(v,200),(p.event.dispatch||p.event.handle).apply(this,r)}function v(){f=null}function y(e,t){return m.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}p.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})},"function"==typeof e.define&&e.define.amd?e.define("jquery-mousewheel",["jquery"],c):"object"==typeof exports?module.exports=c:c(t),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(o,e,s,t,r){var a;return null==o.fn.select2&&(a=["open","close","destroy"],o.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=o.extend(!0,{},t);new s(o(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var n,i=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."),n=e[t].apply(e,i)}),-1<a.indexOf(t)?this:n}),null==o.fn.select2.defaults&&(o.fn.select2.defaults=t),s}),{define:e.define,require:e.require});function b(e,t){return a.call(e,t)}function d(e,t){var n,i,o,s,r,a,l,c,u,d,p,h=t&&t.split("/"),f=y.map,g=f&&f["*"]||{};if(e){for(r=(e=e.split("/")).length-1,y.nodeIdCompat&&w.test(e[r])&&(e[r]=e[r].replace(w,"")),"."===e[0].charAt(0)&&h&&(e=h.slice(0,h.length-1).concat(e)),u=0;u<e.length;u++)if("."===(p=e[u]))e.splice(u,1),--u;else if(".."===p){if(0===u||1===u&&".."===e[2]||".."===e[u-1])continue;0<u&&(e.splice(u-1,2),u-=2)}e=e.join("/")}if((h||g)&&f){for(u=(n=e.split("/")).length;0<u;--u){if(i=n.slice(0,u).join("/"),h)for(d=h.length;0<d;--d)if(o=(o=f[h.slice(0,d).join("/")])&&o[i]){s=o,a=u;break}if(s)break;!l&&g&&g[i]&&(l=g[i],c=u)}!s&&l&&(s=l,a=c),s&&(n.splice(0,a,s),e=n.join("/"))}return e}function x(t,n){return function(){var e=l.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),r.apply(h,e.concat([t,n]))}}function A(e){var t;if(b(v,e)&&(t=v[e],delete v[e],_[e]=!0,s.apply(h,t)),!b(m,e)&&!b(_,e))throw new Error("No "+e);return m[e]}function p(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function D(e){return e?p(e):[]}var S=u.require("jquery.select2");return t.fn.select2.amd=u,S});
|
|
1 |
+
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
+
!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(t){var e,n,p,o,r,h,f,g,m,v,y,s,i,_,a,a=(t&&t.fn&&t.fn.select2&&t.fn.select2.amd&&(u=t.fn.select2.amd),u&&u.requirejs||(u?n=u:u={},g={},m={},v={},y={},s=Object.prototype.hasOwnProperty,i=[].slice,_=/\.js$/,h=function(e,t){var n,s,i=c(e),o=i[0],t=t[1];return e=i[1],o&&(n=x(o=l(o,t))),o?e=n&&n.normalize?n.normalize(e,(s=t,function(e){return l(e,s)})):l(e,t):(o=(i=c(e=l(e,t)))[0],e=i[1],o&&(n=x(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:n}},f={require:function(e){return w(e)},exports:function(e){var t=g[e];return void 0!==t?t:g[e]={}},module:function(e){return{id:e,uri:"",exports:g[e],config:(t=e,function(){return v&&v.config&&v.config[t]||{}})};var t}},o=function(e,t,n,s){var i,o,r,a,l,c=[],u=typeof n,d=A(s=s||e);if("undefined"==u||"function"==u){for(t=!t.length&&n.length?["require","exports","module"]:t,a=0;a<t.length;a+=1)if("require"===(o=(r=h(t[a],d)).f))c[a]=f.require(e);else if("exports"===o)c[a]=f.exports(e),l=!0;else if("module"===o)i=c[a]=f.module(e);else if(b(g,o)||b(m,o)||b(y,o))c[a]=x(o);else{if(!r.p)throw new Error(e+" missing "+o);r.p.load(r.n,w(s,!0),function(t){return function(e){g[t]=e}}(o),{}),c[a]=g[o]}u=n?n.apply(g[e],c):void 0,e&&(i&&i.exports!==p&&i.exports!==g[e]?g[e]=i.exports:u===p&&l||(g[e]=u))}else e&&(g[e]=n)},e=n=r=function(e,t,n,s,i){if("string"==typeof e)return f[e]?f[e](t):x(h(e,A(t)).f);if(!e.splice){if((v=e).deps&&r(v.deps,v.callback),!t)return;t.splice?(e=t,t=n,n=null):e=p}return t=t||function(){},"function"==typeof n&&(n=s,s=i),s?o(p,e,t,n):setTimeout(function(){o(p,e,t,n)},4),r},r.config=function(e){return r(e)},e._defined=g,(a=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=[]),b(g,e)||b(m,e)||(m[e]=[e,t,n])}).amd={jQuery:!0},u.requirejs=e,u.require=n,u.define=a),u.define("almond",function(){}),u.define("jquery",[],function(){var e=t||$;return null==e&&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."),e}),u.define("select2/utils",["jquery"],function(o){var s={};function c(e){var t,n=e.prototype,s=[];for(t in n)"function"==typeof n[t]&&"constructor"!==t&&s.push(t);return s}s.Extend=function(e,t){var n,s={}.hasOwnProperty;function i(){this.constructor=e}for(n in t)s.call(t,n)&&(e[n]=t[n]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},s.Decorate=function(s,i){var e=c(i),t=c(s);function o(){var e=Array.prototype.unshift,t=i.prototype.constructor.length,n=s.prototype.constructor;0<t&&(e.call(arguments,s.prototype.constructor),n=i.prototype.constructor),n.apply(this,arguments)}i.displayName=s.displayName,o.prototype=new function(){this.constructor=o};for(var n=0;n<t.length;n++){var r=t[n];o.prototype[r]=s.prototype[r]}for(var a=0;a<e.length;a++){var l=e[a];o.prototype[l]=function(e){var t=function(){};e in o.prototype&&(t=o.prototype[e]);var n=i.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}}(l)}return o};function e(){this.listeners={}}e.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},e.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)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},e.prototype.invoke=function(e,t){for(var n=0,s=e.length;n<s;n++)e[n].apply(this,t)},s.Observable=e,s.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t},s.bind=function(e,t){return function(){e.apply(t,arguments)}},s._convertData=function(e){for(var t in e){var n=t.split("-"),s=e;if(1!==n.length){for(var i=0;i<n.length;i++){var o=n[i];(o=o.substring(0,1).toLowerCase()+o.substring(1))in s||(s[o]={}),i==n.length-1&&(s[o]=e[t]),s=s[o]}delete e[t]}}return e},s.hasScroll=function(e,t){var n=o(t),s=t.style.overflowX,i=t.style.overflowY;return(s!==i||"hidden"!==i&&"visible"!==i)&&("scroll"===s||"scroll"===i||(n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth))},s.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},s.__cache={};var n=0;return s.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null!=t||(t=e.id?"select2-data-"+e.id:"select2-data-"+(++n).toString()+"-"+s.generateChars(4),e.setAttribute("data-select2-id",t)),t},s.StoreData=function(e,t,n){e=s.GetUniqueElementId(e);s.__cache[e]||(s.__cache[e]={}),s.__cache[e][t]=n},s.GetData=function(e,t){var n=s.GetUniqueElementId(e);return t?s.__cache[n]&&null!=s.__cache[n][t]?s.__cache[n][t]:o(e).data(t):s.__cache[n]},s.RemoveData=function(e){var t=s.GetUniqueElementId(e);null!=s.__cache[t]&&delete s.__cache[t],e.removeAttribute("data-select2-id")},s.copyNonInternalCssClasses=function(e,t){var n=(n=e.getAttribute("class").trim().split(/\s+/)).filter(function(e){return 0===e.indexOf("select2-")}),t=(t=t.getAttribute("class").trim().split(/\s+/)).filter(function(e){return 0!==e.indexOf("select2-")}),t=n.concat(t);e.setAttribute("class",t.join(" "))},s}),u.define("select2/results",["jquery","./utils"],function(d,p){function s(e,t,n){this.$element=e,this.data=n,this.options=t,s.__super__.constructor.call(this)}return p.Extend(s,p.Observable),s.prototype.render=function(){var e=d('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},s.prototype.clear=function(){this.$results.empty()},s.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=d('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),s=this.options.get("translations").get(e.message);n.append(t(s(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},s.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},s.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 s=e.results[n],s=this.option(s);t.push(s)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},s.prototype.position=function(e,t){t.find(".select2-results").append(e)},s.prototype.sort=function(e){return this.options.get("sorter")(e)},s.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option--selectable"),t=e.filter(".select2-results__option--selected");(0<t.length?t:e).first().trigger("mouseenter"),this.ensureHighlightVisible()},s.prototype.setClasses=function(){var t=this;this.data.current(function(e){var s=e.map(function(e){return e.id.toString()});t.$results.find(".select2-results__option--selectable").each(function(){var e=d(this),t=p.GetData(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<s.indexOf(n)?(this.classList.add("select2-results__option--selected"),e.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),e.attr("aria-selected","false"))})})},s.prototype.showLoading=function(e){this.hideLoading();e={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},e=this.option(e);e.className+=" loading-results",this.$results.prepend(e)},s.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},s.prototype.option=function(e){var t=document.createElement("li");t.classList.add("select2-results__option"),t.classList.add("select2-results__option--selectable");var n,s={role:"option"},i=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(n in(null!=e.element&&i.call(e.element,":disabled")||null==e.element&&e.disabled)&&(s["aria-disabled"]="true",t.classList.remove("select2-results__option--selectable"),t.classList.add("select2-results__option--disabled")),null==e.id&&t.classList.remove("select2-results__option--selectable"),null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(s.role="group",s["aria-label"]=e.text,t.classList.remove("select2-results__option--selectable"),t.classList.add("select2-results__option--group")),s){var o=s[n];t.setAttribute(n,o)}if(e.children){var r=d(t),a=document.createElement("strong");a.className="select2-results__group",this.template(e,a);for(var l=[],c=0;c<e.children.length;c++){var u=e.children[c],u=this.option(u);l.push(u)}i=d("<ul></ul>",{class:"select2-results__options select2-results__options--nested",role:"none"});i.append(l),r.append(a),r.append(i)}else this.template(e,t);return p.StoreData(t,"data",e),t},s.prototype.bind=function(t,e){var i=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){i.clear(),i.append(e.data),t.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),t.on("results:append",function(e){i.append(e.data),t.isOpen()&&i.setClasses()}),t.on("query",function(e){i.hideMessages(),i.showLoading(e)}),t.on("select",function(){t.isOpen()&&(i.setClasses(),i.options.get("scrollAfterSelect")&&i.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(i.setClasses(),i.options.get("scrollAfterSelect")&&i.highlightFirstItem())}),t.on("open",function(){i.$results.attr("aria-expanded","true"),i.$results.attr("aria-hidden","false"),i.setClasses(),i.ensureHighlightVisible()}),t.on("close",function(){i.$results.attr("aria-expanded","false"),i.$results.attr("aria-hidden","true"),i.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=i.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e,t=i.getHighlightedResults();0!==t.length&&(e=p.GetData(t[0],"data"),t.hasClass("select2-results__option--selected")?i.trigger("close",{}):i.trigger("select",{data:e}))}),t.on("results:previous",function(){var e,t=i.getHighlightedResults(),n=i.$results.find(".select2-results__option--selectable"),s=n.index(t);s<=0||(e=s-1,0===t.length&&(e=0),(s=n.eq(e)).trigger("mouseenter"),t=i.$results.offset().top,n=s.offset().top,s=i.$results.scrollTop()+(n-t),0===e?i.$results.scrollTop(0):n-t<0&&i.$results.scrollTop(s))}),t.on("results:next",function(){var e,t=i.getHighlightedResults(),n=i.$results.find(".select2-results__option--selectable"),s=n.index(t)+1;s>=n.length||((e=n.eq(s)).trigger("mouseenter"),t=i.$results.offset().top+i.$results.outerHeight(!1),n=e.offset().top+e.outerHeight(!1),e=i.$results.scrollTop()+n-t,0===s?i.$results.scrollTop(0):t<n&&i.$results.scrollTop(e))}),t.on("results:focus",function(e){e.element[0].classList.add("select2-results__option--highlighted"),e.element[0].setAttribute("aria-selected","true")}),t.on("results:message",function(e){i.displayMessage(e)}),d.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=i.$results.scrollTop(),n=i.$results.get(0).scrollHeight-t+e.deltaY,t=0<e.deltaY&&t-e.deltaY<=0,n=e.deltaY<0&&n<=i.$results.height();t?(i.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):n&&(i.$results.scrollTop(i.$results.get(0).scrollHeight-i.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option--selectable",function(e){var t=d(this),n=p.GetData(this,"data");t.hasClass("select2-results__option--selected")?i.options.get("multiple")?i.trigger("unselect",{originalEvent:e,data:n}):i.trigger("close",{}):i.trigger("select",{originalEvent:e,data:n})}),this.$results.on("mouseenter",".select2-results__option--selectable",function(e){var t=p.GetData(this,"data");i.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),i.trigger("results:focus",{data:t,element:d(this)})})},s.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},s.prototype.destroy=function(){this.$results.remove()},s.prototype.ensureHighlightVisible=function(){var e,t,n,s,i=this.getHighlightedResults();0!==i.length&&(e=this.$results.find(".select2-results__option--selectable").index(i),s=this.$results.offset().top,t=i.offset().top,n=this.$results.scrollTop()+(t-s),s=t-s,n-=2*i.outerHeight(!1),e<=2?this.$results.scrollTop(0):(s>this.$results.outerHeight()||s<0)&&this.$results.scrollTop(n))},s.prototype.template=function(e,t){var n=this.options.get("templateResult"),s=this.options.get("escapeMarkup"),e=n(e,t);null==e?t.style.display="none":"string"==typeof e?t.innerHTML=s(e):d(t).append(e)},s}),u.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}}),u.define("select2/selection/base",["jquery","../utils","../keys"],function(n,s,i){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return s.Extend(o,s.Observable),o.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=s.GetData(this.$element[0],"old-tabindex")?this._tabindex=s.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e},o.prototype.bind=function(e,t){var n=this,s=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===i.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",s),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},o.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},o.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){this!=t[0]&&s.GetData(this,"element").select2("close")})})},o.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},o.prototype.position=function(e,t){t.find(".selection").append(e)},o.prototype.destroy=function(){this._detachCloseHandler(this.container)},o.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},o.prototype.isEnabled=function(){return!this.isDisabled()},o.prototype.isDisabled=function(){return this.options.get("disabled")},o}),u.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,s){function i(){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--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},i.prototype.bind=function(t,e){var n=this;i.__super__.bind.apply(this,arguments);var s=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",s).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",s),this.$selection.attr("aria-controls",s),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){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")})},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("<span></span>")},i.prototype.update=function(e){var t,n;0!==e.length?(n=e[0],t=this.$selection.find(".select2-selection__rendered"),e=this.display(n,t),t.empty().append(e),(n=n.title||n.text)?t.attr("title",n):t.removeAttr("title")):this.clear()},i}),u.define("select2/selection/multiple",["jquery","./base","../utils"],function(i,e,c){function o(e,t){o.__super__.constructor.apply(this,arguments)}return c.Extend(o,e),o.prototype.render=function(){var e=o.__super__.render.call(this);return e[0].classList.add("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},o.prototype.bind=function(e,t){var n=this;o.__super__.bind.apply(this,arguments);var s=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",s),this.$selection.on("click",function(e){n.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){var t;n.isDisabled()||(t=i(this).parent(),t=c.GetData(t[0],"data"),n.trigger("unselect",{originalEvent:e,data:t}))}),this.$selection.on("keydown",".select2-selection__choice__remove",function(e){n.isDisabled()||e.stopPropagation()})},o.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},o.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},o.prototype.selectionContainer=function(){return i('<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>')},o.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",s=0;s<e.length;s++){var i=e[s],o=this.selectionContainer(),r=this.display(i,o),a=n+c.generateChars(4)+"-";i.id?a+=i.id:a+=c.generateChars(4),o.find(".select2-selection__choice__display").append(r).attr("id",a);var l=i.title||i.text;l&&o.attr("title",l);r=this.options.get("translations").get("removeItem"),l=o.find(".select2-selection__choice__remove");l.attr("title",r()),l.attr("aria-label",r()),l.attr("aria-describedby",a),c.StoreData(o[0],"data",i),t.push(o)}this.$selection.find(".select2-selection__rendered").append(t)}},o}),u.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");t=t.title||t.text||n.text();return this.$selection.find(".select2-selection__rendered").attr("title",t),n},e.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();t=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(t)},e}),u.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(i,s,a){function e(){}return e.prototype.bind=function(e,t,n){var s=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){s._handleClear(e)}),t.on("keypress",function(e){s._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var s=a.GetData(n[0],"data"),i=this.$element.val();this.$element.val(this.placeholder.id);var o={data:s};if(this.trigger("clear",o),o.prevented)this.$element.val(i);else{for(var r=0;r<s.length;r++)if(o={data:s[r]},this.trigger("unselect",o),o.prevented)return void this.$element.val(i);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=s.DELETE&&t.which!=s.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){var n,s;e.call(this,t),this.$selection.find(".select2-selection__clear").remove(),this.$selection[0].classList.remove("select2-selection--clearable"),0<this.$selection.find(".select2-selection__placeholder").length||0===t.length||(n=this.$selection.find(".select2-selection__rendered").attr("id"),s=this.options.get("translations").get("removeAllItems"),(e=i('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">×</span></button>')).attr("title",s()),e.attr("aria-label",s()),e.attr("aria-describedby",n),a.StoreData(e[0],"data",t),this.$selection.prepend(e),this.$selection[0].classList.add("select2-selection--clearable"))},e}),u.define("select2/selection/search",["jquery","../utils","../keys"],function(s,a,l){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=this.options.get("translations").get("search"),n=s('<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=n,this.$search=n.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",t());e=e.call(this);return this._transferTabIndex(),e.append(this.$searchContainer),e},e.prototype.bind=function(e,t,n){var s=this,i=t.id+"-results",o=t.id+"-container";e.call(this,t,n),s.$search.attr("aria-describedby",o),t.on("open",function(){s.$search.attr("aria-controls",i),s.$search.trigger("focus")}),t.on("close",function(){s.$search.val(""),s.resizeSearch(),s.$search.removeAttr("aria-controls"),s.$search.removeAttr("aria-activedescendant"),s.$search.trigger("focus")}),t.on("enable",function(){s.$search.prop("disabled",!1),s._transferTabIndex()}),t.on("disable",function(){s.$search.prop("disabled",!0)}),t.on("focus",function(e){s.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?s.$search.attr("aria-activedescendant",e.data._resultId):s.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){s.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){s._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){var t;e.stopPropagation(),s.trigger("keypress",e),s._keyUpPrevented=e.isDefaultPrevented(),e.which!==l.BACKSPACE||""!==s.$search.val()||0<(t=s.$selection.find(".select2-selection__choice").last()).length&&(t=a.GetData(t[0],"data"),s.searchRemoveChoice(t),e.preventDefault())}),this.$selection.on("click",".select2-search--inline",function(e){s.$search.val()&&e.stopPropagation()});var t=document.documentMode,r=t&&t<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){r?s.$selection.off("input.search input.searchcheck"):s.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){var t;r&&"input"===e.type?s.$selection.off("input.search input.searchcheck"):(t=e.which)!=l.SHIFT&&t!=l.CTRL&&t!=l.ALT&&t!=l.TAB&&s.handleSearch(e)})},e.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},e.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")},e.prototype.handleSearch=function(){var e;this.resizeSearch(),this._keyUpPrevented||(e=this.$search.val(),this.trigger("query",{term:e})),this._keyUpPrevented=!1},e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},e.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)},e}),u.define("select2/selection/selectionCss",["../utils"],function(n){function e(){}return e.prototype.render=function(e){var t=e.call(this),e=this.options.get("selectionCssClass")||"";return-1!==e.indexOf(":all:")&&(e=e.replace(":all:",""),n.copyNonInternalCssClasses(t[0],this.$element[0])),t.addClass(e),t},e}),u.define("select2/selection/eventRelay",["jquery"],function(r){function e(){}return e.prototype.bind=function(e,t,n){var s=this,i=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n),t.on("*",function(e,t){var n;-1!==i.indexOf(e)&&(t=t||{},n=r.Event("select2:"+e,{params:t}),s.$element.trigger(n),-1!==o.indexOf(e)&&(t.prevented=n.isDefaultPrevented()))})},e}),u.define("select2/translation",["jquery","require"],function(t,n){function s(e){this.dict=e||{}}return s.prototype.all=function(){return this.dict},s.prototype.get=function(e){return this.dict[e]},s.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},s._cache={},s.loadPath=function(e){var t;return e in s._cache||(t=n(e),s._cache[e]=t),new s(s._cache[e])},s}),u.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","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),u.define("select2/data/base",["../utils"],function(n){function s(e,t){s.__super__.constructor.call(this)}return n.Extend(s,n.Observable),s.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},s.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},s.prototype.bind=function(e,t){},s.prototype.destroy=function(){},s.prototype.generateResultId=function(e,t){e=e.id+"-result-";return e+=n.generateChars(4),null!=t.id?e+="-"+t.id.toString():e+="-"+n.generateChars(4),e},s}),u.define("select2/data/select",["./base","../utils","jquery"],function(e,a,l){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return a.Extend(n,e),n.prototype.current=function(e){var t=this;e(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),function(e){return t.item(l(e))}))},n.prototype.select=function(i){var e,o=this;if(i.selected=!0,null!=i.element&&"option"===i.element.tagName.toLowerCase())return i.element.selected=!0,void this.$element.trigger("input").trigger("change");this.$element.prop("multiple")?this.current(function(e){var t=[];(i=[i]).push.apply(i,e);for(var n=0;n<i.length;n++){var s=i[n].id;-1===t.indexOf(s)&&t.push(s)}o.$element.val(t),o.$element.trigger("input").trigger("change")}):(e=i.id,this.$element.val(e),this.$element.trigger("input").trigger("change"))},n.prototype.unselect=function(i){var o=this;if(this.$element.prop("multiple")){if(i.selected=!1,null!=i.element&&"option"===i.element.tagName.toLowerCase())return i.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current(function(e){for(var t=[],n=0;n<e.length;n++){var s=e[n].id;s!==i.id&&-1===t.indexOf(s)&&t.push(s)}o.$element.val(t),o.$element.trigger("input").trigger("change")})}},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.RemoveData(this)})},n.prototype.query=function(t,e){var n=[],s=this;this.$element.children().each(function(){var e;"option"!==this.tagName.toLowerCase()&&"optgroup"!==this.tagName.toLowerCase()||(e=l(this),e=s.item(e),null!==(e=s.matches(t,e))&&n.push(e))}),e({results:n})},n.prototype.addOptions=function(e){this.$element.append(e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);e=this._normalizeItem(e);return e.element=t,a.StoreData(t,"data",e),l(t)},n.prototype.item=function(e){var t={};if(null!=(t=a.GetData(e[0],"data")))return t;var n=e[0];if("option"===n.tagName.toLowerCase())t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if("optgroup"===n.tagName.toLowerCase()){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var s=e.children("option"),i=[],o=0;o<s.length;o++){var r=l(s[o]),r=this.item(r);i.push(r)}t.children=i}return(t=this._normalizeItem(t)).element=e[0],a.StoreData(e[0],"data",t),t},n.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=l.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)),l.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),u.define("select2/data/array",["./select","../utils","jquery"],function(e,t,c){function s(e,t){this._dataToConvert=t.get("data")||[],s.__super__.constructor.call(this,e,t)}return t.Extend(s,e),s.prototype.bind=function(e,t){s.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},s.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),s.__super__.select.call(this,n)},s.prototype.convertToOptions=function(e){var t=this,n=this.$element.find("option"),s=n.map(function(){return t.item(c(this)).id}).get(),i=[];for(var o=0;o<e.length;o++){var r,a,l=this._normalizeItem(e[o]);0<=s.indexOf(l.id)?(r=n.filter(function(e){return function(){return c(this).val()==e.id}}(l)),a=this.item(r),a=c.extend(!0,{},l,a),a=this.option(a),r.replaceWith(a)):(a=this.option(l),l.children&&(l=this.convertToOptions(l.children),a.append(l)),i.push(a))}return i},s}),u.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,o){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return o.extend({},e,{q:e.term})},transport:function(e,t,n){e=o.ajax(e);return e.then(t),e.fail(n),e}};return o.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(t,n){var s=this;null!=this._request&&("function"==typeof this._request.abort&&this._request.abort(),this._request=null);var i=o.extend({type:"GET"},this.ajaxOptions);function e(){var e=i.transport(i,function(e){e=s.processResults(e,t);s.options.get("debug")&&window.console&&console.error&&(e&&e.results&&Array.isArray(e.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),n(e)},function(){"status"in e&&(0===e.status||"0"===e.status)||s.trigger("results:message",{message:"errorLoading"})});s._request=e}"function"==typeof i.url&&(i.url=i.url.call(this.$element,t)),"function"==typeof i.data&&(i.data=i.data.call(this.$element,t)),this.ajaxOptions.delay&&null!=t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),u.define("select2/data/tags",["jquery"],function(t){function e(e,t,n){var s=n.get("tags"),i=n.get("createTag");void 0!==i&&(this.createTag=i);i=n.get("insertTag");if(void 0!==i&&(this.insertTag=i),e.call(this,t,n),Array.isArray(s))for(var o=0;o<s.length;o++){var r=s[o],r=this._normalizeItem(r),r=this.option(r);this.$element.append(r)}}return e.prototype.query=function(e,c,u){var d=this;this._removeOldTags(),null!=c.term&&null==c.page?e.call(this,c,function e(t,n){for(var s=t.results,i=0;i<s.length;i++){var o=s[i],r=null!=o.children&&!e({results:o.children},!0);if((o.text||"").toUpperCase()===(c.term||"").toUpperCase()||r)return!n&&(t.data=s,void u(t))}if(n)return!0;var a,l=d.createTag(c);null!=l&&((a=d.option(l)).attr("data-select2-tag","true"),d.addOptions([a]),d.insertTag(s,l)),t.results=s,u(t)}):e.call(this,c,u)},e.prototype.createTag=function(e,t){if(null==t.term)return null;t=t.term.trim();return""===t?null:{id:t,text:t}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||t(this).remove()})},e}),u.define("select2/data/tokenizer",["jquery"],function(c){function e(e,t,n){var s=n.get("tokenizer");void 0!==s&&(this.tokenizer=s),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,t,n){var s=this;t.term=t.term||"";var i=this.tokenizer(t,this.options,function(e){var t,n=s._normalizeItem(e);s.$element.find("option").filter(function(){return c(this).val()===n.id}).length||((t=s.option(n)).attr("data-select2-tag",!0),s._removeOldTags(),s.addOptions([t])),t=n,s.trigger("select",{data:t})});i.term!==t.term&&(this.$search.length&&(this.$search.val(i.term),this.$search.trigger("focus")),t.term=i.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,s){for(var i=n.get("tokenSeparators")||[],o=t.term,r=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};r<o.length;){var l=o[r];-1!==i.indexOf(l)?(l=o.substr(0,r),null!=(l=a(c.extend({},t,{term:l})))?(s(l),o=o.substr(r+1)||"",r=0):r++):r++}return{term:o}},e}),u.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}),u.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||"",0<this.maximumInputLength&&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}),u.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 s=this;e.call(this,t,n),t.on("select",function(){s._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var s=this;this._checkIfMaximumSelected(function(){e.call(s,t,n)})},e.prototype._checkIfMaximumSelected=function(e,t){var n=this;this.current(function(e){e=null!=e?e.length:0;0<n.maximumSelectionLength&&e>=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):t&&t()})},e}),u.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),u.define("select2/dropdown/search",["jquery"],function(o){function e(){}return e.prototype.render=function(e){var t=e.call(this),n=this.options.get("translations").get("search"),e=o('<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=e,this.$search=e.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",n()),t.prepend(e),t},e.prototype.bind=function(e,t,n){var s=this,i=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){s.trigger("keypress",e),s._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){o(this).off("keyup")}),this.$search.on("keyup input",function(e){s.handleSearch(e)}),t.on("open",function(){s.$search.attr("tabindex",0),s.$search.attr("aria-controls",i),s.$search.trigger("focus"),window.setTimeout(function(){s.$search.trigger("focus")},0)}),t.on("close",function(){s.$search.attr("tabindex",-1),s.$search.removeAttr("aria-controls"),s.$search.removeAttr("aria-activedescendant"),s.$search.val(""),s.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||s.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(s.showSearch(e)?s.$searchContainer[0].classList.remove("select2-search--hide"):s.$searchContainer[0].classList.add("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?s.$search.attr("aria-activedescendant",e.data._resultId):s.$search.removeAttr("aria-activedescendant")})},e.prototype.handleSearch=function(e){var t;this._keyUpPrevented||(t=this.$search.val(),this.trigger("query",{term:t})),this._keyUpPrevented=!1},e.prototype.showSearch=function(e,t){return!0},e}),u.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,s){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,s)}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),s=t.length-1;0<=s;s--){var i=t[s];this.placeholder.id===i.id&&n.splice(s,1)}return n},e}),u.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,s){this.lastParams={},e.call(this,t,n,s),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.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())},e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("query",function(e){s.lastParams=e,s.loading=!0}),t.on("query:append",function(e){s.lastParams=e,s.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=n.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&e&&(e=this.$results.offset().top+this.$results.outerHeight(!1),this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=e+50&&this.loadMore())},e.prototype.loadMore=function(){this.loading=!0;var e=n.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=n('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),u.define("select2/dropdown/attachBody",["jquery","../utils"],function(u,r){function e(e,t,n){this.$dropdownParent=u(n.get("dropdownParent")||document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("open",function(){s._showDropdown(),s._attachPositioningHandler(t),s._bindContainerResultHandlers(t)}),t.on("close",function(){s._hideDropdown(),s._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.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},e.prototype.render=function(e){var t=u("<span></span>"),e=e.call(this);return t.append(e),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._bindContainerResultHandlers=function(e,t){var n;this._containerResultsHandlersBound||(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)},e.prototype._attachPositioningHandler=function(e,t){var n=this,s="scroll.select2."+t.id,i="resize.select2."+t.id,o="orientationchange.select2."+t.id,t=this.$container.parents().filter(r.hasScroll);t.each(function(){r.StoreData(this,"select2-scroll-position",{x:u(this).scrollLeft(),y:u(this).scrollTop()})}),t.on(s,function(e){var t=r.GetData(this,"select2-scroll-position");u(this).scrollTop(t.y)}),u(window).on(s+" "+i+" "+o,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,s="resize.select2."+t.id,t="orientationchange.select2."+t.id;this.$container.parents().filter(r.hasScroll).off(n),u(window).off(n+" "+s+" "+t)},e.prototype._positionDropdown=function(){var e=u(window),t=this.$dropdown[0].classList.contains("select2-dropdown--above"),n=this.$dropdown[0].classList.contains("select2-dropdown--below"),s=null,i=this.$container.offset();i.bottom=i.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=i.top,o.bottom=i.top+o.height;var r=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a<i.top-r,e=l>i.bottom+r,a={left:i.left,top:o.bottom},l=this.$dropdownParent;"static"===l.css("position")&&(l=l.offsetParent());i={top:0,left:0};(u.contains(document.body,l[0])||l[0].isConnected)&&(i=l.offset()),a.top-=i.top,a.left-=i.left,t||n||(s="below"),e||!c||t?!c&&e&&t&&(s="below"):s="above",("above"==s||t&&"below"!==s)&&(a.top=o.top-i.top-r),null!=s&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+s),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+s)),this.$dropdownContainer.css(a)},e.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)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),u.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,s){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,s)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,s=0;s<t.length;s++){var i=t[s];i.children?n+=e(i.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),u.define("select2/dropdown/selectOnClose",["../utils"],function(s){function e(){}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("close",function(e){s._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}n=this.getHighlightedResults();n.length<1||(null!=(n=s.GetData(n[0],"data")).element&&n.element.selected||null==n.element&&n.selected||this.trigger("select",{data:n}))},e}),u.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("select",function(e){s._selectTriggered(e)}),t.on("unselect",function(e){s._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}),u.define("select2/dropdown/dropdownCss",["../utils"],function(n){function e(){}return e.prototype.render=function(e){var t=e.call(this),e=this.options.get("dropdownCssClass")||"";return-1!==e.indexOf(":all:")&&(e=e.replace(":all:",""),n.copyNonInternalCssClasses(t[0],this.$element[0])),t.addClass(e),t},e}),u.define("select2/dropdown/tagsSearchHighlight",["../utils"],function(s){function e(){}return e.prototype.highlightFirstItem=function(e){var t=this.$results.find(".select2-results__option--selectable:not(.select2-results__option--selected)");if(0<t.length){var n=t.first(),t=s.GetData(n[0],"data").element;if(t&&t.getAttribute&&"true"===t.getAttribute("data-select2-tag"))return void n.trigger("mouseenter")}e.call(this)},e}),u.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,e="Please delete "+t+" character";return 1!=t&&(e+="s"),e},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"}}}),u.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(l,o,r,a,c,u,d,p,h,f,g,t,m,v,y,_,b,w,$,x,A,D,S,O,L,E,C,T,q,I,e){function n(){this.reset()}return n.prototype.apply=function(e){var t;null==(e=l.extend(!0,{},this.defaults,e)).dataAdapter&&(null!=e.ajax?e.dataAdapter=y:null!=e.data?e.dataAdapter=v:e.dataAdapter=m,0<e.minimumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,w)),0<e.maximumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,$)),0<e.maximumSelectionLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,x)),e.tags&&(e.dataAdapter=f.Decorate(e.dataAdapter,_)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=f.Decorate(e.dataAdapter,b))),null==e.resultsAdapter&&(e.resultsAdapter=o,null!=e.ajax&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,O)),null!=e.placeholder&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,S)),e.selectOnClose&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,C)),e.tags&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,I))),null==e.dropdownAdapter&&(e.multiple?e.dropdownAdapter=A:(t=f.Decorate(A,D),e.dropdownAdapter=t),0!==e.minimumResultsForSearch&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,E)),e.closeOnSelect&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,T)),null!=e.dropdownCssClass&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,q)),e.dropdownAdapter=f.Decorate(e.dropdownAdapter,L)),null==e.selectionAdapter&&(e.multiple?e.selectionAdapter=a:e.selectionAdapter=r,null!=e.placeholder&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,c)),e.allowClear&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,u)),e.multiple&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,d)),null!=e.selectionCssClass&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,p)),e.selectionAdapter=f.Decorate(e.selectionAdapter,h)),e.language=this._resolveLanguage(e.language),e.language.push("en");for(var n=[],s=0;s<e.language.length;s++){var i=e.language[s];-1===n.indexOf(i)&&n.push(i)}return e.language=n,e.translations=this._processTranslations(e.language,e.debug),e},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:f.escapeMarkup,language:{},matcher:function e(t,n){if(null==t.term||""===t.term.trim())return n;if(n.children&&0<n.children.length){for(var s=l.extend(!0,{},n),i=n.children.length-1;0<=i;i--)null==e(t,n.children[i])&&s.children.splice(i,1);return 0<s.children.length?s:e(t,s)}var o=a(n.text).toUpperCase(),r=a(t.term).toUpperCase();return-1<o.indexOf(r)?n: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"}},n.prototype.applyFromElement=function(e,t){var n=e.language,s=this.defaults.language,i=t.prop("lang"),t=t.closest("[lang]").prop("lang"),t=Array.prototype.concat.call(this._resolveLanguage(i),this._resolveLanguage(n),this._resolveLanguage(s),this._resolveLanguage(t));return e.language=t,e},n.prototype._resolveLanguage=function(e){if(!e)return[];if(l.isEmptyObject(e))return[];if(l.isPlainObject(e))return[e];for(var t,n=Array.isArray(e)?e:[e],s=[],i=0;i<n.length;i++)s.push(n[i]),"string"==typeof n[i]&&0<n[i].indexOf("-")&&(t=n[i].split("-")[0],s.push(t));return s},n.prototype._processTranslations=function(e,t){for(var n=new g,s=0;s<e.length;s++){var i=new g,o=e[s];if("string"==typeof o)try{i=g.loadPath(o)}catch(e){try{o=this.defaults.amdLanguageBase+o,i=g.loadPath(o)}catch(e){t&&window.console&&console.warn&&console.warn('Select2: The language file for "'+o+'" could not be automatically loaded. A fallback will be used instead.')}}else i=l.isPlainObject(o)?new g(o):o;n.extend(i)}return n},n.prototype.set=function(e,t){var n={};n[l.camelCase(e)]=t;n=f._convertData(n);l.extend(!0,this.defaults,n)},new n}),u.define("select2/options",["jquery","./defaults","./utils"],function(c,n,u){function e(e,t){this.options=e,null!=t&&this.fromElement(t),null!=t&&(this.options=n.applyFromElement(this.options,t)),this.options=n.apply(this.options)}return e.prototype.fromElement=function(e){var t=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.autocomplete&&e.prop("autocomplete")&&(this.options.autocomplete=e.prop("autocomplete")),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),u.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.'),u.StoreData(e[0],"data",u.GetData(e[0],"select2Tags")),u.StoreData(e[0],"tags",!0)),u.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",u.GetData(e[0],"ajaxUrl")),u.StoreData(e[0],"ajax-Url",u.GetData(e[0],"ajaxUrl")));var n={};function s(e,t){return t.toUpperCase()}for(var i=0;i<e[0].attributes.length;i++){var o=e[0].attributes[i].name,r="data-";o.substr(0,r.length)==r&&(o=o.substring(r.length),r=u.GetData(e[0],o),n[o.replace(/-([a-z])/g,s)]=r)}c.fn.jquery&&"1."==c.fn.jquery.substr(0,2)&&e[0].dataset&&(n=c.extend(!0,{},e[0].dataset,n));var a,l=c.extend(!0,{},u.GetData(e[0]),n);for(a in l=u._convertData(l))-1<t.indexOf(a)||(c.isPlainObject(this.options[a])?c.extend(this.options[a],l[a]):this.options[a]=l[a]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),u.define("select2/core",["jquery","./options","./utils","./keys"],function(t,i,o,s){var r=function(e,t){null!=o.GetData(e[0],"select2")&&o.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new i(t,e),r.__super__.constructor.call(this);var n=e.attr("tabindex")||0;o.StoreData(e[0],"old-tabindex",n),e.attr("tabindex","-1");t=this.options.get("dataAdapter");this.dataAdapter=new t(e,this.options);n=this.render();this._placeContainer(n);t=this.options.get("selectionAdapter");this.selection=new t(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,n);t=this.options.get("dropdownAdapter");this.dropdown=new t(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,n);n=this.options.get("resultsAdapter");this.results=new n(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var s=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){s.trigger("selection:update",{data:e})}),e[0].classList.add("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),o.StoreData(e[0],"select2",this),e.data("select2",this)};return o.Extend(r,o.Observable),r.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+o.generateChars(2):o.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 s=this._resolveWidth(e,"style");return null!=s?s:this._resolveWidth(e,"element")}if("element"==t){s=e.outerWidth(!1);return s<=0?"auto":s+"px"}if("style"!=t)return"computedstyle"!=t?t:window.getComputedStyle(e[0]).width;e=e.attr("style");if("string"!=typeof e)return null;for(var i=e.split(";"),o=0,r=i.length;o<r;o+=1){var a=i[o].replace(/\s/g,"").match(n);if(null!==a&&1<=a.length)return a[1]}return null},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 t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=o.bind(this._syncAttributes,this),this._syncS=o.bind(this._syncSubtree,this),this._observer=new window.MutationObserver(function(e){t._syncA(),t._syncS(e)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},r.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},r.prototype._registerSelectionEvents=function(){var n=this,s=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===s.indexOf(e)&&n.trigger(e,t)})},r.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},r.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},r.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container[0].classList.add("select2-container--open")}),this.on("close",function(){n.$container[0].classList.remove("select2-container--open")}),this.on("enable",function(){n.$container[0].classList.remove("select2-container--disabled")}),this.on("disable",function(){n.$container[0].classList.add("select2-container--disabled")}),this.on("blur",function(){n.$container[0].classList.remove("select2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===s.ESC||t===s.UP&&e.altKey?(n.close(e),e.preventDefault()):t===s.ENTER||t===s.TAB?(n.trigger("results:select",{}),e.preventDefault()):t===s.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===s.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===s.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===s.ENTER||t===s.SPACE||t===s.DOWN&&e.altKey)&&(n.open(),e.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&&0<e.addedNodes.length){for(var n=0;n<e.addedNodes.length;n++)if(e.addedNodes[n].selected)return!0}else{if(e.removedNodes&&0<e.removedNodes.length)return!0;if(Array.isArray(e))return e.some(function(e){return t._isChangeMutation(e)})}return!1},r.prototype._syncSubtree=function(e){var e=this._isChangeMutation(e),t=this;e&&this.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})},r.prototype.trigger=function(e,t){var n=r.__super__.trigger,s={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in s){var i=s[e],s={prevented:!1,name:e,args:t};if(n.call(this,i,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]);e=!e[0];this.$element.prop("disabled",e)},r.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&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 t=[];return this.dataAdapter.current(function(e){t=e}),t},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();e=e[0];Array.isArray(e)&&(e=e.map(function(e){return e.toString()})),this.$element.val(e).trigger("input").trigger("change")},r.prototype.destroy=function(){o.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",o.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),o.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 e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),o.StoreData(e[0],"element",this.$element),e},r}),u.define("select2/dropdown/attachContainer",[],function(){function e(e,t,n){e.call(this,t,n)}return e.prototype.position=function(e,t,n){n.find(".dropdown-wrapper").append(t),t[0].classList.add("select2-dropdown--below"),n[0].classList.add("select2-container--below")},e}),u.define("select2/dropdown/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);this.$dropdown.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(e){e.stopPropagation()})},e}),u.define("select2/selection/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);this.$selection.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(e){e.stopPropagation()})},e}),a=function(u){var d,p,e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],t="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],h=Array.prototype.slice;if(u.event.fixHooks)for(var n=e.length;n;)u.event.fixHooks[e[--n]]=u.event.mouseHooks;var f=u.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=t.length;e;)this.addEventListener(t[--e],s,!1);else this.onmousewheel=s;u.data(this,"mousewheel-line-height",f.getLineHeight(this)),u.data(this,"mousewheel-page-height",f.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=t.length;e;)this.removeEventListener(t[--e],s,!1);else this.onmousewheel=null;u.removeData(this,"mousewheel-line-height"),u.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var t=u(e),e=t["offsetParent"in u.fn?"offsetParent":"parent"]();return e.length||(e=u("body")),parseInt(e.css("fontSize"),10)||parseInt(t.css("fontSize"),10)||16},getPageHeight:function(e){return u(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function s(e){var t,n=e||window.event,s=h.call(arguments,1),i=0,o=0,r=0,a=0,l=0,c=0;if(e=u.event.fix(n),e.type="mousewheel","detail"in n&&(r=-1*n.detail),"wheelDelta"in n&&(r=n.wheelDelta),"wheelDeltaY"in n&&(r=n.wheelDeltaY),"wheelD
|