{"version":3,"sources":["/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/abstract_button.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/abstract_icon.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/abstract_slider.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/autocomplete_input.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/button.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/checkbox_button_group.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/checkbox_group.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/common.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/date_picker.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/date_range_slider.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/date_slider.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/div.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/dropdown.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/index.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/input_widget.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/main.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/markup.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/multiselect.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/panel.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/paragraph.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/password_input.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/pretext.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/radio_button_group.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/radio_group.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/range_slider.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/selectbox.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/slider.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/tabs.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/text_input.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/toggle.js","/home/travis/build/bokeh/bokeh/bokehjs/build/js/tree/models/widgets/widget.js","/home/travis/build/bokeh/bokeh/bokehjs/node_modules/nouislider/distribute/nouislider.js","/home/travis/build/bokeh/bokeh/bokehjs/node_modules/pikaday/pikaday.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACj2DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"generated.js","sourceRoot":"","sourcesContent":["'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar extend = function (child, parent) {\n for (var key in parent) {\n if (hasProp.call(parent, key))\n child[key] = parent[key];\n }\n function ctor() {\n this.constructor = child;\n }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n child.__super__ = parent.prototype;\n return child;\n }, hasProp = {}.hasOwnProperty, slice = [].slice;\nvar p = require(14 /* core/properties */);\nvar dom_1 = require(5 /* core/dom */);\nvar build_views_1 = require(4 /* core/build_views */);\nvar widget_1 = require(409 /* ./widget */);\nexports.AbstractButtonView = function (superClass) {\n extend(AbstractButtonView, superClass);\n function AbstractButtonView() {\n return AbstractButtonView.__super__.constructor.apply(this, arguments);\n }\n AbstractButtonView.prototype.initialize = function (options) {\n AbstractButtonView.__super__.initialize.call(this, options);\n this.icon_views = {};\n return this.render();\n };\n AbstractButtonView.prototype.connect_signals = function () {\n AbstractButtonView.__super__.connect_signals.call(this);\n return this.connect(this.model.change, function () {\n return this.render();\n });\n };\n AbstractButtonView.prototype.remove = function () {\n build_views_1.remove_views(this.icon_views);\n return AbstractButtonView.__super__.remove.call(this);\n };\n AbstractButtonView.prototype._render_button = function () {\n var children;\n children = 1 <= arguments.length ? slice.call(arguments, 0) : [];\n return dom_1.button.apply(null, [{\n type: 'button',\n disabled: this.model.disabled,\n 'class': [\n 'bk-bs-btn',\n 'bk-bs-btn-' + this.model.button_type\n ]\n }].concat(slice.call(children)));\n };\n AbstractButtonView.prototype.render = function () {\n var icon;\n AbstractButtonView.__super__.render.call(this);\n dom_1.empty(this.el);\n this.buttonEl = this._render_button(this.model.label);\n this.buttonEl.addEventListener('click', function (_this) {\n return function (event) {\n return _this._button_click(event);\n };\n }(this));\n this.el.appendChild(this.buttonEl);\n icon = this.model.icon;\n if (icon != null) {\n build_views_1.build_views(this.icon_views, [icon], { parent: this });\n dom_1.prepend(this.buttonEl, this.icon_views[icon.id].el, dom_1.nbsp);\n }\n return this;\n };\n AbstractButtonView.prototype._button_click = function (event) {\n event.preventDefault();\n return this.change_input();\n };\n AbstractButtonView.prototype.change_input = function () {\n var ref;\n return (ref = this.model.callback) != null ? ref.execute(this.model) : void 0;\n };\n return AbstractButtonView;\n}(widget_1.WidgetView);\nexports.AbstractButton = function (superClass) {\n extend(AbstractButton, superClass);\n function AbstractButton() {\n return AbstractButton.__super__.constructor.apply(this, arguments);\n }\n AbstractButton.prototype.type = 'AbstractButton';\n AbstractButton.prototype.default_view = exports.AbstractButtonView;\n AbstractButton.define({\n callback: [p.Instance],\n label: [\n p.String,\n 'Button'\n ],\n icon: [p.Instance],\n button_type: [\n p.String,\n 'default'\n ]\n });\n return AbstractButton;\n}(widget_1.Widget); \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar extend = function (child, parent) {\n for (var key in parent) {\n if (hasProp.call(parent, key))\n child[key] = parent[key];\n }\n function ctor() {\n this.constructor = child;\n }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n child.__super__ = parent.prototype;\n return child;\n }, hasProp = {}.hasOwnProperty;\nvar widget_1 = require(409 /* ./widget */);\nexports.AbstractIcon = function (superClass) {\n extend(AbstractIcon, superClass);\n function AbstractIcon() {\n return AbstractIcon.__super__.constructor.apply(this, arguments);\n }\n AbstractIcon.prototype.type = 'AbstractIcon';\n return AbstractIcon;\n}(widget_1.Widget); \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar extend = function (child, parent) {\n for (var key in parent) {\n if (hasProp.call(parent, key))\n child[key] = parent[key];\n }\n function ctor() {\n this.constructor = child;\n }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n child.__super__ = parent.prototype;\n return child;\n }, hasProp = {}.hasOwnProperty;\nvar noUiSlider = require(400 /* nouislider */);\nvar p = require(14 /* core/properties */);\nvar dom_1 = require(5 /* core/dom */);\nvar logging_1 = require(13 /* core/logging */);\nvar callback_1 = require(23 /* core/util/callback */);\nvar widget_1 = require(409 /* ./widget */);\nexports.AbstractSliderView = function (superClass) {\n extend(AbstractSliderView, superClass);\n function AbstractSliderView() {\n return AbstractSliderView.__super__.constructor.apply(this, arguments);\n }\n AbstractSliderView.prototype.initialize = function (options) {\n AbstractSliderView.__super__.initialize.call(this, options);\n return this.render();\n };\n AbstractSliderView.prototype.connect_signals = function () {\n return this.connect(this.model.change, function (_this) {\n return function () {\n return _this.render();\n };\n }(this));\n };\n AbstractSliderView.prototype._calc_to = function () {\n };\n AbstractSliderView.prototype._calc_from = function (values) {\n };\n AbstractSliderView.prototype.render = function () {\n var callback, end, formatter, i, prefix, pretty, ref, start, step, toggleTooltip, tooltips, v, value;\n if (this.sliderEl == null) {\n AbstractSliderView.__super__.render.call(this);\n }\n if (this.model.callback != null) {\n callback = function (_this) {\n return function () {\n return _this.model.callback.execute(_this.model);\n };\n }(this);\n switch (this.model.callback_policy) {\n case 'continuous':\n this.callback_wrapper = callback;\n break;\n case 'throttle':\n this.callback_wrapper = callback_1.throttle(callback, this.model.callback_throttle);\n }\n }\n prefix = 'bk-noUi-';\n ref = this._calc_to(), start = ref.start, end = ref.end, value = ref.value, step = ref.step;\n if (this.model.tooltips) {\n formatter = {\n to: function (_this) {\n return function (value) {\n return _this.model.pretty(value);\n };\n }(this)\n };\n tooltips = function () {\n var j, ref1, results;\n results = [];\n for (i = j = 0, ref1 = value.length; 0 <= ref1 ? j < ref1 : j > ref1; i = 0 <= ref1 ? ++j : --j) {\n results.push(formatter);\n }\n return results;\n }();\n } else {\n tooltips = false;\n }\n this.el.classList.add('bk-slider');\n if (this.sliderEl == null) {\n this.sliderEl = dom_1.div();\n this.el.appendChild(this.sliderEl);\n noUiSlider.create(this.sliderEl, {\n cssPrefix: prefix,\n range: {\n min: start,\n max: end\n },\n start: value,\n step: step,\n behaviour: this.model.behaviour,\n connect: this.model.connected,\n tooltips: tooltips,\n orientation: this.model.orientation,\n direction: this.model.direction\n });\n this.sliderEl.noUiSlider.on('slide', function (_this) {\n return function (_, __, values) {\n return _this._slide(values);\n };\n }(this));\n this.sliderEl.noUiSlider.on('change', function (_this) {\n return function (_, __, values) {\n return _this._change(values);\n };\n }(this));\n toggleTooltip = function (_this) {\n return function (i, show) {\n var handle, tooltip;\n handle = _this.sliderEl.querySelectorAll('.' + prefix + 'handle')[i];\n tooltip = handle.querySelector('.' + prefix + 'tooltip');\n return tooltip.style.display = show ? 'block' : '';\n };\n }(this);\n this.sliderEl.noUiSlider.on('start', function (_this) {\n return function (_, i) {\n return toggleTooltip(i, true);\n };\n }(this));\n this.sliderEl.noUiSlider.on('end', function (_this) {\n return function (_, i) {\n return toggleTooltip(i, false);\n };\n }(this));\n } else {\n this.sliderEl.noUiSlider.updateOptions({\n range: {\n min: start,\n max: end\n },\n start: value,\n step: step\n });\n }\n if (this.titleEl != null) {\n this.el.removeChild(this.titleEl);\n }\n if (this.valueEl != null) {\n this.el.removeChild(this.valueEl);\n }\n if (this.model.title != null) {\n if (this.model.title.length !== 0) {\n this.titleEl = dom_1.label({}, this.model.title + ':');\n this.el.insertBefore(this.titleEl, this.sliderEl);\n }\n if (this.model.show_value) {\n pretty = function () {\n var j, len, results;\n results = [];\n for (j = 0, len = value.length; j < len; j++) {\n v = value[j];\n results.push(this.model.pretty(v));\n }\n return results;\n }.call(this).join(' .. ');\n this.valueEl = dom_1.div({ 'class': 'bk-slider-value' }, pretty);\n this.el.insertBefore(this.valueEl, this.sliderEl);\n }\n }\n if (!this.model.disabled) {\n this.sliderEl.querySelector('.' + prefix + 'connect').style.backgroundColor = this.model.bar_color;\n }\n if (this.model.disabled) {\n this.sliderEl.setAttribute('disabled', true);\n } else {\n this.sliderEl.removeAttribute('disabled');\n }\n return this;\n };\n AbstractSliderView.prototype._slide = function (values) {\n var pretty, v, value;\n value = this._calc_from(values);\n pretty = function () {\n var j, len, results;\n results = [];\n for (j = 0, len = values.length; j < len; j++) {\n v = values[j];\n results.push(this.model.pretty(v));\n }\n return results;\n }.call(this).join(' .. ');\n logging_1.logger.debug('[slider slide] value = ' + pretty);\n if (this.valueEl != null) {\n this.valueEl.textContent = pretty;\n }\n this.model.value = value;\n return typeof this.callback_wrapper === 'function' ? this.callback_wrapper() : void 0;\n };\n AbstractSliderView.prototype._change = function (values) {\n var pretty, ref, v, value;\n value = this._calc_from(values);\n pretty = function () {\n var j, len, results;\n results = [];\n for (j = 0, len = values.length; j < len; j++) {\n v = values[j];\n results.push(this.model.pretty(v));\n }\n return results;\n }.call(this).join(' .. ');\n logging_1.logger.debug('[slider change] value = ' + pretty);\n if (this.valueEl != null) {\n this.valueEl.value = pretty;\n }\n this.model.value = value;\n switch (this.model.callback_policy) {\n case 'mouseup':\n case 'throttle':\n return (ref = this.model.callback) != null ? ref.execute(this.model) : void 0;\n }\n };\n return AbstractSliderView;\n}(widget_1.WidgetView);\nexports.AbstractSlider = function (superClass) {\n extend(AbstractSlider, superClass);\n function AbstractSlider() {\n return AbstractSlider.__super__.constructor.apply(this, arguments);\n }\n AbstractSlider.prototype.type = 'AbstractSlider';\n AbstractSlider.prototype.default_view = exports.AbstractSliderView;\n AbstractSlider.define({\n title: [\n p.String,\n ''\n ],\n show_value: [\n p.Bool,\n true\n ],\n start: [p.Any],\n end: [p.Any],\n value: [p.Any],\n step: [\n p.Number,\n 1\n ],\n format: [p.String],\n orientation: [\n p.Orientation,\n 'horizontal'\n ],\n direction: [\n p.Any,\n 'ltr'\n ],\n tooltips: [\n p.Boolean,\n true\n ],\n callback: [p.Instance],\n callback_throttle: [\n p.Number,\n 200\n ],\n callback_policy: [\n p.String,\n 'throttle'\n ],\n bar_color: [\n p.Color,\n '#e6e6e6'\n ]\n });\n AbstractSlider.prototype.behaviour = null;\n AbstractSlider.prototype.connected = false;\n AbstractSlider.prototype._formatter = function (value, format) {\n return '' + value;\n };\n AbstractSlider.prototype.pretty = function (value) {\n return this._formatter(value, this.format);\n };\n return AbstractSlider;\n}(widget_1.Widget); \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar extend = function (child, parent) {\n for (var key in parent) {\n if (hasProp.call(parent, key))\n child[key] = parent[key];\n }\n function ctor() {\n this.constructor = child;\n }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n child.__super__ = parent.prototype;\n return child;\n }, hasProp = {}.hasOwnProperty;\nvar text_input_1 = require(397 /* ./text_input */);\nvar common_1 = require(376 /* ./common */);\nvar dom_1 = require(5 /* core/dom */);\nvar p = require(14 /* core/properties */);\nexports.AutocompleteInputView = function (superClass) {\n extend(AutocompleteInputView, superClass);\n function AutocompleteInputView() {\n return AutocompleteInputView.__super__.constructor.apply(this, arguments);\n }\n AutocompleteInputView.prototype.connect_signals = function () {\n AutocompleteInputView.__super__.connect_signals.call(this);\n return common_1.clear_menus.connect(function (_this) {\n return function () {\n return _this._clear_menu();\n };\n }(this));\n };\n AutocompleteInputView.prototype.render = function () {\n AutocompleteInputView.__super__.render.call(this);\n this.inputEl.classList.add('bk-autocomplete-input');\n this.inputEl.addEventListener('keydown', function (_this) {\n return function (event) {\n return _this._keydown(event);\n };\n }(this));\n this.inputEl.addEventListener('keyup', function (_this) {\n return function (event) {\n return _this._keyup(event);\n };\n }(this));\n this.menuEl = dom_1.ul({ 'class': 'bk-bs-dropdown-menu' });\n this.menuEl.addEventListener('click', function (_this) {\n return function (event) {\n return _this._item_click(event);\n };\n }(this));\n this.el.appendChild(this.menuEl);\n return this;\n };\n AutocompleteInputView.prototype._render_items = function (completions) {\n var i, itemEl, len, results, text;\n dom_1.empty(this.menuEl);\n results = [];\n for (i = 0, len = completions.length; i < len; i++) {\n text = completions[i];\n itemEl = dom_1.li({}, dom_1.a({ data: { text: text } }, text));\n results.push(this.menuEl.appendChild(itemEl));\n }\n return results;\n };\n AutocompleteInputView.prototype._open_menu = function () {\n return this.el.classList.add('bk-bs-open');\n };\n AutocompleteInputView.prototype._clear_menu = function () {\n return this.el.classList.remove('bk-bs-open');\n };\n AutocompleteInputView.prototype._item_click = function (event) {\n var el, text;\n event.preventDefault();\n if (event.target !== event.currentTarget) {\n el = event.target;\n text = el.dataset.text;\n return this.model.value = text;\n }\n };\n AutocompleteInputView.prototype._keydown = function (event) {\n };\n AutocompleteInputView.prototype._keyup = function (event) {\n var completions, i, len, ref, text, value;\n switch (event.keyCode) {\n case dom_1.Keys.Enter:\n return console.log('enter');\n case dom_1.Keys.Esc:\n return this._clear_menu();\n case dom_1.Keys.Up:\n case dom_1.Keys.Down:\n return console.log('up/down');\n default:\n value = this.inputEl.value;\n if (value.length <= 1) {\n this._clear_menu();\n return;\n }\n completions = [];\n ref = this.model.completions;\n for (i = 0, len = ref.length; i < len; i++) {\n text = ref[i];\n if (text.indexOf(value) !== -1) {\n completions.push(text);\n }\n }\n if (completions.length === 0) {\n return this._clear_menu();\n } else {\n this._render_items(completions);\n return this._open_menu();\n }\n }\n };\n return AutocompleteInputView;\n}(text_input_1.TextInputView);\nexports.AutocompleteInput = function (superClass) {\n extend(AutocompleteInput, superClass);\n function AutocompleteInput() {\n return AutocompleteInput.__super__.constructor.apply(this, arguments);\n }\n AutocompleteInput.prototype.type = 'AutocompleteInput';\n AutocompleteInput.prototype.default_view = exports.AutocompleteInputView;\n AutocompleteInput.define({\n completions: [\n p.Array,\n []\n ]\n });\n AutocompleteInput.internal({\n active: [\n p.Boolean,\n true\n ]\n });\n return AutocompleteInput;\n}(text_input_1.TextInput); \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar extend = function (child, parent) {\n for (var key in parent) {\n if (hasProp.call(parent, key))\n child[key] = parent[key];\n }\n function ctor() {\n this.constructor = child;\n }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n child.__super__ = parent.prototype;\n return child;\n }, hasProp = {}.hasOwnProperty;\nvar p = require(14 /* core/properties */);\nvar bokeh_events_1 = require(3 /* core/bokeh_events */);\nvar abstract_button_1 = require(369 /* ./abstract_button */);\nexports.ButtonView = function (superClass) {\n extend(ButtonView, superClass);\n function ButtonView() {\n return ButtonView.__super__.constructor.apply(this, arguments);\n }\n ButtonView.prototype.change_input = function () {\n this.model.trigger_event(new bokeh_events_1.ButtonClick({}));\n this.model.clicks = this.model.clicks + 1;\n return ButtonView.__super__.change_input.call(this);\n };\n return ButtonView;\n}(abstract_button_1.AbstractButtonView);\nexports.Button = function (superClass) {\n extend(Button, superClass);\n function Button() {\n return Button.__super__.constructor.apply(this, arguments);\n }\n Button.prototype.type = 'Button';\n Button.prototype.default_view = exports.ButtonView;\n Button.define({\n clicks: [\n p.Number,\n 0\n ]\n });\n return Button;\n}(abstract_button_1.AbstractButton);\nbokeh_events_1.register_with_event(bokeh_events_1.ButtonClick, exports.Button); \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar extend = function (child, parent) {\n for (var key in parent) {\n if (hasProp.call(parent, key))\n child[key] = parent[key];\n }\n function ctor() {\n this.constructor = child;\n }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n child.__super__ = parent.prototype;\n return child;\n }, hasProp = {}.hasOwnProperty, indexOf = [].indexOf || function (item) {\n for (var i = 0, l = this.length; i < l; i++) {\n if (i in this && this[i] === item)\n return i;\n }\n return -1;\n };\nvar dom_1 = require(5 /* core/dom */);\nvar p = require(14 /* core/properties */);\nvar widget_1 = require(409 /* ./widget */);\nexports.CheckboxButtonGroupView = function (superClass) {\n extend(CheckboxButtonGroupView, superClass);\n function CheckboxButtonGroupView() {\n return CheckboxButtonGroupView.__super__.constructor.apply(this, arguments);\n }\n CheckboxButtonGroupView.prototype.initialize = function (options) {\n CheckboxButtonGroupView.__super__.initialize.call(this, options);\n return this.render();\n };\n CheckboxButtonGroupView.prototype.connect_signals = function () {\n CheckboxButtonGroupView.__super__.connect_signals.call(this);\n return this.connect(this.model.change, function () {\n return this.render();\n });\n };\n CheckboxButtonGroupView.prototype.render = function () {\n var active, divEl, i, inputEl, j, labelEl, len, ref, text;\n CheckboxButtonGroupView.__super__.render.call(this);\n dom_1.empty(this.el);\n divEl = dom_1.div({ 'class': 'bk-bs-btn-group' });\n this.el.appendChild(divEl);\n active = this.model.active;\n ref = this.model.labels;\n for (i = j = 0, len = ref.length; j < len; i = ++j) {\n text = ref[i];\n inputEl = dom_1.input({\n type: 'checkbox',\n value: '' + i,\n checked: indexOf.call(active, i) >= 0\n });\n inputEl.addEventListener('change', function (_this) {\n return function () {\n return _this.change_input();\n };\n }(this));\n labelEl = dom_1.label({\n 'class': [\n 'bk-bs-btn',\n 'bk-bs-btn-' + this.model.button_type\n ]\n }, inputEl, text);\n if (indexOf.call(active, i) >= 0) {\n labelEl.classList.add('bk-bs-active');\n }\n divEl.appendChild(labelEl);\n }\n return this;\n };\n CheckboxButtonGroupView.prototype.change_input = function () {\n var active, checkbox, i, ref;\n active = function () {\n var j, len, ref, results;\n ref = this.el.querySelectorAll('input');\n results = [];\n for (i = j = 0, len = ref.length; j < len; i = ++j) {\n checkbox = ref[i];\n if (checkbox.checked) {\n results.push(i);\n }\n }\n return results;\n }.call(this);\n this.model.active = active;\n return (ref = this.model.callback) != null ? ref.execute(this.model) : void 0;\n };\n return CheckboxButtonGroupView;\n}(widget_1.WidgetView);\nexports.CheckboxButtonGroup = function (superClass) {\n extend(CheckboxButtonGroup, superClass);\n function CheckboxButtonGroup() {\n return CheckboxButtonGroup.__super__.constructor.apply(this, arguments);\n }\n CheckboxButtonGroup.prototype.type = 'CheckboxButtonGroup';\n CheckboxButtonGroup.prototype.default_view = exports.CheckboxButtonGroupView;\n CheckboxButtonGroup.define({\n active: [\n p.Array,\n []\n ],\n labels: [\n p.Array,\n []\n ],\n button_type: [\n p.String,\n 'default'\n ],\n callback: [p.Instance]\n });\n return CheckboxButtonGroup;\n}(widget_1.Widget); \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar extend = function (child, parent) {\n for (var key in parent) {\n if (hasProp.call(parent, key))\n child[key] = parent[key];\n }\n function ctor() {\n this.constructor = child;\n }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n child.__super__ = parent.prototype;\n return child;\n }, hasProp = {}.hasOwnProperty, indexOf = [].indexOf || function (item) {\n for (var i = 0, l = this.length; i < l; i++) {\n if (i in this && this[i] === item)\n return i;\n }\n return -1;\n };\nvar dom_1 = require(5 /* core/dom */);\nvar p = require(14 /* core/properties */);\nvar widget_1 = require(409 /* ./widget */);\nexports.CheckboxGroupView = function (superClass) {\n extend(CheckboxGroupView, superClass);\n function CheckboxGroupView() {\n return CheckboxGroupView.__super__.constructor.apply(this, arguments);\n }\n CheckboxGroupView.prototype.initialize = function (options) {\n CheckboxGroupView.__super__.initialize.call(this, options);\n return this.render();\n };\n CheckboxGroupView.prototype.connect_signals = function () {\n CheckboxGroupView.__super__.connect_signals.call(this);\n return this.connect(this.model.change, function () {\n return this.render();\n });\n };\n CheckboxGroupView.prototype.render = function () {\n var active, divEl, i, inputEl, j, labelEl, len, ref, text;\n CheckboxGroupView.__super__.render.call(this);\n dom_1.empty(this.el);\n active = this.model.active;\n ref = this.model.labels;\n for (i = j = 0, len = ref.length; j < len; i = ++j) {\n text = ref[i];\n inputEl = dom_1.input({\n type: 'checkbox',\n value: '' + i\n });\n inputEl.addEventListener('change', function (_this) {\n return function () {\n return _this.change_input();\n };\n }(this));\n if (this.model.disabled) {\n inputEl.disabled = true;\n }\n if (indexOf.call(active, i) >= 0) {\n inputEl.checked = true;\n }\n labelEl = dom_1.label({}, inputEl, text);\n if (this.model.inline) {\n labelEl.classList.add('bk-bs-checkbox-inline');\n this.el.appendChild(labelEl);\n } else {\n divEl = dom_1.div({ 'class': 'bk-bs-checkbox' }, labelEl);\n this.el.appendChild(divEl);\n }\n }\n return this;\n };\n CheckboxGroupView.prototype.change_input = function () {\n var active, checkbox, i, ref;\n active = function () {\n var j, len, ref, results;\n ref = this.el.querySelectorAll('input');\n results = [];\n for (i = j = 0, len = ref.length; j < len; i = ++j) {\n checkbox = ref[i];\n if (checkbox.checked) {\n results.push(i);\n }\n }\n return results;\n }.call(this);\n this.model.active = active;\n return (ref = this.model.callback) != null ? ref.execute(this.model) : void 0;\n };\n return CheckboxGroupView;\n}(widget_1.WidgetView);\nexports.CheckboxGroup = function (superClass) {\n extend(CheckboxGroup, superClass);\n function CheckboxGroup() {\n return CheckboxGroup.__super__.constructor.apply(this, arguments);\n }\n CheckboxGroup.prototype.type = 'CheckboxGroup';\n CheckboxGroup.prototype.default_view = exports.CheckboxGroupView;\n CheckboxGroup.define({\n active: [\n p.Array,\n []\n ],\n labels: [\n p.Array,\n []\n ],\n inline: [\n p.Bool,\n false\n ],\n callback: [p.Instance]\n });\n return CheckboxGroup;\n}(widget_1.Widget); \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar signaling_1 = require(19 /* core/signaling */);\nexports.clear_menus = new signaling_1.Signal({}, 'clear_menus');\ndocument.addEventListener('click', function () {\n return exports.clear_menus.emit(undefined);\n}); \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar bind = function (fn, me) {\n return function () {\n return fn.apply(me, arguments);\n };\n }, extend = function (child, parent) {\n for (var key in parent) {\n if (hasProp.call(parent, key))\n child[key] = parent[key];\n }\n function ctor() {\n this.constructor = child;\n }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n child.__super__ = parent.prototype;\n return child;\n }, hasProp = {}.hasOwnProperty;\nvar input_widget_1 = require(383 /* ./input_widget */);\nvar dom_1 = require(5 /* core/dom */);\nvar p = require(14 /* core/properties */);\nvar Pikaday = require(401 /* pikaday */);\nPikaday.prototype.adjustPosition = function () {\n var clientRect, field, height, left, scrollTop, top, viewportHeight, viewportWidth, width;\n if (this._o.container) {\n return;\n }\n this.el.style.position = 'absolute';\n field = this._o.trigger;\n width = this.el.offsetWidth;\n height = this.el.offsetHeight;\n viewportWidth = window.innerWidth || document.documentElement.clientWidth;\n viewportHeight = window.innerHeight || document.documentElement.clientHeight;\n scrollTop = window.pageYOffset || document.body.scrollTop || document.documentElement.scrollTop;\n clientRect = field.getBoundingClientRect();\n left = clientRect.left + window.pageXOffset;\n top = clientRect.bottom + window.pageYOffset;\n left -= this.el.parentElement.offsetLeft;\n top -= this.el.parentElement.offsetTop;\n if (this._o.reposition && left + width > viewportWidth || this._o.position.indexOf('right') > -1 && left - width + field.offsetWidth > 0) {\n left = left - width + field.offsetWidth;\n }\n if (this._o.reposition && top + height > viewportHeight + scrollTop || this._o.position.indexOf('top') > -1 && top - height - field.offsetHeight > 0) {\n top = top - height - field.offsetHeight;\n }\n this.el.style.left = left + 'px';\n return this.el.style.top = top + 'px';\n};\nexports.DatePickerView = function (superClass) {\n extend(DatePickerView, superClass);\n function DatePickerView() {\n this._on_select = bind(this._on_select, this);\n return DatePickerView.__super__.constructor.apply(this, arguments);\n }\n DatePickerView.prototype.className = 'bk-widget-form-group';\n DatePickerView.prototype.render = function () {\n DatePickerView.__super__.render.call(this);\n if (this._picker != null) {\n this._picker.destroy();\n }\n dom_1.empty(this.el);\n this.labelEl = dom_1.label({}, this.model.title);\n this.el.appendChild(this.labelEl);\n this.inputEl = dom_1.input({\n type: 'text',\n 'class': 'bk-widget-form-input',\n disabled: this.model.disabled\n });\n this.el.appendChild(this.inputEl);\n this._picker = new Pikaday({\n field: this.inputEl,\n defaultDate: new Date(this.model.value),\n setDefaultDate: true,\n minDate: this.model.min_date != null ? new Date(this.model.min_date) : null,\n maxDate: this.model.max_date != null ? new Date(this.model.max_date) : null,\n onSelect: this._on_select\n });\n this._root_element.appendChild(this._picker.el);\n return this;\n };\n DatePickerView.prototype._on_select = function (date) {\n this.model.value = date.toDateString();\n return this.change_input();\n };\n return DatePickerView;\n}(input_widget_1.InputWidgetView);\nexports.DatePicker = function (superClass) {\n extend(DatePicker, superClass);\n function DatePicker() {\n return DatePicker.__super__.constructor.apply(this, arguments);\n }\n DatePicker.prototype.type = 'DatePicker';\n DatePicker.prototype.default_view = exports.DatePickerView;\n DatePicker.define({\n value: [\n p.Any,\n Date.now()\n ],\n min_date: [p.Any],\n max_date: [p.Any]\n });\n return DatePicker;\n}(input_widget_1.InputWidget); \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar extend = function (child, parent) {\n for (var key in parent) {\n if (hasProp.call(parent, key))\n child[key] = parent[key];\n }\n function ctor() {\n this.constructor = child;\n }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n child.__super__ = parent.prototype;\n return child;\n }, hasProp = {}.hasOwnProperty;\nvar tz = require(360 /* timezone */);\nvar abstract_slider_1 = require(371 /* ./abstract_slider */);\nexports.DateRangeSliderView = function (superClass) {\n extend(DateRangeSliderView, superClass);\n function DateRangeSliderView() {\n return DateRangeSliderView.__super__.constructor.apply(this, arguments);\n }\n DateRangeSliderView.prototype._calc_to = function () {\n return {\n start: this.model.start,\n end: this.model.end,\n value: this.model.value,\n step: this.model.step\n };\n };\n DateRangeSliderView.prototype._calc_from = function (values) {\n return values;\n };\n return DateRangeSliderView;\n}(abstract_slider_1.AbstractSliderView);\nexports.DateRangeSlider = function (superClass) {\n extend(DateRangeSlider, superClass);\n function DateRangeSlider() {\n return DateRangeSlider.__super__.constructor.apply(this, arguments);\n }\n DateRangeSlider.prototype.type = 'DateRangeSlider';\n DateRangeSlider.prototype.default_view = exports.DateRangeSliderView;\n DateRangeSlider.prototype.behaviour = 'drag';\n DateRangeSlider.prototype.connected = [\n false,\n true,\n false\n ];\n DateRangeSlider.prototype._formatter = tz;\n DateRangeSlider.override({ format: '%d %b %Y' });\n return DateRangeSlider;\n}(abstract_slider_1.AbstractSlider); \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar extend = function (child, parent) {\n for (var key in parent) {\n if (hasProp.call(parent, key))\n child[key] = parent[key];\n }\n function ctor() {\n this.constructor = child;\n }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n child.__super__ = parent.prototype;\n return child;\n }, hasProp = {}.hasOwnProperty;\nvar tz = require(360 /* timezone */);\nvar abstract_slider_1 = require(371 /* ./abstract_slider */);\nexports.DateSliderView = function (superClass) {\n extend(DateSliderView, superClass);\n function DateSliderView() {\n return DateSliderView.__super__.constructor.apply(this, arguments);\n }\n DateSliderView.prototype._calc_to = function () {\n return {\n start: this.model.start,\n end: this.model.end,\n value: [this.model.value],\n step: this.model.step\n };\n };\n DateSliderView.prototype._calc_from = function (arg) {\n var value;\n value = arg[0];\n return value;\n };\n return DateSliderView;\n}(abstract_slider_1.AbstractSliderView);\nexports.DateSlider = function (superClass) {\n extend(DateSlider, superClass);\n function DateSlider() {\n return DateSlider.__super__.constructor.apply(this, arguments);\n }\n DateSlider.prototype.type = 'DateSlider';\n DateSlider.prototype.default_view = exports.DateSliderView;\n DateSlider.prototype.behaviour = 'tap';\n DateSlider.prototype.connected = [\n true,\n false\n ];\n DateSlider.prototype._formatter = tz;\n DateSlider.override({ format: '%d %b %Y' });\n return DateSlider;\n}(abstract_slider_1.AbstractSlider); \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar extend = function (child, parent) {\n for (var key in parent) {\n if (hasProp.call(parent, key))\n child[key] = parent[key];\n }\n function ctor() {\n this.constructor = child;\n }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n child.__super__ = parent.prototype;\n return child;\n }, hasProp = {}.hasOwnProperty;\nvar markup_1 = require(385 /* ./markup */);\nvar dom_1 = require(5 /* core/dom */);\nvar p = require(14 /* core/properties */);\nexports.DivView = function (superClass) {\n extend(DivView, superClass);\n function DivView() {\n return DivView.__super__.constructor.apply(this, arguments);\n }\n DivView.prototype.render = function () {\n var content;\n DivView.__super__.render.call(this);\n content = dom_1.div();\n if (this.model.render_as_text) {\n content.textContent = this.model.text;\n } else {\n content.innerHTML = this.model.text;\n }\n this.markupEl.appendChild(content);\n return this;\n };\n return DivView;\n}(markup_1.MarkupView);\nexports.Div = function (superClass) {\n extend(Div, superClass);\n function Div() {\n return Div.__super__.constructor.apply(this, arguments);\n }\n Div.prototype.type = 'Div';\n Div.prototype.default_view = exports.DivView;\n Div.define({\n render_as_text: [\n p.Bool,\n false\n ]\n });\n return Div;\n}(markup_1.Markup); \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar extend = function (child, parent) {\n for (var key in parent) {\n if (hasProp.call(parent, key))\n child[key] = parent[key];\n }\n function ctor() {\n this.constructor = child;\n }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n child.__super__ = parent.prototype;\n return child;\n }, hasProp = {}.hasOwnProperty;\nvar dom_1 = require(5 /* core/dom */);\nvar p = require(14 /* core/properties */);\nvar abstract_button_1 = require(369 /* ./abstract_button */);\nvar common_1 = require(376 /* ./common */);\nexports.DropdownView = function (superClass) {\n extend(DropdownView, superClass);\n function DropdownView() {\n return DropdownView.__super__.constructor.apply(this, arguments);\n }\n DropdownView.prototype.connect_signals = function () {\n DropdownView.__super__.connect_signals.call(this);\n return common_1.clear_menus.connect(function (_this) {\n return function () {\n return _this._clear_menu();\n };\n }(this));\n };\n DropdownView.prototype.render = function () {\n var caretEl, i, item, itemEl, items, label, len, link, menuEl, ref, value;\n DropdownView.__super__.render.call(this);\n if (!this.model.is_split_button) {\n this.el.classList.add('bk-bs-dropdown');\n this.buttonEl.classList.add('bk-bs-dropdown-toggle');\n this.buttonEl.appendChild(dom_1.span({ 'class': 'bk-bs-caret' }));\n } else {\n this.el.classList.add('bk-bs-btn-group');\n caretEl = this._render_button(dom_1.span({ 'class': 'bk-bs-caret' }));\n caretEl.classList.add('bk-bs-dropdown-toggle');\n caretEl.addEventListener('click', function (_this) {\n return function (event) {\n return _this._caret_click(event);\n };\n }(this));\n this.el.appendChild(caretEl);\n }\n if (this.model.active) {\n this.el.classList.add('bk-bs-open');\n }\n items = [];\n ref = this.model.menu;\n for (i = 0, len = ref.length; i < len; i++) {\n item = ref[i];\n if (item != null) {\n label = item[0], value = item[1];\n link = dom_1.a({}, label);\n link.dataset.value = value;\n link.addEventListener('click', function (_this) {\n return function (event) {\n return _this._item_click(event);\n };\n }(this));\n itemEl = dom_1.li({}, link);\n } else {\n itemEl = dom_1.li({ 'class': 'bk-bs-divider' });\n }\n items.push(itemEl);\n }\n menuEl = dom_1.ul({ 'class': 'bk-bs-dropdown-menu' }, items);\n this.el.appendChild(menuEl);\n return this;\n };\n DropdownView.prototype._clear_menu = function () {\n return this.model.active = false;\n };\n DropdownView.prototype._toggle_menu = function () {\n var active;\n active = this.model.active;\n common_1.clear_menus.emit();\n if (!active) {\n return this.model.active = true;\n }\n };\n DropdownView.prototype._button_click = function (event) {\n event.preventDefault();\n event.stopPropagation();\n if (!this.model.is_split_button) {\n return this._toggle_menu();\n } else {\n this._clear_menu();\n return this.set_value(this.model.default_value);\n }\n };\n DropdownView.prototype._caret_click = function (event) {\n event.preventDefault();\n event.stopPropagation();\n return this._toggle_menu();\n };\n DropdownView.prototype._item_click = function (event) {\n event.preventDefault();\n this._clear_menu();\n return this.set_value(event.currentTarget.dataset.value);\n };\n DropdownView.prototype.set_value = function (value) {\n this.buttonEl.value = this.model.value = value;\n return this.change_input();\n };\n return DropdownView;\n}(abstract_button_1.AbstractButtonView);\nexports.Dropdown = function (superClass) {\n extend(Dropdown, superClass);\n function Dropdown() {\n return Dropdown.__super__.constructor.apply(this, arguments);\n }\n Dropdown.prototype.type = 'Dropdown';\n Dropdown.prototype.default_view = exports.DropdownView;\n Dropdown.define({\n value: [p.String],\n default_value: [p.String],\n menu: [\n p.Array,\n []\n ]\n });\n Dropdown.override({ label: 'Dropdown' });\n Dropdown.internal({\n active: [\n p.Boolean,\n false\n ]\n });\n Dropdown.getters({\n is_split_button: function () {\n return this.default_value != null;\n }\n });\n return Dropdown;\n}(abstract_button_1.AbstractButton); \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar abstract_button_1 = require(369 /* ./abstract_button */);\nexports.AbstractButton = abstract_button_1.AbstractButton;\nvar abstract_icon_1 = require(370 /* ./abstract_icon */);\nexports.AbstractIcon = abstract_icon_1.AbstractIcon;\nvar autocomplete_input_1 = require(372 /* ./autocomplete_input */);\nexports.AutocompleteInput = autocomplete_input_1.AutocompleteInput;\nvar button_1 = require(373 /* ./button */);\nexports.Button = button_1.Button;\nvar checkbox_button_group_1 = require(374 /* ./checkbox_button_group */);\nexports.CheckboxButtonGroup = checkbox_button_group_1.CheckboxButtonGroup;\nvar checkbox_group_1 = require(375 /* ./checkbox_group */);\nexports.CheckboxGroup = checkbox_group_1.CheckboxGroup;\nvar date_picker_1 = require(377 /* ./date_picker */);\nexports.DatePicker = date_picker_1.DatePicker;\nvar date_range_slider_1 = require(378 /* ./date_range_slider */);\nexports.DateRangeSlider = date_range_slider_1.DateRangeSlider;\nvar date_slider_1 = require(379 /* ./date_slider */);\nexports.DateSlider = date_slider_1.DateSlider;\nvar div_1 = require(380 /* ./div */);\nexports.Div = div_1.Div;\nvar dropdown_1 = require(381 /* ./dropdown */);\nexports.Dropdown = dropdown_1.Dropdown;\nvar input_widget_1 = require(383 /* ./input_widget */);\nexports.InputWidget = input_widget_1.InputWidget;\nvar markup_1 = require(385 /* ./markup */);\nexports.Markup = markup_1.Markup;\nvar multiselect_1 = require(386 /* ./multiselect */);\nexports.MultiSelect = multiselect_1.MultiSelect;\nvar panel_1 = require(387 /* ./panel */);\nexports.Panel = panel_1.Panel;\nvar paragraph_1 = require(388 /* ./paragraph */);\nexports.Paragraph = paragraph_1.Paragraph;\nvar password_input_1 = require(389 /* ./password_input */);\nexports.PasswordInput = password_input_1.PasswordInput;\nvar pretext_1 = require(390 /* ./pretext */);\nexports.PreText = pretext_1.PreText;\nvar radio_button_group_1 = require(391 /* ./radio_button_group */);\nexports.RadioButtonGroup = radio_button_group_1.RadioButtonGroup;\nvar radio_group_1 = require(392 /* ./radio_group */);\nexports.RadioGroup = radio_group_1.RadioGroup;\nvar range_slider_1 = require(393 /* ./range_slider */);\nexports.RangeSlider = range_slider_1.RangeSlider;\nvar selectbox_1 = require(394 /* ./selectbox */);\nexports.Select = selectbox_1.Select;\nvar slider_1 = require(395 /* ./slider */);\nexports.Slider = slider_1.Slider;\nvar tabs_1 = require(396 /* ./tabs */);\nexports.Tabs = tabs_1.Tabs;\nvar text_input_1 = require(397 /* ./text_input */);\nexports.TextInput = text_input_1.TextInput;\nvar toggle_1 = require(398 /* ./toggle */);\nexports.Toggle = toggle_1.Toggle;\nvar widget_1 = require(409 /* ./widget */);\nexports.Widget = widget_1.Widget; \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar extend = function (child, parent) {\n for (var key in parent) {\n if (hasProp.call(parent, key))\n child[key] = parent[key];\n }\n function ctor() {\n this.constructor = child;\n }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n child.__super__ = parent.prototype;\n return child;\n }, hasProp = {}.hasOwnProperty;\nvar widget_1 = require(409 /* ./widget */);\nvar p = require(14 /* core/properties */);\nexports.InputWidgetView = function (superClass) {\n extend(InputWidgetView, superClass);\n function InputWidgetView() {\n return InputWidgetView.__super__.constructor.apply(this, arguments);\n }\n InputWidgetView.prototype.change_input = function () {\n var ref;\n return (ref = this.model.callback) != null ? ref.execute(this.model) : void 0;\n };\n return InputWidgetView;\n}(widget_1.WidgetView);\nexports.InputWidget = function (superClass) {\n extend(InputWidget, superClass);\n function InputWidget() {\n return InputWidget.__super__.constructor.apply(this, arguments);\n }\n InputWidget.prototype.type = 'InputWidget';\n InputWidget.prototype.default_view = exports.InputWidgetView;\n InputWidget.define({\n callback: [p.Instance],\n title: [\n p.String,\n ''\n ]\n });\n return InputWidget;\n}(widget_1.Widget); \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar Widgets = require(382 /* ./index */);\nexports.Widgets = Widgets;\nvar base_1 = require(0 /* ../../base */);\nbase_1.register_models(Widgets); \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar extend1 = function (child, parent) {\n for (var key in parent) {\n if (hasProp.call(parent, key))\n child[key] = parent[key];\n }\n function ctor() {\n this.constructor = child;\n }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n child.__super__ = parent.prototype;\n return child;\n }, hasProp = {}.hasOwnProperty;\nvar p = require(14 /* core/properties */);\nvar dom_1 = require(5 /* core/dom */);\nvar object_1 = require(29 /* core/util/object */);\nvar widget_1 = require(409 /* ./widget */);\nexports.MarkupView = function (superClass) {\n extend1(MarkupView, superClass);\n function MarkupView() {\n return MarkupView.__super__.constructor.apply(this, arguments);\n }\n MarkupView.prototype.initialize = function (options) {\n MarkupView.__super__.initialize.call(this, options);\n return this.render();\n };\n MarkupView.prototype.connect_signals = function () {\n MarkupView.__super__.connect_signals.call(this);\n return this.connect(this.model.change, function () {\n return this.render();\n });\n };\n MarkupView.prototype.render = function () {\n var style;\n MarkupView.__super__.render.call(this);\n dom_1.empty(this.el);\n style = object_1.extend({\n width: this.model.width + 'px',\n height: this.model.height + 'px'\n }, this.model.style);\n this.markupEl = dom_1.div({ style: style });\n return this.el.appendChild(this.markupEl);\n };\n return MarkupView;\n}(widget_1.WidgetView);\nexports.Markup = function (superClass) {\n extend1(Markup, superClass);\n function Markup() {\n return Markup.__super__.constructor.apply(this, arguments);\n }\n Markup.prototype.type = 'Markup';\n Markup.prototype.initialize = function (options) {\n return Markup.__super__.initialize.call(this, options);\n };\n Markup.define({\n text: [\n p.String,\n ''\n ],\n style: [\n p.Any,\n {}\n ]\n });\n return Markup;\n}(widget_1.Widget); \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar bind = function (fn, me) {\n return function () {\n return fn.apply(me, arguments);\n };\n }, extend = function (child, parent) {\n for (var key in parent) {\n if (hasProp.call(parent, key))\n child[key] = parent[key];\n }\n function ctor() {\n this.constructor = child;\n }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n child.__super__ = parent.prototype;\n return child;\n }, hasProp = {}.hasOwnProperty, indexOf = [].indexOf || function (item) {\n for (var i = 0, l = this.length; i < l; i++) {\n if (i in this && this[i] === item)\n return i;\n }\n return -1;\n };\nvar dom_1 = require(5 /* core/dom */);\nvar types_1 = require(41 /* core/util/types */);\nvar p = require(14 /* core/properties */);\nvar input_widget_1 = require(383 /* ./input_widget */);\nexports.MultiSelectView = function (superClass) {\n extend(MultiSelectView, superClass);\n function MultiSelectView() {\n this.render_selection = bind(this.render_selection, this);\n return MultiSelectView.__super__.constructor.apply(this, arguments);\n }\n MultiSelectView.prototype.initialize = function (options) {\n MultiSelectView.__super__.initialize.call(this, options);\n return this.render();\n };\n MultiSelectView.prototype.connect_signals = function () {\n MultiSelectView.__super__.connect_signals.call(this);\n this.connect(this.model.properties.value.change, function () {\n return this.render_selection();\n });\n this.connect(this.model.properties.options.change, function () {\n return this.render();\n });\n this.connect(this.model.properties.name.change, function () {\n return this.render();\n });\n this.connect(this.model.properties.title.change, function () {\n return this.render();\n });\n return this.connect(this.model.properties.size.change, function () {\n return this.render();\n });\n };\n MultiSelectView.prototype.render = function () {\n var labelEl, options;\n MultiSelectView.__super__.render.call(this);\n dom_1.empty(this.el);\n labelEl = dom_1.label({ 'for': this.model.id }, this.model.title);\n this.el.appendChild(labelEl);\n options = this.model.options.map(function (_this) {\n return function (opt) {\n var _label, selected, value;\n if (types_1.isString(opt)) {\n value = _label = opt;\n } else {\n value = opt[0], _label = opt[1];\n }\n selected = indexOf.call(_this.model.value, value) >= 0;\n return dom_1.option({\n selected: selected,\n value: value\n }, _label);\n };\n }(this));\n this.selectEl = dom_1.select({\n multiple: true,\n 'class': 'bk-widget-form-input',\n id: this.model.id,\n name: this.model.name,\n size: this.model.size\n }, options);\n this.selectEl.addEventListener('change', function (_this) {\n return function () {\n return _this.change_input();\n };\n }(this));\n this.el.appendChild(this.selectEl);\n return this;\n };\n MultiSelectView.prototype.render_selection = function () {\n var el, i, j, len, len1, ref, ref1, values, x;\n values = {};\n ref = this.model.value;\n for (i = 0, len = ref.length; i < len; i++) {\n x = ref[i];\n values[x] = true;\n }\n ref1 = this.el.querySelectorAll('option');\n for (j = 0, len1 = ref1.length; j < len1; j++) {\n el = ref1[j];\n if (values[el.value]) {\n el.selected = 'selected';\n }\n }\n return this.selectEl.size = this.model.size;\n };\n MultiSelectView.prototype.change_input = function () {\n var el, i, is_focused, len, ref, values;\n is_focused = this.el.querySelector('select:focus') !== null;\n values = [];\n ref = this.el.querySelectorAll('option');\n for (i = 0, len = ref.length; i < len; i++) {\n el = ref[i];\n if (el.selected) {\n values.push(el.value);\n }\n }\n this.model.value = values;\n MultiSelectView.__super__.change_input.call(this);\n if (is_focused) {\n return this.selectEl.focus();\n }\n };\n return MultiSelectView;\n}(input_widget_1.InputWidgetView);\nexports.MultiSelect = function (superClass) {\n extend(MultiSelect, superClass);\n function MultiSelect() {\n return MultiSelect.__super__.constructor.apply(this, arguments);\n }\n MultiSelect.prototype.type = 'MultiSelect';\n MultiSelect.prototype.default_view = exports.MultiSelectView;\n MultiSelect.define({\n value: [\n p.Array,\n []\n ],\n options: [\n p.Array,\n []\n ],\n size: [\n p.Number,\n 4\n ]\n });\n return MultiSelect;\n}(input_widget_1.InputWidget); \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar extend = function (child, parent) {\n for (var key in parent) {\n if (hasProp.call(parent, key))\n child[key] = parent[key];\n }\n function ctor() {\n this.constructor = child;\n }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n child.__super__ = parent.prototype;\n return child;\n }, hasProp = {}.hasOwnProperty;\nvar widget_1 = require(409 /* ./widget */);\nvar p = require(14 /* core/properties */);\nvar dom_1 = require(5 /* core/dom */);\nexports.PanelView = function (superClass) {\n extend(PanelView, superClass);\n function PanelView() {\n return PanelView.__super__.constructor.apply(this, arguments);\n }\n PanelView.prototype.render = function () {\n PanelView.__super__.render.call(this);\n dom_1.empty(this.el);\n return this;\n };\n return PanelView;\n}(widget_1.WidgetView);\nexports.Panel = function (superClass) {\n extend(Panel, superClass);\n function Panel() {\n return Panel.__super__.constructor.apply(this, arguments);\n }\n Panel.prototype.type = 'Panel';\n Panel.prototype.default_view = exports.PanelView;\n Panel.define({\n title: [\n p.String,\n ''\n ],\n child: [p.Instance],\n closable: [\n p.Bool,\n false\n ]\n });\n return Panel;\n}(widget_1.Widget); \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar extend = function (child, parent) {\n for (var key in parent) {\n if (hasProp.call(parent, key))\n child[key] = parent[key];\n }\n function ctor() {\n this.constructor = child;\n }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n child.__super__ = parent.prototype;\n return child;\n }, hasProp = {}.hasOwnProperty;\nvar markup_1 = require(385 /* ./markup */);\nvar dom_1 = require(5 /* core/dom */);\nexports.ParagraphView = function (superClass) {\n extend(ParagraphView, superClass);\n function ParagraphView() {\n return ParagraphView.__super__.constructor.apply(this, arguments);\n }\n ParagraphView.prototype.render = function () {\n var content;\n ParagraphView.__super__.render.call(this);\n content = dom_1.p({ style: { margin: 0 } }, this.model.text);\n return this.markupEl.appendChild(content);\n };\n return ParagraphView;\n}(markup_1.MarkupView);\nexports.Paragraph = function (superClass) {\n extend(Paragraph, superClass);\n function Paragraph() {\n return Paragraph.__super__.constructor.apply(this, arguments);\n }\n Paragraph.prototype.type = 'Paragraph';\n Paragraph.prototype.default_view = exports.ParagraphView;\n return Paragraph;\n}(markup_1.Markup); \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar extend = function (child, parent) {\n for (var key in parent) {\n if (hasProp.call(parent, key))\n child[key] = parent[key];\n }\n function ctor() {\n this.constructor = child;\n }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n child.__super__ = parent.prototype;\n return child;\n }, hasProp = {}.hasOwnProperty;\nvar text_input_1 = require(397 /* ./text_input */);\nexports.PasswordInputView = function (superClass) {\n extend(PasswordInputView, superClass);\n function PasswordInputView() {\n return PasswordInputView.__super__.constructor.apply(this, arguments);\n }\n PasswordInputView.prototype.render = function () {\n PasswordInputView.__super__.render.call(this);\n return this.inputEl.type = 'password';\n };\n return PasswordInputView;\n}(text_input_1.TextInputView);\nexports.PasswordInput = function (superClass) {\n extend(PasswordInput, superClass);\n function PasswordInput() {\n return PasswordInput.__super__.constructor.apply(this, arguments);\n }\n PasswordInput.prototype.type = 'PasswordInput';\n PasswordInput.prototype.default_view = exports.PasswordInputView;\n return PasswordInput;\n}(text_input_1.TextInput); \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar extend = function (child, parent) {\n for (var key in parent) {\n if (hasProp.call(parent, key))\n child[key] = parent[key];\n }\n function ctor() {\n this.constructor = child;\n }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n child.__super__ = parent.prototype;\n return child;\n }, hasProp = {}.hasOwnProperty;\nvar markup_1 = require(385 /* ./markup */);\nvar dom_1 = require(5 /* core/dom */);\nexports.PreTextView = function (superClass) {\n extend(PreTextView, superClass);\n function PreTextView() {\n return PreTextView.__super__.constructor.apply(this, arguments);\n }\n PreTextView.prototype.render = function () {\n var content;\n PreTextView.__super__.render.call(this);\n content = dom_1.pre({ style: { overflow: 'auto' } }, this.model.text);\n return this.markupEl.appendChild(content);\n };\n return PreTextView;\n}(markup_1.MarkupView);\nexports.PreText = function (superClass) {\n extend(PreText, superClass);\n function PreText() {\n return PreText.__super__.constructor.apply(this, arguments);\n }\n PreText.prototype.type = 'PreText';\n PreText.prototype.default_view = exports.PreTextView;\n return PreText;\n}(markup_1.Markup); \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar extend = function (child, parent) {\n for (var key in parent) {\n if (hasProp.call(parent, key))\n child[key] = parent[key];\n }\n function ctor() {\n this.constructor = child;\n }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n child.__super__ = parent.prototype;\n return child;\n }, hasProp = {}.hasOwnProperty;\nvar dom_1 = require(5 /* core/dom */);\nvar string_1 = require(36 /* core/util/string */);\nvar p = require(14 /* core/properties */);\nvar widget_1 = require(409 /* ./widget */);\nexports.RadioButtonGroupView = function (superClass) {\n extend(RadioButtonGroupView, superClass);\n function RadioButtonGroupView() {\n return RadioButtonGroupView.__super__.constructor.apply(this, arguments);\n }\n RadioButtonGroupView.prototype.initialize = function (options) {\n RadioButtonGroupView.__super__.initialize.call(this, options);\n return this.render();\n };\n RadioButtonGroupView.prototype.connect_signals = function () {\n RadioButtonGroupView.__super__.connect_signals.call(this);\n return this.connect(this.model.change, function () {\n return this.render();\n });\n };\n RadioButtonGroupView.prototype.render = function () {\n var active, divEl, i, inputEl, j, labelEl, len, name, ref, text;\n RadioButtonGroupView.__super__.render.call(this);\n dom_1.empty(this.el);\n divEl = dom_1.div({ 'class': 'bk-bs-btn-group' });\n this.el.appendChild(divEl);\n name = string_1.uniqueId();\n active = this.model.active;\n ref = this.model.labels;\n for (i = j = 0, len = ref.length; j < len; i = ++j) {\n text = ref[i];\n inputEl = dom_1.input({\n type: 'radio',\n name: name,\n value: '' + i,\n checked: i === active\n });\n inputEl.addEventListener('change', function (_this) {\n return function () {\n return _this.change_input();\n };\n }(this));\n labelEl = dom_1.label({\n 'class': [\n 'bk-bs-btn',\n 'bk-bs-btn-' + this.model.button_type\n ]\n }, inputEl, text);\n if (i === active) {\n labelEl.classList.add('bk-bs-active');\n }\n divEl.appendChild(labelEl);\n }\n return this;\n };\n RadioButtonGroupView.prototype.change_input = function () {\n var active, i, radio, ref;\n active = function () {\n var j, len, ref, results;\n ref = this.el.querySelectorAll('input');\n results = [];\n for (i = j = 0, len = ref.length; j < len; i = ++j) {\n radio = ref[i];\n if (radio.checked) {\n results.push(i);\n }\n }\n return results;\n }.call(this);\n this.model.active = active[0];\n return (ref = this.model.callback) != null ? ref.execute(this.model) : void 0;\n };\n return RadioButtonGroupView;\n}(widget_1.WidgetView);\nexports.RadioButtonGroup = function (superClass) {\n extend(RadioButtonGroup, superClass);\n function RadioButtonGroup() {\n return RadioButtonGroup.__super__.constructor.apply(this, arguments);\n }\n RadioButtonGroup.prototype.type = 'RadioButtonGroup';\n RadioButtonGroup.prototype.default_view = exports.RadioButtonGroupView;\n RadioButtonGroup.define({\n active: [\n p.Any,\n null\n ],\n labels: [\n p.Array,\n []\n ],\n button_type: [\n p.String,\n 'default'\n ],\n callback: [p.Instance]\n });\n return RadioButtonGroup;\n}(widget_1.Widget); \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar extend = function (child, parent) {\n for (var key in parent) {\n if (hasProp.call(parent, key))\n child[key] = parent[key];\n }\n function ctor() {\n this.constructor = child;\n }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n child.__super__ = parent.prototype;\n return child;\n }, hasProp = {}.hasOwnProperty;\nvar dom_1 = require(5 /* core/dom */);\nvar string_1 = require(36 /* core/util/string */);\nvar p = require(14 /* core/properties */);\nvar widget_1 = require(409 /* ./widget */);\nexports.RadioGroupView = function (superClass) {\n extend(RadioGroupView, superClass);\n function RadioGroupView() {\n return RadioGroupView.__super__.constructor.apply(this, arguments);\n }\n RadioGroupView.prototype.initialize = function (options) {\n RadioGroupView.__super__.initialize.call(this, options);\n return this.render();\n };\n RadioGroupView.prototype.connect_signals = function () {\n RadioGroupView.__super__.connect_signals.call(this);\n return this.connect(this.model.change, function () {\n return this.render();\n });\n };\n RadioGroupView.prototype.render = function () {\n var active, divEl, i, inputEl, j, labelEl, len, name, ref, text;\n RadioGroupView.__super__.render.call(this);\n dom_1.empty(this.el);\n name = string_1.uniqueId();\n active = this.model.active;\n ref = this.model.labels;\n for (i = j = 0, len = ref.length; j < len; i = ++j) {\n text = ref[i];\n inputEl = dom_1.input({\n type: 'radio',\n name: name,\n value: '' + i\n });\n inputEl.addEventListener('change', function (_this) {\n return function () {\n return _this.change_input();\n };\n }(this));\n if (this.model.disabled) {\n inputEl.disabled = true;\n }\n if (i === active) {\n inputEl.checked = true;\n }\n labelEl = dom_1.label({}, inputEl, text);\n if (this.model.inline) {\n labelEl.classList.add('bk-bs-radio-inline');\n this.el.appendChild(labelEl);\n } else {\n divEl = dom_1.div({ 'class': 'bk-bs-radio' }, labelEl);\n this.el.appendChild(divEl);\n }\n }\n return this;\n };\n RadioGroupView.prototype.change_input = function () {\n var active, i, radio, ref;\n active = function () {\n var j, len, ref, results;\n ref = this.el.querySelectorAll('input');\n results = [];\n for (i = j = 0, len = ref.length; j < len; i = ++j) {\n radio = ref[i];\n if (radio.checked) {\n results.push(i);\n }\n }\n return results;\n }.call(this);\n this.model.active = active[0];\n return (ref = this.model.callback) != null ? ref.execute(this.model) : void 0;\n };\n return RadioGroupView;\n}(widget_1.WidgetView);\nexports.RadioGroup = function (superClass) {\n extend(RadioGroup, superClass);\n function RadioGroup() {\n return RadioGroup.__super__.constructor.apply(this, arguments);\n }\n RadioGroup.prototype.type = 'RadioGroup';\n RadioGroup.prototype.default_view = exports.RadioGroupView;\n RadioGroup.define({\n active: [\n p.Any,\n null\n ],\n labels: [\n p.Array,\n []\n ],\n inline: [\n p.Bool,\n false\n ],\n callback: [p.Instance]\n });\n return RadioGroup;\n}(widget_1.Widget); \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar extend = function (child, parent) {\n for (var key in parent) {\n if (hasProp.call(parent, key))\n child[key] = parent[key];\n }\n function ctor() {\n this.constructor = child;\n }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n child.__super__ = parent.prototype;\n return child;\n }, hasProp = {}.hasOwnProperty;\nvar numbro_1 = require(329 /* numbro */);\nvar abstract_slider_1 = require(371 /* ./abstract_slider */);\nexports.RangeSliderView = function (superClass) {\n extend(RangeSliderView, superClass);\n function RangeSliderView() {\n return RangeSliderView.__super__.constructor.apply(this, arguments);\n }\n RangeSliderView.prototype._calc_to = function () {\n return {\n start: this.model.start,\n end: this.model.end,\n value: this.model.value,\n step: this.model.step\n };\n };\n RangeSliderView.prototype._calc_from = function (values) {\n return values;\n };\n return RangeSliderView;\n}(abstract_slider_1.AbstractSliderView);\nexports.RangeSlider = function (superClass) {\n extend(RangeSlider, superClass);\n function RangeSlider() {\n return RangeSlider.__super__.constructor.apply(this, arguments);\n }\n RangeSlider.prototype.type = 'RangeSlider';\n RangeSlider.prototype.default_view = exports.RangeSliderView;\n RangeSlider.prototype.behaviour = 'drag';\n RangeSlider.prototype.connected = [\n false,\n true,\n false\n ];\n RangeSlider.prototype._formatter = numbro_1.format;\n RangeSlider.override({ format: '0[.]00' });\n return RangeSlider;\n}(abstract_slider_1.AbstractSlider); \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar extend = function (child, parent) {\n for (var key in parent) {\n if (hasProp.call(parent, key))\n child[key] = parent[key];\n }\n function ctor() {\n this.constructor = child;\n }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n child.__super__ = parent.prototype;\n return child;\n }, hasProp = {}.hasOwnProperty;\nvar dom_1 = require(5 /* core/dom */);\nvar types_1 = require(41 /* core/util/types */);\nvar logging_1 = require(13 /* core/logging */);\nvar p = require(14 /* core/properties */);\nvar input_widget_1 = require(383 /* ./input_widget */);\nexports.SelectView = function (superClass) {\n extend(SelectView, superClass);\n function SelectView() {\n return SelectView.__super__.constructor.apply(this, arguments);\n }\n SelectView.prototype.initialize = function (options) {\n SelectView.__super__.initialize.call(this, options);\n return this.render();\n };\n SelectView.prototype.connect_signals = function () {\n SelectView.__super__.connect_signals.call(this);\n return this.connect(this.model.change, function () {\n return this.render();\n });\n };\n SelectView.prototype.render = function () {\n var labelEl, options;\n SelectView.__super__.render.call(this);\n dom_1.empty(this.el);\n labelEl = dom_1.label({ 'for': this.model.id }, this.model.title);\n this.el.appendChild(labelEl);\n options = this.model.options.map(function (_this) {\n return function (opt) {\n var _label, selected, value;\n if (types_1.isString(opt)) {\n value = _label = opt;\n } else {\n value = opt[0], _label = opt[1];\n }\n selected = _this.model.value === value;\n return dom_1.option({\n selected: selected,\n value: value\n }, _label);\n };\n }(this));\n this.selectEl = dom_1.select({\n 'class': 'bk-widget-form-input',\n id: this.model.id,\n name: this.model.name\n }, options);\n this.selectEl.addEventListener('change', function (_this) {\n return function () {\n return _this.change_input();\n };\n }(this));\n this.el.appendChild(this.selectEl);\n return this;\n };\n SelectView.prototype.change_input = function () {\n var value;\n value = this.selectEl.value;\n logging_1.logger.debug('selectbox: value = ' + value);\n this.model.value = value;\n return SelectView.__super__.change_input.call(this);\n };\n return SelectView;\n}(input_widget_1.InputWidgetView);\nexports.Select = function (superClass) {\n extend(Select, superClass);\n function Select() {\n return Select.__super__.constructor.apply(this, arguments);\n }\n Select.prototype.type = 'Select';\n Select.prototype.default_view = exports.SelectView;\n Select.define({\n value: [\n p.String,\n ''\n ],\n options: [\n p.Any,\n []\n ]\n });\n return Select;\n}(input_widget_1.InputWidget); \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar extend = function (child, parent) {\n for (var key in parent) {\n if (hasProp.call(parent, key))\n child[key] = parent[key];\n }\n function ctor() {\n this.constructor = child;\n }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n child.__super__ = parent.prototype;\n return child;\n }, hasProp = {}.hasOwnProperty;\nvar numbro_1 = require(329 /* numbro */);\nvar abstract_slider_1 = require(371 /* ./abstract_slider */);\nexports.SliderView = function (superClass) {\n extend(SliderView, superClass);\n function SliderView() {\n return SliderView.__super__.constructor.apply(this, arguments);\n }\n SliderView.prototype._calc_to = function () {\n return {\n start: this.model.start,\n end: this.model.end,\n value: [this.model.value],\n step: this.model.step\n };\n };\n SliderView.prototype._calc_from = function (arg) {\n var value;\n value = arg[0];\n if (Number.isInteger(this.model.start) && Number.isInteger(this.model.end) && Number.isInteger(this.model.step)) {\n return value | 0;\n } else {\n return value;\n }\n };\n return SliderView;\n}(abstract_slider_1.AbstractSliderView);\nexports.Slider = function (superClass) {\n extend(Slider, superClass);\n function Slider() {\n return Slider.__super__.constructor.apply(this, arguments);\n }\n Slider.prototype.type = 'Slider';\n Slider.prototype.default_view = exports.SliderView;\n Slider.prototype.behaviour = 'tap';\n Slider.prototype.connected = [\n true,\n false\n ];\n Slider.prototype._formatter = numbro_1.format;\n Slider.override({ format: '0[.]00' });\n return Slider;\n}(abstract_slider_1.AbstractSlider); \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar extend = function (child, parent) {\n for (var key in parent) {\n if (hasProp.call(parent, key))\n child[key] = parent[key];\n }\n function ctor() {\n this.constructor = child;\n }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n child.__super__ = parent.prototype;\n return child;\n }, hasProp = {}.hasOwnProperty;\nvar dom_1 = require(5 /* core/dom */);\nvar array_1 = require(21 /* core/util/array */);\nvar p = require(14 /* core/properties */);\nvar widget_1 = require(409 /* ./widget */);\nexports.TabsView = function (superClass) {\n extend(TabsView, superClass);\n function TabsView() {\n return TabsView.__super__.constructor.apply(this, arguments);\n }\n TabsView.prototype.connect_signals = function () {\n TabsView.__super__.connect_signals.call(this);\n return this.connect(this.model.properties.tabs.change, function (_this) {\n return function () {\n return _this.rebuild_child_views();\n };\n }(this));\n };\n TabsView.prototype.render = function () {\n var child, j, len, len1, panelEl, panels, panelsEl, ref, ref1, tabs, tabsEl;\n TabsView.__super__.render.call(this);\n dom_1.empty(this.el);\n len = this.model.tabs.length;\n if (len === 0) {\n return;\n } else if (this.model.active >= len) {\n this.model.active = len - 1;\n }\n tabs = this.model.tabs.map(function (tab, i) {\n return dom_1.li({}, dom_1.span({ data: { index: i } }, tab.title));\n });\n tabs[this.model.active].classList.add('bk-bs-active');\n tabsEl = dom_1.ul({\n 'class': [\n 'bk-bs-nav',\n 'bk-bs-nav-tabs'\n ]\n }, tabs);\n this.el.appendChild(tabsEl);\n panels = this.model.tabs.map(function (tab) {\n return dom_1.div({ 'class': 'bk-bs-tab-pane' });\n });\n panels[this.model.active].classList.add('bk-bs-active');\n panelsEl = dom_1.div({ 'class': 'bk-bs-tab-content' }, panels);\n this.el.appendChild(panelsEl);\n tabsEl.addEventListener('click', function (_this) {\n return function (event) {\n var el, new_active, old_active, ref;\n event.preventDefault();\n if (event.target !== event.currentTarget) {\n el = event.target;\n old_active = _this.model.active;\n new_active = parseInt(el.dataset.index);\n if (old_active !== new_active) {\n tabs[old_active].classList.remove('bk-bs-active');\n panels[old_active].classList.remove('bk-bs-active');\n tabs[new_active].classList.add('bk-bs-active');\n panels[new_active].classList.add('bk-bs-active');\n _this.model.active = new_active;\n return (ref = _this.model.callback) != null ? ref.execute(_this.model) : void 0;\n }\n }\n };\n }(this));\n ref = array_1.zip(this.model.children, panels);\n for (j = 0, len1 = ref.length; j < len1; j++) {\n ref1 = ref[j], child = ref1[0], panelEl = ref1[1];\n panelEl.appendChild(this.child_views[child.id].el);\n }\n return this;\n };\n return TabsView;\n}(widget_1.WidgetView);\nexports.Tabs = function (superClass) {\n extend(Tabs, superClass);\n function Tabs() {\n return Tabs.__super__.constructor.apply(this, arguments);\n }\n Tabs.prototype.type = 'Tabs';\n Tabs.prototype.default_view = exports.TabsView;\n Tabs.define({\n tabs: [\n p.Array,\n []\n ],\n active: [\n p.Number,\n 0\n ],\n callback: [p.Instance]\n });\n Tabs.getters({\n children: function () {\n var j, len1, ref, results, tab;\n ref = this.tabs;\n results = [];\n for (j = 0, len1 = ref.length; j < len1; j++) {\n tab = ref[j];\n results.push(tab.child);\n }\n return results;\n }\n });\n Tabs.prototype.get_layoutable_children = function () {\n return this.children;\n };\n return Tabs;\n}(widget_1.Widget); \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar extend = function (child, parent) {\n for (var key in parent) {\n if (hasProp.call(parent, key))\n child[key] = parent[key];\n }\n function ctor() {\n this.constructor = child;\n }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n child.__super__ = parent.prototype;\n return child;\n }, hasProp = {}.hasOwnProperty;\nvar logging_1 = require(13 /* core/logging */);\nvar p = require(14 /* core/properties */);\nvar dom_1 = require(5 /* core/dom */);\nvar input_widget_1 = require(383 /* ./input_widget */);\nexports.TextInputView = function (superClass) {\n extend(TextInputView, superClass);\n function TextInputView() {\n return TextInputView.__super__.constructor.apply(this, arguments);\n }\n TextInputView.prototype.className = 'bk-widget-form-group';\n TextInputView.prototype.initialize = function (options) {\n TextInputView.__super__.initialize.call(this, options);\n return this.render();\n };\n TextInputView.prototype.connect_signals = function () {\n TextInputView.__super__.connect_signals.call(this);\n return this.connect(this.model.change, function () {\n return this.render();\n });\n };\n TextInputView.prototype.render = function () {\n var labelEl;\n TextInputView.__super__.render.call(this);\n dom_1.empty(this.el);\n labelEl = dom_1.label({ 'for': this.model.id }, this.model.title);\n this.el.appendChild(labelEl);\n this.inputEl = dom_1.input({\n type: 'text',\n 'class': 'bk-widget-form-input',\n id: this.model.id,\n name: this.model.name,\n value: this.model.value,\n disabled: this.model.disabled,\n placeholder: this.model.placeholder\n });\n this.inputEl.addEventListener('change', function (_this) {\n return function () {\n return _this.change_input();\n };\n }(this));\n this.el.appendChild(this.inputEl);\n if (this.model.height) {\n this.inputEl.style.height = this.model.height - 35 + 'px';\n }\n return this;\n };\n TextInputView.prototype.change_input = function () {\n var value;\n value = this.inputEl.value;\n logging_1.logger.debug('widget/text_input: value = ' + value);\n this.model.value = value;\n return TextInputView.__super__.change_input.call(this);\n };\n return TextInputView;\n}(input_widget_1.InputWidgetView);\nexports.TextInput = function (superClass) {\n extend(TextInput, superClass);\n function TextInput() {\n return TextInput.__super__.constructor.apply(this, arguments);\n }\n TextInput.prototype.type = 'TextInput';\n TextInput.prototype.default_view = exports.TextInputView;\n TextInput.define({\n value: [\n p.String,\n ''\n ],\n placeholder: [\n p.String,\n ''\n ]\n });\n return TextInput;\n}(input_widget_1.InputWidget); \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar extend = function (child, parent) {\n for (var key in parent) {\n if (hasProp.call(parent, key))\n child[key] = parent[key];\n }\n function ctor() {\n this.constructor = child;\n }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n child.__super__ = parent.prototype;\n return child;\n }, hasProp = {}.hasOwnProperty;\nvar p = require(14 /* core/properties */);\nvar abstract_button_1 = require(369 /* ./abstract_button */);\nexports.ToggleView = function (superClass) {\n extend(ToggleView, superClass);\n function ToggleView() {\n return ToggleView.__super__.constructor.apply(this, arguments);\n }\n ToggleView.prototype.render = function () {\n ToggleView.__super__.render.call(this);\n if (this.model.active) {\n this.buttonEl.classList.add('bk-bs-active');\n }\n return this;\n };\n ToggleView.prototype.change_input = function () {\n this.model.active = !this.model.active;\n return ToggleView.__super__.change_input.call(this);\n };\n return ToggleView;\n}(abstract_button_1.AbstractButtonView);\nexports.Toggle = function (superClass) {\n extend(Toggle, superClass);\n function Toggle() {\n return Toggle.__super__.constructor.apply(this, arguments);\n }\n Toggle.prototype.type = 'Toggle';\n Toggle.prototype.default_view = exports.ToggleView;\n Toggle.define({\n active: [\n p.Bool,\n false\n ]\n });\n Toggle.override({ label: 'Toggle' });\n return Toggle;\n}(abstract_button_1.AbstractButton); \n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar extend = function (child, parent) {\n for (var key in parent) {\n if (hasProp.call(parent, key))\n child[key] = parent[key];\n }\n function ctor() {\n this.constructor = child;\n }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n child.__super__ = parent.prototype;\n return child;\n }, hasProp = {}.hasOwnProperty;\nvar layout_dom_1 = require(136 /* ../layouts/layout_dom */);\nexports.WidgetView = function (superClass) {\n extend(WidgetView, superClass);\n function WidgetView() {\n return WidgetView.__super__.constructor.apply(this, arguments);\n }\n WidgetView.prototype.className = 'bk-widget';\n WidgetView.prototype.render = function () {\n this._render_classes();\n if (this.model.height != null) {\n this.el.style.height = this.model.height + 'px';\n }\n if (this.model.width != null) {\n return this.el.style.width = this.model.width + 'px';\n }\n };\n return WidgetView;\n}(layout_dom_1.LayoutDOMView);\nexports.Widget = function (superClass) {\n extend(Widget, superClass);\n function Widget() {\n return Widget.__super__.constructor.apply(this, arguments);\n }\n Widget.prototype.type = 'Widget';\n Widget.prototype.default_view = exports.WidgetView;\n return Widget;\n}(layout_dom_1.LayoutDOM); \n","/*! nouislider - 10.1.0 - 2017-07-28 17:11:18 */\n(function (factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define([], factory);\n } else if (typeof exports === 'object') {\n // Node/CommonJS\n module.exports = factory();\n } else {\n // Browser globals\n window.noUiSlider = factory();\n }\n}(function () {\n 'use strict';\n var VERSION = '10.1.0';\n function isValidFormatter(entry) {\n return typeof entry === 'object' && typeof entry.to === 'function' && typeof entry.from === 'function';\n }\n function removeElement(el) {\n el.parentElement.removeChild(el);\n }\n // Bindable version\n function preventDefault(e) {\n e.preventDefault();\n }\n // Removes duplicates from an array.\n function unique(array) {\n return array.filter(function (a) {\n return !this[a] ? this[a] = true : false;\n }, {});\n }\n // Round a value to the closest 'to'.\n function closest(value, to) {\n return Math.round(value / to) * to;\n }\n // Current position of an element relative to the document.\n function offset(elem, orientation) {\n var rect = elem.getBoundingClientRect();\n var doc = elem.ownerDocument;\n var docElem = doc.documentElement;\n var pageOffset = getPageOffset(doc);\n // getBoundingClientRect contains left scroll in Chrome on Android.\n // I haven't found a feature detection that proves this. Worst case\n // scenario on mis-match: the 'tap' feature on horizontal sliders breaks.\n if (/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)) {\n pageOffset.x = 0;\n }\n return orientation ? rect.top + pageOffset.y - docElem.clientTop : rect.left + pageOffset.x - docElem.clientLeft;\n }\n // Checks whether a value is numerical.\n function isNumeric(a) {\n return typeof a === 'number' && !isNaN(a) && isFinite(a);\n }\n // Sets a class and removes it after [duration] ms.\n function addClassFor(element, className, duration) {\n if (duration > 0) {\n addClass(element, className);\n setTimeout(function () {\n removeClass(element, className);\n }, duration);\n }\n }\n // Limits a value to 0 - 100\n function limit(a) {\n return Math.max(Math.min(a, 100), 0);\n }\n // Wraps a variable as an array, if it isn't one yet.\n // Note that an input array is returned by reference!\n function asArray(a) {\n return Array.isArray(a) ? a : [a];\n }\n // Counts decimals\n function countDecimals(numStr) {\n numStr = String(numStr);\n var pieces = numStr.split('.');\n return pieces.length > 1 ? pieces[1].length : 0;\n }\n // http://youmightnotneedjquery.com/#add_class\n function addClass(el, className) {\n if (el.classList) {\n el.classList.add(className);\n } else {\n el.className += ' ' + className;\n }\n }\n // http://youmightnotneedjquery.com/#remove_class\n function removeClass(el, className) {\n if (el.classList) {\n el.classList.remove(className);\n } else {\n el.className = el.className.replace(new RegExp('(^|\\\\b)' + className.split(' ').join('|') + '(\\\\b|$)', 'gi'), ' ');\n }\n }\n // https://plainjs.com/javascript/attributes/adding-removing-and-testing-for-classes-9/\n function hasClass(el, className) {\n return el.classList ? el.classList.contains(className) : new RegExp('\\\\b' + className + '\\\\b').test(el.className);\n }\n // https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollY#Notes\n function getPageOffset(doc) {\n var supportPageOffset = window.pageXOffset !== undefined;\n var isCSS1Compat = (doc.compatMode || '') === 'CSS1Compat';\n var x = supportPageOffset ? window.pageXOffset : isCSS1Compat ? doc.documentElement.scrollLeft : doc.body.scrollLeft;\n var y = supportPageOffset ? window.pageYOffset : isCSS1Compat ? doc.documentElement.scrollTop : doc.body.scrollTop;\n return {\n x: x,\n y: y\n };\n }\n // we provide a function to compute constants instead\n // of accessing window.* as soon as the module needs it\n // so that we do not compute anything if not needed\n function getActions() {\n // Determine the events to bind. IE11 implements pointerEvents without\n // a prefix, which breaks compatibility with the IE10 implementation.\n return window.navigator.pointerEnabled ? {\n start: 'pointerdown',\n move: 'pointermove',\n end: 'pointerup'\n } : window.navigator.msPointerEnabled ? {\n start: 'MSPointerDown',\n move: 'MSPointerMove',\n end: 'MSPointerUp'\n } : {\n start: 'mousedown touchstart',\n move: 'mousemove touchmove',\n end: 'mouseup touchend'\n };\n }\n // https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md\n // Issue #785\n function getSupportsPassive() {\n var supportsPassive = false;\n try {\n var opts = Object.defineProperty({}, 'passive', {\n get: function () {\n supportsPassive = true;\n }\n });\n window.addEventListener('test', null, opts);\n } catch (e) {\n }\n return supportsPassive;\n }\n function getSupportsTouchActionNone() {\n return window.CSS && CSS.supports && CSS.supports('touch-action', 'none');\n }\n // Value calculation\n // Determine the size of a sub-range in relation to a full range.\n function subRangeRatio(pa, pb) {\n return 100 / (pb - pa);\n }\n // (percentage) How many percent is this value of this range?\n function fromPercentage(range, value) {\n return value * 100 / (range[1] - range[0]);\n }\n // (percentage) Where is this value on this range?\n function toPercentage(range, value) {\n return fromPercentage(range, range[0] < 0 ? value + Math.abs(range[0]) : value - range[0]);\n }\n // (value) How much is this percentage on this range?\n function isPercentage(range, value) {\n return value * (range[1] - range[0]) / 100 + range[0];\n }\n // Range conversion\n function getJ(value, arr) {\n var j = 1;\n while (value >= arr[j]) {\n j += 1;\n }\n return j;\n }\n // (percentage) Input a value, find where, on a scale of 0-100, it applies.\n function toStepping(xVal, xPct, value) {\n if (value >= xVal.slice(-1)[0]) {\n return 100;\n }\n var j = getJ(value, xVal), va, vb, pa, pb;\n va = xVal[j - 1];\n vb = xVal[j];\n pa = xPct[j - 1];\n pb = xPct[j];\n return pa + toPercentage([\n va,\n vb\n ], value) / subRangeRatio(pa, pb);\n }\n // (value) Input a percentage, find where it is on the specified range.\n function fromStepping(xVal, xPct, value) {\n // There is no range group that fits 100\n if (value >= 100) {\n return xVal.slice(-1)[0];\n }\n var j = getJ(value, xPct), va, vb, pa, pb;\n va = xVal[j - 1];\n vb = xVal[j];\n pa = xPct[j - 1];\n pb = xPct[j];\n return isPercentage([\n va,\n vb\n ], (value - pa) * subRangeRatio(pa, pb));\n }\n // (percentage) Get the step that applies at a certain value.\n function getStep(xPct, xSteps, snap, value) {\n if (value === 100) {\n return value;\n }\n var j = getJ(value, xPct), a, b;\n // If 'snap' is set, steps are used as fixed points on the slider.\n if (snap) {\n a = xPct[j - 1];\n b = xPct[j];\n // Find the closest position, a or b.\n if (value - a > (b - a) / 2) {\n return b;\n }\n return a;\n }\n if (!xSteps[j - 1]) {\n return value;\n }\n return xPct[j - 1] + closest(value - xPct[j - 1], xSteps[j - 1]);\n }\n // Entry parsing\n function handleEntryPoint(index, value, that) {\n var percentage;\n // Wrap numerical input in an array.\n if (typeof value === 'number') {\n value = [value];\n }\n // Reject any invalid input, by testing whether value is an array.\n if (Object.prototype.toString.call(value) !== '[object Array]') {\n throw new Error('noUiSlider (' + VERSION + '): \\'range\\' contains invalid value.');\n }\n // Covert min/max syntax to 0 and 100.\n if (index === 'min') {\n percentage = 0;\n } else if (index === 'max') {\n percentage = 100;\n } else {\n percentage = parseFloat(index);\n }\n // Check for correct input.\n if (!isNumeric(percentage) || !isNumeric(value[0])) {\n throw new Error('noUiSlider (' + VERSION + '): \\'range\\' value isn\\'t numeric.');\n }\n // Store values.\n that.xPct.push(percentage);\n that.xVal.push(value[0]);\n // NaN will evaluate to false too, but to keep\n // logging clear, set step explicitly. Make sure\n // not to override the 'step' setting with false.\n if (!percentage) {\n if (!isNaN(value[1])) {\n that.xSteps[0] = value[1];\n }\n } else {\n that.xSteps.push(isNaN(value[1]) ? false : value[1]);\n }\n that.xHighestCompleteStep.push(0);\n }\n function handleStepPoint(i, n, that) {\n // Ignore 'false' stepping.\n if (!n) {\n return true;\n }\n // Factor to range ratio\n that.xSteps[i] = fromPercentage([\n that.xVal[i],\n that.xVal[i + 1]\n ], n) / subRangeRatio(that.xPct[i], that.xPct[i + 1]);\n var totalSteps = (that.xVal[i + 1] - that.xVal[i]) / that.xNumSteps[i];\n var highestStep = Math.ceil(Number(totalSteps.toFixed(3)) - 1);\n var step = that.xVal[i] + that.xNumSteps[i] * highestStep;\n that.xHighestCompleteStep[i] = step;\n }\n // Interface\n function Spectrum(entry, snap, singleStep) {\n this.xPct = [];\n this.xVal = [];\n this.xSteps = [singleStep || false];\n this.xNumSteps = [false];\n this.xHighestCompleteStep = [];\n this.snap = snap;\n var index, ordered = [];\n // Map the object keys to an array.\n for (index in entry) {\n if (entry.hasOwnProperty(index)) {\n ordered.push([\n entry[index],\n index\n ]);\n }\n }\n // Sort all entries by value (numeric sort).\n if (ordered.length && typeof ordered[0][0] === 'object') {\n ordered.sort(function (a, b) {\n return a[0][0] - b[0][0];\n });\n } else {\n ordered.sort(function (a, b) {\n return a[0] - b[0];\n });\n }\n // Convert all entries to subranges.\n for (index = 0; index < ordered.length; index++) {\n handleEntryPoint(ordered[index][1], ordered[index][0], this);\n }\n // Store the actual step values.\n // xSteps is sorted in the same order as xPct and xVal.\n this.xNumSteps = this.xSteps.slice(0);\n // Convert all numeric steps to the percentage of the subrange they represent.\n for (index = 0; index < this.xNumSteps.length; index++) {\n handleStepPoint(index, this.xNumSteps[index], this);\n }\n }\n Spectrum.prototype.getMargin = function (value) {\n var step = this.xNumSteps[0];\n if (step && value / step % 1 !== 0) {\n throw new Error('noUiSlider (' + VERSION + '): \\'limit\\', \\'margin\\' and \\'padding\\' must be divisible by step.');\n }\n return this.xPct.length === 2 ? fromPercentage(this.xVal, value) : false;\n };\n Spectrum.prototype.toStepping = function (value) {\n value = toStepping(this.xVal, this.xPct, value);\n return value;\n };\n Spectrum.prototype.fromStepping = function (value) {\n return fromStepping(this.xVal, this.xPct, value);\n };\n Spectrum.prototype.getStep = function (value) {\n value = getStep(this.xPct, this.xSteps, this.snap, value);\n return value;\n };\n Spectrum.prototype.getNearbySteps = function (value) {\n var j = getJ(value, this.xPct);\n return {\n stepBefore: {\n startValue: this.xVal[j - 2],\n step: this.xNumSteps[j - 2],\n highestStep: this.xHighestCompleteStep[j - 2]\n },\n thisStep: {\n startValue: this.xVal[j - 1],\n step: this.xNumSteps[j - 1],\n highestStep: this.xHighestCompleteStep[j - 1]\n },\n stepAfter: {\n startValue: this.xVal[j - 0],\n step: this.xNumSteps[j - 0],\n highestStep: this.xHighestCompleteStep[j - 0]\n }\n };\n };\n Spectrum.prototype.countStepDecimals = function () {\n var stepDecimals = this.xNumSteps.map(countDecimals);\n return Math.max.apply(null, stepDecimals);\n };\n // Outside testing\n Spectrum.prototype.convert = function (value) {\n return this.getStep(this.toStepping(value));\n };\n /*\tEvery input option is tested and parsed. This'll prevent\n\tendless validation in internal methods. These tests are\n\tstructured with an item for every option available. An\n\toption can be marked as required by setting the 'r' flag.\n\tThe testing function is provided with three arguments:\n\t\t- The provided value for the option;\n\t\t- A reference to the options object;\n\t\t- The name for the option;\n\n\tThe testing function returns false when an error is detected,\n\tor true when everything is OK. It can also modify the option\n\tobject, to make sure all values can be correctly looped elsewhere. */\n var defaultFormatter = {\n 'to': function (value) {\n return value !== undefined && value.toFixed(2);\n },\n 'from': Number\n };\n function validateFormat(entry) {\n // Any object with a to and from method is supported.\n if (isValidFormatter(entry)) {\n return true;\n }\n throw new Error('noUiSlider (' + VERSION + '): \\'format\\' requires \\'to\\' and \\'from\\' methods.');\n }\n function testStep(parsed, entry) {\n if (!isNumeric(entry)) {\n throw new Error('noUiSlider (' + VERSION + '): \\'step\\' is not numeric.');\n }\n // The step option can still be used to set stepping\n // for linear sliders. Overwritten if set in 'range'.\n parsed.singleStep = entry;\n }\n function testRange(parsed, entry) {\n // Filter incorrect input.\n if (typeof entry !== 'object' || Array.isArray(entry)) {\n throw new Error('noUiSlider (' + VERSION + '): \\'range\\' is not an object.');\n }\n // Catch missing start or end.\n if (entry.min === undefined || entry.max === undefined) {\n throw new Error('noUiSlider (' + VERSION + '): Missing \\'min\\' or \\'max\\' in \\'range\\'.');\n }\n // Catch equal start or end.\n if (entry.min === entry.max) {\n throw new Error('noUiSlider (' + VERSION + '): \\'range\\' \\'min\\' and \\'max\\' cannot be equal.');\n }\n parsed.spectrum = new Spectrum(entry, parsed.snap, parsed.singleStep);\n }\n function testStart(parsed, entry) {\n entry = asArray(entry);\n // Validate input. Values aren't tested, as the public .val method\n // will always provide a valid location.\n if (!Array.isArray(entry) || !entry.length) {\n throw new Error('noUiSlider (' + VERSION + '): \\'start\\' option is incorrect.');\n }\n // Store the number of handles.\n parsed.handles = entry.length;\n // When the slider is initialized, the .val method will\n // be called with the start options.\n parsed.start = entry;\n }\n function testSnap(parsed, entry) {\n // Enforce 100% stepping within subranges.\n parsed.snap = entry;\n if (typeof entry !== 'boolean') {\n throw new Error('noUiSlider (' + VERSION + '): \\'snap\\' option must be a boolean.');\n }\n }\n function testAnimate(parsed, entry) {\n // Enforce 100% stepping within subranges.\n parsed.animate = entry;\n if (typeof entry !== 'boolean') {\n throw new Error('noUiSlider (' + VERSION + '): \\'animate\\' option must be a boolean.');\n }\n }\n function testAnimationDuration(parsed, entry) {\n parsed.animationDuration = entry;\n if (typeof entry !== 'number') {\n throw new Error('noUiSlider (' + VERSION + '): \\'animationDuration\\' option must be a number.');\n }\n }\n function testConnect(parsed, entry) {\n var connect = [false];\n var i;\n // Map legacy options\n if (entry === 'lower') {\n entry = [\n true,\n false\n ];\n } else if (entry === 'upper') {\n entry = [\n false,\n true\n ];\n }\n // Handle boolean options\n if (entry === true || entry === false) {\n for (i = 1; i < parsed.handles; i++) {\n connect.push(entry);\n }\n connect.push(false);\n } // Reject invalid input\n else if (!Array.isArray(entry) || !entry.length || entry.length !== parsed.handles + 1) {\n throw new Error('noUiSlider (' + VERSION + '): \\'connect\\' option doesn\\'t match handle count.');\n } else {\n connect = entry;\n }\n parsed.connect = connect;\n }\n function testOrientation(parsed, entry) {\n // Set orientation to an a numerical value for easy\n // array selection.\n switch (entry) {\n case 'horizontal':\n parsed.ort = 0;\n break;\n case 'vertical':\n parsed.ort = 1;\n break;\n default:\n throw new Error('noUiSlider (' + VERSION + '): \\'orientation\\' option is invalid.');\n }\n }\n function testMargin(parsed, entry) {\n if (!isNumeric(entry)) {\n throw new Error('noUiSlider (' + VERSION + '): \\'margin\\' option must be numeric.');\n }\n // Issue #582\n if (entry === 0) {\n return;\n }\n parsed.margin = parsed.spectrum.getMargin(entry);\n if (!parsed.margin) {\n throw new Error('noUiSlider (' + VERSION + '): \\'margin\\' option is only supported on linear sliders.');\n }\n }\n function testLimit(parsed, entry) {\n if (!isNumeric(entry)) {\n throw new Error('noUiSlider (' + VERSION + '): \\'limit\\' option must be numeric.');\n }\n parsed.limit = parsed.spectrum.getMargin(entry);\n if (!parsed.limit || parsed.handles < 2) {\n throw new Error('noUiSlider (' + VERSION + '): \\'limit\\' option is only supported on linear sliders with 2 or more handles.');\n }\n }\n function testPadding(parsed, entry) {\n if (!isNumeric(entry)) {\n throw new Error('noUiSlider (' + VERSION + '): \\'padding\\' option must be numeric.');\n }\n if (entry === 0) {\n return;\n }\n parsed.padding = parsed.spectrum.getMargin(entry);\n if (!parsed.padding) {\n throw new Error('noUiSlider (' + VERSION + '): \\'padding\\' option is only supported on linear sliders.');\n }\n if (parsed.padding < 0) {\n throw new Error('noUiSlider (' + VERSION + '): \\'padding\\' option must be a positive number.');\n }\n if (parsed.padding >= 50) {\n throw new Error('noUiSlider (' + VERSION + '): \\'padding\\' option must be less than half the range.');\n }\n }\n function testDirection(parsed, entry) {\n // Set direction as a numerical value for easy parsing.\n // Invert connection for RTL sliders, so that the proper\n // handles get the connect/background classes.\n switch (entry) {\n case 'ltr':\n parsed.dir = 0;\n break;\n case 'rtl':\n parsed.dir = 1;\n break;\n default:\n throw new Error('noUiSlider (' + VERSION + '): \\'direction\\' option was not recognized.');\n }\n }\n function testBehaviour(parsed, entry) {\n // Make sure the input is a string.\n if (typeof entry !== 'string') {\n throw new Error('noUiSlider (' + VERSION + '): \\'behaviour\\' must be a string containing options.');\n }\n // Check if the string contains any keywords.\n // None are required.\n var tap = entry.indexOf('tap') >= 0;\n var drag = entry.indexOf('drag') >= 0;\n var fixed = entry.indexOf('fixed') >= 0;\n var snap = entry.indexOf('snap') >= 0;\n var hover = entry.indexOf('hover') >= 0;\n if (fixed) {\n if (parsed.handles !== 2) {\n throw new Error('noUiSlider (' + VERSION + '): \\'fixed\\' behaviour must be used with 2 handles');\n }\n // Use margin to enforce fixed state\n testMargin(parsed, parsed.start[1] - parsed.start[0]);\n }\n parsed.events = {\n tap: tap || snap,\n drag: drag,\n fixed: fixed,\n snap: snap,\n hover: hover\n };\n }\n function testMultitouch(parsed, entry) {\n parsed.multitouch = entry;\n if (typeof entry !== 'boolean') {\n throw new Error('noUiSlider (' + VERSION + '): \\'multitouch\\' option must be a boolean.');\n }\n }\n function testTooltips(parsed, entry) {\n if (entry === false) {\n return;\n } else if (entry === true) {\n parsed.tooltips = [];\n for (var i = 0; i < parsed.handles; i++) {\n parsed.tooltips.push(true);\n }\n } else {\n parsed.tooltips = asArray(entry);\n if (parsed.tooltips.length !== parsed.handles) {\n throw new Error('noUiSlider (' + VERSION + '): must pass a formatter for all handles.');\n }\n parsed.tooltips.forEach(function (formatter) {\n if (typeof formatter !== 'boolean' && (typeof formatter !== 'object' || typeof formatter.to !== 'function')) {\n throw new Error('noUiSlider (' + VERSION + '): \\'tooltips\\' must be passed a formatter or \\'false\\'.');\n }\n });\n }\n }\n function testAriaFormat(parsed, entry) {\n parsed.ariaFormat = entry;\n validateFormat(entry);\n }\n function testFormat(parsed, entry) {\n parsed.format = entry;\n validateFormat(entry);\n }\n function testCssPrefix(parsed, entry) {\n if (entry !== undefined && typeof entry !== 'string' && entry !== false) {\n throw new Error('noUiSlider (' + VERSION + '): \\'cssPrefix\\' must be a string or `false`.');\n }\n parsed.cssPrefix = entry;\n }\n function testCssClasses(parsed, entry) {\n if (entry !== undefined && typeof entry !== 'object') {\n throw new Error('noUiSlider (' + VERSION + '): \\'cssClasses\\' must be an object.');\n }\n if (typeof parsed.cssPrefix === 'string') {\n parsed.cssClasses = {};\n for (var key in entry) {\n if (!entry.hasOwnProperty(key)) {\n continue;\n }\n parsed.cssClasses[key] = parsed.cssPrefix + entry[key];\n }\n } else {\n parsed.cssClasses = entry;\n }\n }\n function testUseRaf(parsed, entry) {\n if (entry === true || entry === false) {\n parsed.useRequestAnimationFrame = entry;\n } else {\n throw new Error('noUiSlider (' + VERSION + '): \\'useRequestAnimationFrame\\' option should be true (default) or false.');\n }\n }\n // Test all developer settings and parse to assumption-safe values.\n function testOptions(options) {\n // To prove a fix for #537, freeze options here.\n // If the object is modified, an error will be thrown.\n // Object.freeze(options);\n var parsed = {\n margin: 0,\n limit: 0,\n padding: 0,\n animate: true,\n animationDuration: 300,\n ariaFormat: defaultFormatter,\n format: defaultFormatter\n };\n // Tests are executed in the order they are presented here.\n var tests = {\n 'step': {\n r: false,\n t: testStep\n },\n 'start': {\n r: true,\n t: testStart\n },\n 'connect': {\n r: true,\n t: testConnect\n },\n 'direction': {\n r: true,\n t: testDirection\n },\n 'snap': {\n r: false,\n t: testSnap\n },\n 'animate': {\n r: false,\n t: testAnimate\n },\n 'animationDuration': {\n r: false,\n t: testAnimationDuration\n },\n 'range': {\n r: true,\n t: testRange\n },\n 'orientation': {\n r: false,\n t: testOrientation\n },\n 'margin': {\n r: false,\n t: testMargin\n },\n 'limit': {\n r: false,\n t: testLimit\n },\n 'padding': {\n r: false,\n t: testPadding\n },\n 'behaviour': {\n r: true,\n t: testBehaviour\n },\n 'multitouch': {\n r: true,\n t: testMultitouch\n },\n 'ariaFormat': {\n r: false,\n t: testAriaFormat\n },\n 'format': {\n r: false,\n t: testFormat\n },\n 'tooltips': {\n r: false,\n t: testTooltips\n },\n 'cssPrefix': {\n r: false,\n t: testCssPrefix\n },\n 'cssClasses': {\n r: false,\n t: testCssClasses\n },\n 'useRequestAnimationFrame': {\n r: false,\n t: testUseRaf\n }\n };\n var defaults = {\n 'connect': false,\n 'direction': 'ltr',\n 'behaviour': 'tap',\n 'multitouch': false,\n 'orientation': 'horizontal',\n 'cssPrefix': 'noUi-',\n 'cssClasses': {\n target: 'target',\n base: 'base',\n origin: 'origin',\n handle: 'handle',\n handleLower: 'handle-lower',\n handleUpper: 'handle-upper',\n horizontal: 'horizontal',\n vertical: 'vertical',\n background: 'background',\n connect: 'connect',\n ltr: 'ltr',\n rtl: 'rtl',\n draggable: 'draggable',\n drag: 'state-drag',\n tap: 'state-tap',\n active: 'active',\n tooltip: 'tooltip',\n pips: 'pips',\n pipsHorizontal: 'pips-horizontal',\n pipsVertical: 'pips-vertical',\n marker: 'marker',\n markerHorizontal: 'marker-horizontal',\n markerVertical: 'marker-vertical',\n markerNormal: 'marker-normal',\n markerLarge: 'marker-large',\n markerSub: 'marker-sub',\n value: 'value',\n valueHorizontal: 'value-horizontal',\n valueVertical: 'value-vertical',\n valueNormal: 'value-normal',\n valueLarge: 'value-large',\n valueSub: 'value-sub'\n },\n 'useRequestAnimationFrame': true\n };\n // AriaFormat defaults to regular format, if any.\n if (options.format && !options.ariaFormat) {\n options.ariaFormat = options.format;\n }\n // Run all options through a testing mechanism to ensure correct\n // input. It should be noted that options might get modified to\n // be handled properly. E.g. wrapping integers in arrays.\n Object.keys(tests).forEach(function (name) {\n // If the option isn't set, but it is required, throw an error.\n if (options[name] === undefined && defaults[name] === undefined) {\n if (tests[name].r) {\n throw new Error('noUiSlider (' + VERSION + '): \\'' + name + '\\' is required.');\n }\n return true;\n }\n tests[name].t(parsed, options[name] === undefined ? defaults[name] : options[name]);\n });\n // Forward pips options\n parsed.pips = options.pips;\n var styles = [\n [\n 'left',\n 'top'\n ],\n [\n 'right',\n 'bottom'\n ]\n ];\n // Pre-define the styles.\n parsed.style = styles[parsed.dir][parsed.ort];\n parsed.styleOposite = styles[parsed.dir ? 0 : 1][parsed.ort];\n return parsed;\n }\n function closure(target, options, originalOptions) {\n var actions = getActions();\n var supportsTouchActionNone = getSupportsTouchActionNone();\n var supportsPassive = supportsTouchActionNone && getSupportsPassive();\n // All variables local to 'closure' are prefixed with 'scope_'\n var scope_Target = target;\n var scope_Locations = [];\n var scope_Base;\n var scope_Handles;\n var scope_HandleNumbers = [];\n var scope_ActiveHandlesCount = 0;\n var scope_Connects;\n var scope_Spectrum = options.spectrum;\n var scope_Values = [];\n var scope_Events = {};\n var scope_Self;\n var scope_Pips;\n var scope_Document = target.ownerDocument;\n var scope_DocumentElement = scope_Document.documentElement;\n var scope_Body = scope_Document.body;\n // Creates a node, adds it to target, returns the new node.\n function addNodeTo(target, className) {\n var div = scope_Document.createElement('div');\n if (className) {\n addClass(div, className);\n }\n target.appendChild(div);\n return div;\n }\n // Append a origin to the base\n function addOrigin(base, handleNumber) {\n var origin = addNodeTo(base, options.cssClasses.origin);\n var handle = addNodeTo(origin, options.cssClasses.handle);\n handle.setAttribute('data-handle', handleNumber);\n // https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex\n // 0 = focusable and reachable\n handle.setAttribute('tabindex', '0');\n handle.setAttribute('role', 'slider');\n handle.setAttribute('aria-orientation', options.ort ? 'vertical' : 'horizontal');\n if (handleNumber === 0) {\n addClass(handle, options.cssClasses.handleLower);\n } else if (handleNumber === options.handles - 1) {\n addClass(handle, options.cssClasses.handleUpper);\n }\n return origin;\n }\n // Insert nodes for connect elements\n function addConnect(base, add) {\n if (!add) {\n return false;\n }\n return addNodeTo(base, options.cssClasses.connect);\n }\n // Add handles to the slider base.\n function addElements(connectOptions, base) {\n scope_Handles = [];\n scope_Connects = [];\n scope_Connects.push(addConnect(base, connectOptions[0]));\n // [::::O====O====O====]\n // connectOptions = [0, 1, 1, 1]\n for (var i = 0; i < options.handles; i++) {\n // Keep a list of all added handles.\n scope_Handles.push(addOrigin(base, i));\n scope_HandleNumbers[i] = i;\n scope_Connects.push(addConnect(base, connectOptions[i + 1]));\n }\n }\n // Initialize a single slider.\n function addSlider(target) {\n // Apply classes and data to the target.\n addClass(target, options.cssClasses.target);\n if (options.dir === 0) {\n addClass(target, options.cssClasses.ltr);\n } else {\n addClass(target, options.cssClasses.rtl);\n }\n if (options.ort === 0) {\n addClass(target, options.cssClasses.horizontal);\n } else {\n addClass(target, options.cssClasses.vertical);\n }\n scope_Base = addNodeTo(target, options.cssClasses.base);\n }\n function addTooltip(handle, handleNumber) {\n if (!options.tooltips[handleNumber]) {\n return false;\n }\n return addNodeTo(handle.firstChild, options.cssClasses.tooltip);\n }\n // The tooltips option is a shorthand for using the 'update' event.\n function tooltips() {\n // Tooltips are added with options.tooltips in original order.\n var tips = scope_Handles.map(addTooltip);\n bindEvent('update', function (values, handleNumber, unencoded) {\n if (!tips[handleNumber]) {\n return;\n }\n var formattedValue = values[handleNumber];\n if (options.tooltips[handleNumber] !== true) {\n formattedValue = options.tooltips[handleNumber].to(unencoded[handleNumber]);\n }\n tips[handleNumber].innerHTML = formattedValue;\n });\n }\n function aria() {\n bindEvent('update', function (values, handleNumber, unencoded, tap, positions) {\n // Update Aria Values for all handles, as a change in one changes min and max values for the next.\n scope_HandleNumbers.forEach(function (handleNumber) {\n var handle = scope_Handles[handleNumber];\n var min = checkHandlePosition(scope_Locations, handleNumber, 0, true, true, true);\n var max = checkHandlePosition(scope_Locations, handleNumber, 100, true, true, true);\n var now = positions[handleNumber];\n var text = options.ariaFormat.to(unencoded[handleNumber]);\n handle.children[0].setAttribute('aria-valuemin', min.toFixed(1));\n handle.children[0].setAttribute('aria-valuemax', max.toFixed(1));\n handle.children[0].setAttribute('aria-valuenow', now.toFixed(1));\n handle.children[0].setAttribute('aria-valuetext', text);\n });\n });\n }\n function getGroup(mode, values, stepped) {\n // Use the range.\n if (mode === 'range' || mode === 'steps') {\n return scope_Spectrum.xVal;\n }\n if (mode === 'count') {\n if (!values) {\n throw new Error('noUiSlider (' + VERSION + '): \\'values\\' required for mode \\'count\\'.');\n }\n // Divide 0 - 100 in 'count' parts.\n var spread = 100 / (values - 1);\n var v;\n var i = 0;\n values = [];\n // List these parts and have them handled as 'positions'.\n while ((v = i++ * spread) <= 100) {\n values.push(v);\n }\n mode = 'positions';\n }\n if (mode === 'positions') {\n // Map all percentages to on-range values.\n return values.map(function (value) {\n return scope_Spectrum.fromStepping(stepped ? scope_Spectrum.getStep(value) : value);\n });\n }\n if (mode === 'values') {\n // If the value must be stepped, it needs to be converted to a percentage first.\n if (stepped) {\n return values.map(function (value) {\n // Convert to percentage, apply step, return to value.\n return scope_Spectrum.fromStepping(scope_Spectrum.getStep(scope_Spectrum.toStepping(value)));\n });\n }\n // Otherwise, we can simply use the values.\n return values;\n }\n }\n function generateSpread(density, mode, group) {\n function safeIncrement(value, increment) {\n // Avoid floating point variance by dropping the smallest decimal places.\n return (value + increment).toFixed(7) / 1;\n }\n var indexes = {};\n var firstInRange = scope_Spectrum.xVal[0];\n var lastInRange = scope_Spectrum.xVal[scope_Spectrum.xVal.length - 1];\n var ignoreFirst = false;\n var ignoreLast = false;\n var prevPct = 0;\n // Create a copy of the group, sort it and filter away all duplicates.\n group = unique(group.slice().sort(function (a, b) {\n return a - b;\n }));\n // Make sure the range starts with the first element.\n if (group[0] !== firstInRange) {\n group.unshift(firstInRange);\n ignoreFirst = true;\n }\n // Likewise for the last one.\n if (group[group.length - 1] !== lastInRange) {\n group.push(lastInRange);\n ignoreLast = true;\n }\n group.forEach(function (current, index) {\n // Get the current step and the lower + upper positions.\n var step;\n var i;\n var q;\n var low = current;\n var high = group[index + 1];\n var newPct;\n var pctDifference;\n var pctPos;\n var type;\n var steps;\n var realSteps;\n var stepsize;\n // When using 'steps' mode, use the provided steps.\n // Otherwise, we'll step on to the next subrange.\n if (mode === 'steps') {\n step = scope_Spectrum.xNumSteps[index];\n }\n // Default to a 'full' step.\n if (!step) {\n step = high - low;\n }\n // Low can be 0, so test for false. If high is undefined,\n // we are at the last subrange. Index 0 is already handled.\n if (low === false || high === undefined) {\n return;\n }\n // Make sure step isn't 0, which would cause an infinite loop (#654)\n step = Math.max(step, 1e-7);\n // Find all steps in the subrange.\n for (i = low; i <= high; i = safeIncrement(i, step)) {\n // Get the percentage value for the current step,\n // calculate the size for the subrange.\n newPct = scope_Spectrum.toStepping(i);\n pctDifference = newPct - prevPct;\n steps = pctDifference / density;\n realSteps = Math.round(steps);\n // This ratio represents the ammount of percentage-space a point indicates.\n // For a density 1 the points/percentage = 1. For density 2, that percentage needs to be re-devided.\n // Round the percentage offset to an even number, then divide by two\n // to spread the offset on both sides of the range.\n stepsize = pctDifference / realSteps;\n // Divide all points evenly, adding the correct number to this subrange.\n // Run up to <= so that 100% gets a point, event if ignoreLast is set.\n for (q = 1; q <= realSteps; q += 1) {\n // The ratio between the rounded value and the actual size might be ~1% off.\n // Correct the percentage offset by the number of points\n // per subrange. density = 1 will result in 100 points on the\n // full range, 2 for 50, 4 for 25, etc.\n pctPos = prevPct + q * stepsize;\n indexes[pctPos.toFixed(5)] = [\n 'x',\n 0\n ];\n }\n // Determine the point type.\n type = group.indexOf(i) > -1 ? 1 : mode === 'steps' ? 2 : 0;\n // Enforce the 'ignoreFirst' option by overwriting the type for 0.\n if (!index && ignoreFirst) {\n type = 0;\n }\n if (!(i === high && ignoreLast)) {\n // Mark the 'type' of this point. 0 = plain, 1 = real value, 2 = step value.\n indexes[newPct.toFixed(5)] = [\n i,\n type\n ];\n }\n // Update the percentage count.\n prevPct = newPct;\n }\n });\n return indexes;\n }\n function addMarking(spread, filterFunc, formatter) {\n var element = scope_Document.createElement('div');\n var valueSizeClasses = [\n options.cssClasses.valueNormal,\n options.cssClasses.valueLarge,\n options.cssClasses.valueSub\n ];\n var markerSizeClasses = [\n options.cssClasses.markerNormal,\n options.cssClasses.markerLarge,\n options.cssClasses.markerSub\n ];\n var valueOrientationClasses = [\n options.cssClasses.valueHorizontal,\n options.cssClasses.valueVertical\n ];\n var markerOrientationClasses = [\n options.cssClasses.markerHorizontal,\n options.cssClasses.markerVertical\n ];\n addClass(element, options.cssClasses.pips);\n addClass(element, options.ort === 0 ? options.cssClasses.pipsHorizontal : options.cssClasses.pipsVertical);\n function getClasses(type, source) {\n var a = source === options.cssClasses.value;\n var orientationClasses = a ? valueOrientationClasses : markerOrientationClasses;\n var sizeClasses = a ? valueSizeClasses : markerSizeClasses;\n return source + ' ' + orientationClasses[options.ort] + ' ' + sizeClasses[type];\n }\n function addSpread(offset, values) {\n // Apply the filter function, if it is set.\n values[1] = values[1] && filterFunc ? filterFunc(values[0], values[1]) : values[1];\n // Add a marker for every point\n var node = addNodeTo(element, false);\n node.className = getClasses(values[1], options.cssClasses.marker);\n node.style[options.style] = offset + '%';\n // Values are only appended for points marked '1' or '2'.\n if (values[1]) {\n node = addNodeTo(element, false);\n node.className = getClasses(values[1], options.cssClasses.value);\n node.style[options.style] = offset + '%';\n node.innerText = formatter.to(values[0]);\n }\n }\n // Append all points.\n Object.keys(spread).forEach(function (a) {\n addSpread(a, spread[a]);\n });\n return element;\n }\n function removePips() {\n if (scope_Pips) {\n removeElement(scope_Pips);\n scope_Pips = null;\n }\n }\n function pips(grid) {\n // Fix #669\n removePips();\n var mode = grid.mode;\n var density = grid.density || 1;\n var filter = grid.filter || false;\n var values = grid.values || false;\n var stepped = grid.stepped || false;\n var group = getGroup(mode, values, stepped);\n var spread = generateSpread(density, mode, group);\n var format = grid.format || { to: Math.round };\n scope_Pips = scope_Target.appendChild(addMarking(spread, filter, format));\n return scope_Pips;\n }\n // Shorthand for base dimensions.\n function baseSize() {\n var rect = scope_Base.getBoundingClientRect(), alt = 'offset' + [\n 'Width',\n 'Height'\n ][options.ort];\n return options.ort === 0 ? rect.width || scope_Base[alt] : rect.height || scope_Base[alt];\n }\n // Handler for attaching events trough a proxy.\n function attachEvent(events, element, callback, data) {\n // This function can be used to 'filter' events to the slider.\n // element is a node, not a nodeList\n var method = function (e) {\n if (scope_Target.hasAttribute('disabled')) {\n return false;\n }\n // Stop if an active 'tap' transition is taking place.\n if (hasClass(scope_Target, options.cssClasses.tap)) {\n return false;\n }\n e = fixEvent(e, data.pageOffset, data.target || element);\n // Handle reject of multitouch\n if (!e) {\n return false;\n }\n // Ignore right or middle clicks on start #454\n if (events === actions.start && e.buttons !== undefined && e.buttons > 1) {\n return false;\n }\n // Ignore right or middle clicks on start #454\n if (data.hover && e.buttons) {\n return false;\n }\n // 'supportsPassive' is only true if a browser also supports touch-action: none in CSS.\n // iOS safari does not, so it doesn't get to benefit from passive scrolling. iOS does support\n // touch-action: manipulation, but that allows panning, which breaks\n // sliders after zooming/on non-responsive pages.\n // See: https://bugs.webkit.org/show_bug.cgi?id=133112\n if (!supportsPassive) {\n e.preventDefault();\n }\n e.calcPoint = e.points[options.ort];\n // Call the event handler with the event [ and additional data ].\n callback(e, data);\n };\n var methods = [];\n // Bind a closure on the target for every event type.\n events.split(' ').forEach(function (eventName) {\n element.addEventListener(eventName, method, supportsPassive ? { passive: true } : false);\n methods.push([\n eventName,\n method\n ]);\n });\n return methods;\n }\n // Provide a clean event with standardized offset values.\n function fixEvent(e, pageOffset, target) {\n // Filter the event to register the type, which can be\n // touch, mouse or pointer. Offset changes need to be\n // made on an event specific basis.\n var touch = e.type.indexOf('touch') === 0;\n var mouse = e.type.indexOf('mouse') === 0;\n var pointer = e.type.indexOf('pointer') === 0;\n var x;\n var y;\n // IE10 implemented pointer events with a prefix;\n if (e.type.indexOf('MSPointer') === 0) {\n pointer = true;\n }\n // In the event that multitouch is activated, the only thing one handle should be concerned\n // about is the touches that originated on top of it.\n if (touch && options.multitouch) {\n // Returns true if a touch originated on the target.\n var isTouchOnTarget = function (touch) {\n return touch.target === target || target.contains(touch.target);\n };\n // In the case of touchstart events, we need to make sure there is still no more than one\n // touch on the target so we look amongst all touches.\n if (e.type === 'touchstart') {\n var targetTouches = Array.prototype.filter.call(e.touches, isTouchOnTarget);\n // Do not support more than one touch per handle.\n if (targetTouches.length > 1) {\n return false;\n }\n x = targetTouches[0].pageX;\n y = targetTouches[0].pageY;\n } else {\n // In the other cases, find on changedTouches is enough.\n var targetTouch = Array.prototype.find.call(e.changedTouches, isTouchOnTarget);\n // Cancel if the target touch has not moved.\n if (!targetTouch) {\n return false;\n }\n x = targetTouch.pageX;\n y = targetTouch.pageY;\n }\n } else if (touch) {\n // Fix bug when user touches with two or more fingers on mobile devices.\n // It's useful when you have two or more sliders on one page,\n // that can be touched simultaneously.\n // #649, #663, #668\n if (e.touches.length > 1) {\n return false;\n }\n // noUiSlider supports one movement at a time,\n // so we can select the first 'changedTouch'.\n x = e.changedTouches[0].pageX;\n y = e.changedTouches[0].pageY;\n }\n pageOffset = pageOffset || getPageOffset(scope_Document);\n if (mouse || pointer) {\n x = e.clientX + pageOffset.x;\n y = e.clientY + pageOffset.y;\n }\n e.pageOffset = pageOffset;\n e.points = [\n x,\n y\n ];\n e.cursor = mouse || pointer;\n // Fix #435\n return e;\n }\n // Translate a coordinate in the document to a percentage on the slider\n function calcPointToPercentage(calcPoint) {\n var location = calcPoint - offset(scope_Base, options.ort);\n var proposal = location * 100 / baseSize();\n return options.dir ? 100 - proposal : proposal;\n }\n // Find handle closest to a certain percentage on the slider\n function getClosestHandle(proposal) {\n var closest = 100;\n var handleNumber = false;\n scope_Handles.forEach(function (handle, index) {\n // Disabled handles are ignored\n if (handle.hasAttribute('disabled')) {\n return;\n }\n var pos = Math.abs(scope_Locations[index] - proposal);\n if (pos < closest) {\n handleNumber = index;\n closest = pos;\n }\n });\n return handleNumber;\n }\n // Moves handle(s) by a percentage\n // (bool, % to move, [% where handle started, ...], [index in scope_Handles, ...])\n function moveHandles(upward, proposal, locations, handleNumbers) {\n var proposals = locations.slice();\n var b = [\n !upward,\n upward\n ];\n var f = [\n upward,\n !upward\n ];\n // Copy handleNumbers so we don't change the dataset\n handleNumbers = handleNumbers.slice();\n // Check to see which handle is 'leading'.\n // If that one can't move the second can't either.\n if (upward) {\n handleNumbers.reverse();\n }\n // Step 1: get the maximum percentage that any of the handles can move\n if (handleNumbers.length > 1) {\n handleNumbers.forEach(function (handleNumber, o) {\n var to = checkHandlePosition(proposals, handleNumber, proposals[handleNumber] + proposal, b[o], f[o], false);\n // Stop if one of the handles can't move.\n if (to === false) {\n proposal = 0;\n } else {\n proposal = to - proposals[handleNumber];\n proposals[handleNumber] = to;\n }\n });\n } // If using one handle, check backward AND forward\n else {\n b = f = [true];\n }\n var state = false;\n // Step 2: Try to set the handles with the found percentage\n handleNumbers.forEach(function (handleNumber, o) {\n state = setHandle(handleNumber, locations[handleNumber] + proposal, b[o], f[o]) || state;\n });\n // Step 3: If a handle moved, fire events\n if (state) {\n handleNumbers.forEach(function (handleNumber) {\n fireEvent('update', handleNumber);\n fireEvent('slide', handleNumber);\n });\n }\n }\n // External event handling\n function fireEvent(eventName, handleNumber, tap) {\n Object.keys(scope_Events).forEach(function (targetEvent) {\n var eventType = targetEvent.split('.')[0];\n if (eventName === eventType) {\n scope_Events[targetEvent].forEach(function (callback) {\n callback.call(// Use the slider public API as the scope ('this')\n scope_Self, // Return values as array, so arg_1[arg_2] is always valid.\n scope_Values.map(options.format.to), // Handle index, 0 or 1\n handleNumber, // Unformatted slider values\n scope_Values.slice(), // Event is fired by tap, true or false\n tap || false, // Left offset of the handle, in relation to the slider\n scope_Locations.slice());\n });\n }\n });\n }\n // Fire 'end' when a mouse or pen leaves the document.\n function documentLeave(event, data) {\n if (event.type === 'mouseout' && event.target.nodeName === 'HTML' && event.relatedTarget === null) {\n eventEnd(event, data);\n }\n }\n // Handle movement on document for handle and range drag.\n function eventMove(event, data) {\n // Fix #498\n // Check value of .buttons in 'start' to work around a bug in IE10 mobile (data.buttonsProperty).\n // https://connect.microsoft.com/IE/feedback/details/927005/mobile-ie10-windows-phone-buttons-property-of-pointermove-event-always-zero\n // IE9 has .buttons and .which zero on mousemove.\n // Firefox breaks the spec MDN defines.\n if (navigator.appVersion.indexOf('MSIE 9') === -1 && event.buttons === 0 && data.buttonsProperty !== 0) {\n return eventEnd(event, data);\n }\n // Check if we are moving up or down\n var movement = (options.dir ? -1 : 1) * (event.calcPoint - data.startCalcPoint);\n // Convert the movement into a percentage of the slider width/height\n var proposal = movement * 100 / data.baseSize;\n moveHandles(movement > 0, proposal, data.locations, data.handleNumbers);\n }\n // Unbind move events on document, call callbacks.\n function eventEnd(event, data) {\n // The handle is no longer active, so remove the class.\n if (data.handle) {\n removeClass(data.handle, options.cssClasses.active);\n scope_ActiveHandlesCount -= 1;\n }\n // Unbind the move and end events, which are added on 'start'.\n data.listeners.forEach(function (c) {\n scope_DocumentElement.removeEventListener(c[0], c[1]);\n });\n if (scope_ActiveHandlesCount === 0) {\n // Remove dragging class.\n removeClass(scope_Target, options.cssClasses.drag);\n setZindex();\n // Remove cursor styles and text-selection events bound to the body.\n if (event.cursor) {\n scope_Body.style.cursor = '';\n scope_Body.removeEventListener('selectstart', preventDefault);\n }\n }\n data.handleNumbers.forEach(function (handleNumber) {\n fireEvent('change', handleNumber);\n fireEvent('set', handleNumber);\n fireEvent('end', handleNumber);\n });\n }\n // Bind move events on document.\n function eventStart(event, data) {\n var handle;\n if (data.handleNumbers.length === 1) {\n var handleOrigin = scope_Handles[data.handleNumbers[0]];\n // Ignore 'disabled' handles\n if (handleOrigin.hasAttribute('disabled')) {\n return false;\n }\n handle = handleOrigin.children[0];\n scope_ActiveHandlesCount += 1;\n // Mark the handle as 'active' so it can be styled.\n addClass(handle, options.cssClasses.active);\n }\n // A drag should never propagate up to the 'tap' event.\n event.stopPropagation();\n // Record the event listeners.\n var listeners = [];\n // Attach the move and end events.\n var moveEvent = attachEvent(actions.move, scope_DocumentElement, eventMove, {\n // The event target has changed so we need to propagate the original one so that we keep\n // relying on it to extract target touches.\n target: event.target,\n handle: handle,\n listeners: listeners,\n startCalcPoint: event.calcPoint,\n baseSize: baseSize(),\n pageOffset: event.pageOffset,\n handleNumbers: data.handleNumbers,\n buttonsProperty: event.buttons,\n locations: scope_Locations.slice()\n });\n var endEvent = attachEvent(actions.end, scope_DocumentElement, eventEnd, {\n target: event.target,\n handle: handle,\n listeners: listeners,\n handleNumbers: data.handleNumbers\n });\n var outEvent = attachEvent('mouseout', scope_DocumentElement, documentLeave, {\n target: event.target,\n handle: handle,\n listeners: listeners,\n handleNumbers: data.handleNumbers\n });\n // We want to make sure we pushed the listeners in the listener list rather than creating\n // a new one as it has already been passed to the event handlers.\n listeners.push.apply(listeners, moveEvent.concat(endEvent, outEvent));\n // Text selection isn't an issue on touch devices,\n // so adding cursor styles can be skipped.\n if (event.cursor) {\n // Prevent the 'I' cursor and extend the range-drag cursor.\n scope_Body.style.cursor = getComputedStyle(event.target).cursor;\n // Mark the target with a dragging state.\n if (scope_Handles.length > 1) {\n addClass(scope_Target, options.cssClasses.drag);\n }\n // Prevent text selection when dragging the handles.\n // In noUiSlider <= 9.2.0, this was handled by calling preventDefault on mouse/touch start/move,\n // which is scroll blocking. The selectstart event is supported by FireFox starting from version 52,\n // meaning the only holdout is iOS Safari. This doesn't matter: text selection isn't triggered there.\n // The 'cursor' flag is false.\n // See: http://caniuse.com/#search=selectstart\n scope_Body.addEventListener('selectstart', preventDefault, false);\n }\n data.handleNumbers.forEach(function (handleNumber) {\n fireEvent('start', handleNumber);\n });\n }\n // Move closest handle to tapped location.\n function eventTap(event) {\n // The tap event shouldn't propagate up\n event.stopPropagation();\n var proposal = calcPointToPercentage(event.calcPoint);\n var handleNumber = getClosestHandle(proposal);\n // Tackle the case that all handles are 'disabled'.\n if (handleNumber === false) {\n return false;\n }\n // Flag the slider as it is now in a transitional state.\n // Transition takes a configurable amount of ms (default 300). Re-enable the slider after that.\n if (!options.events.snap) {\n addClassFor(scope_Target, options.cssClasses.tap, options.animationDuration);\n }\n setHandle(handleNumber, proposal, true, true);\n setZindex();\n fireEvent('slide', handleNumber, true);\n fireEvent('update', handleNumber, true);\n fireEvent('change', handleNumber, true);\n fireEvent('set', handleNumber, true);\n if (options.events.snap) {\n eventStart(event, { handleNumbers: [handleNumber] });\n }\n }\n // Fires a 'hover' event for a hovered mouse/pen position.\n function eventHover(event) {\n var proposal = calcPointToPercentage(event.calcPoint);\n var to = scope_Spectrum.getStep(proposal);\n var value = scope_Spectrum.fromStepping(to);\n Object.keys(scope_Events).forEach(function (targetEvent) {\n if ('hover' === targetEvent.split('.')[0]) {\n scope_Events[targetEvent].forEach(function (callback) {\n callback.call(scope_Self, value);\n });\n }\n });\n }\n // Attach events to several slider parts.\n function bindSliderEvents(behaviour) {\n // Attach the standard drag event to the handles.\n if (!behaviour.fixed) {\n scope_Handles.forEach(function (handle, index) {\n // These events are only bound to the visual handle\n // element, not the 'real' origin element.\n attachEvent(actions.start, handle.children[0], eventStart, { handleNumbers: [index] });\n });\n }\n // Attach the tap event to the slider base.\n if (behaviour.tap) {\n attachEvent(actions.start, scope_Base, eventTap, {});\n }\n // Fire hover events\n if (behaviour.hover) {\n attachEvent(actions.move, scope_Base, eventHover, { hover: true });\n }\n // Make the range draggable.\n if (behaviour.drag) {\n scope_Connects.forEach(function (connect, index) {\n if (connect === false || index === 0 || index === scope_Connects.length - 1) {\n return;\n }\n var handleBefore = scope_Handles[index - 1];\n var handleAfter = scope_Handles[index];\n var eventHolders = [connect];\n addClass(connect, options.cssClasses.draggable);\n // When the range is fixed, the entire range can\n // be dragged by the handles. The handle in the first\n // origin will propagate the start event upward,\n // but it needs to be bound manually on the other.\n if (behaviour.fixed) {\n eventHolders.push(handleBefore.children[0]);\n eventHolders.push(handleAfter.children[0]);\n }\n eventHolders.forEach(function (eventHolder) {\n attachEvent(actions.start, eventHolder, eventStart, {\n handles: [\n handleBefore,\n handleAfter\n ],\n handleNumbers: [\n index - 1,\n index\n ]\n });\n });\n });\n }\n }\n // Split out the handle positioning logic so the Move event can use it, too\n function checkHandlePosition(reference, handleNumber, to, lookBackward, lookForward, getValue) {\n // For sliders with multiple handles, limit movement to the other handle.\n // Apply the margin option by adding it to the handle positions.\n if (scope_Handles.length > 1) {\n if (lookBackward && handleNumber > 0) {\n to = Math.max(to, reference[handleNumber - 1] + options.margin);\n }\n if (lookForward && handleNumber < scope_Handles.length - 1) {\n to = Math.min(to, reference[handleNumber + 1] - options.margin);\n }\n }\n // The limit option has the opposite effect, limiting handles to a\n // maximum distance from another. Limit must be > 0, as otherwise\n // handles would be unmoveable.\n if (scope_Handles.length > 1 && options.limit) {\n if (lookBackward && handleNumber > 0) {\n to = Math.min(to, reference[handleNumber - 1] + options.limit);\n }\n if (lookForward && handleNumber < scope_Handles.length - 1) {\n to = Math.max(to, reference[handleNumber + 1] - options.limit);\n }\n }\n // The padding option keeps the handles a certain distance from the\n // edges of the slider. Padding must be > 0.\n if (options.padding) {\n if (handleNumber === 0) {\n to = Math.max(to, options.padding);\n }\n if (handleNumber === scope_Handles.length - 1) {\n to = Math.min(to, 100 - options.padding);\n }\n }\n to = scope_Spectrum.getStep(to);\n // Limit percentage to the 0 - 100 range\n to = limit(to);\n // Return false if handle can't move\n if (to === reference[handleNumber] && !getValue) {\n return false;\n }\n return to;\n }\n function toPct(pct) {\n return pct + '%';\n }\n // Updates scope_Locations and scope_Values, updates visual state\n function updateHandlePosition(handleNumber, to) {\n // Update locations.\n scope_Locations[handleNumber] = to;\n // Convert the value to the slider stepping/range.\n scope_Values[handleNumber] = scope_Spectrum.fromStepping(to);\n // Called synchronously or on the next animationFrame\n var stateUpdate = function () {\n scope_Handles[handleNumber].style[options.style] = toPct(to);\n updateConnect(handleNumber);\n updateConnect(handleNumber + 1);\n };\n // Set the handle to the new position.\n // Use requestAnimationFrame for efficient painting.\n // No significant effect in Chrome, Edge sees dramatic performace improvements.\n // Option to disable is useful for unit tests, and single-step debugging.\n if (window.requestAnimationFrame && options.useRequestAnimationFrame) {\n window.requestAnimationFrame(stateUpdate);\n } else {\n stateUpdate();\n }\n }\n function setZindex() {\n scope_HandleNumbers.forEach(function (handleNumber) {\n // Handles before the slider middle are stacked later = higher,\n // Handles after the middle later is lower\n // [[7] [8] .......... | .......... [5] [4]\n var dir = scope_Locations[handleNumber] > 50 ? -1 : 1;\n var zIndex = 3 + (scope_Handles.length + dir * handleNumber);\n scope_Handles[handleNumber].childNodes[0].style.zIndex = zIndex;\n });\n }\n // Test suggested values and apply margin, step.\n function setHandle(handleNumber, to, lookBackward, lookForward) {\n to = checkHandlePosition(scope_Locations, handleNumber, to, lookBackward, lookForward, false);\n if (to === false) {\n return false;\n }\n updateHandlePosition(handleNumber, to);\n return true;\n }\n // Updates style attribute for connect nodes\n function updateConnect(index) {\n // Skip connects set to false\n if (!scope_Connects[index]) {\n return;\n }\n var l = 0;\n var h = 100;\n if (index !== 0) {\n l = scope_Locations[index - 1];\n }\n if (index !== scope_Connects.length - 1) {\n h = scope_Locations[index];\n }\n scope_Connects[index].style[options.style] = toPct(l);\n scope_Connects[index].style[options.styleOposite] = toPct(100 - h);\n }\n // ...\n function setValue(to, handleNumber) {\n // Setting with null indicates an 'ignore'.\n // Inputting 'false' is invalid.\n if (to === null || to === false) {\n return;\n }\n // If a formatted number was passed, attemt to decode it.\n if (typeof to === 'number') {\n to = String(to);\n }\n to = options.format.from(to);\n // Request an update for all links if the value was invalid.\n // Do so too if setting the handle fails.\n if (to !== false && !isNaN(to)) {\n setHandle(handleNumber, scope_Spectrum.toStepping(to), false, false);\n }\n }\n // Set the slider value.\n function valueSet(input, fireSetEvent) {\n var values = asArray(input);\n var isInit = scope_Locations[0] === undefined;\n // Event fires by default\n fireSetEvent = fireSetEvent === undefined ? true : !!fireSetEvent;\n values.forEach(setValue);\n // Animation is optional.\n // Make sure the initial values were set before using animated placement.\n if (options.animate && !isInit) {\n addClassFor(scope_Target, options.cssClasses.tap, options.animationDuration);\n }\n // Now that all base values are set, apply constraints\n scope_HandleNumbers.forEach(function (handleNumber) {\n setHandle(handleNumber, scope_Locations[handleNumber], true, false);\n });\n setZindex();\n scope_HandleNumbers.forEach(function (handleNumber) {\n fireEvent('update', handleNumber);\n // Fire the event only for handles that received a new value, as per #579\n if (values[handleNumber] !== null && fireSetEvent) {\n fireEvent('set', handleNumber);\n }\n });\n }\n // Reset slider to initial values\n function valueReset(fireSetEvent) {\n valueSet(options.start, fireSetEvent);\n }\n // Get the slider value.\n function valueGet() {\n var values = scope_Values.map(options.format.to);\n // If only one handle is used, return a single value.\n if (values.length === 1) {\n return values[0];\n }\n return values;\n }\n // Removes classes from the root and empties it.\n function destroy() {\n for (var key in options.cssClasses) {\n if (!options.cssClasses.hasOwnProperty(key)) {\n continue;\n }\n removeClass(scope_Target, options.cssClasses[key]);\n }\n while (scope_Target.firstChild) {\n scope_Target.removeChild(scope_Target.firstChild);\n }\n delete scope_Target.noUiSlider;\n }\n // Get the current step size for the slider.\n function getCurrentStep() {\n // Check all locations, map them to their stepping point.\n // Get the step point, then find it in the input list.\n return scope_Locations.map(function (location, index) {\n var nearbySteps = scope_Spectrum.getNearbySteps(location);\n var value = scope_Values[index];\n var increment = nearbySteps.thisStep.step;\n var decrement = null;\n // If the next value in this step moves into the next step,\n // the increment is the start of the next step - the current value\n if (increment !== false) {\n if (value + increment > nearbySteps.stepAfter.startValue) {\n increment = nearbySteps.stepAfter.startValue - value;\n }\n }\n // If the value is beyond the starting point\n if (value > nearbySteps.thisStep.startValue) {\n decrement = nearbySteps.thisStep.step;\n } else if (nearbySteps.stepBefore.step === false) {\n decrement = false;\n } // If a handle is at the start of a step, it always steps back into the previous step first\n else {\n decrement = value - nearbySteps.stepBefore.highestStep;\n }\n // Now, if at the slider edges, there is not in/decrement\n if (location === 100) {\n increment = null;\n } else if (location === 0) {\n decrement = null;\n }\n // As per #391, the comparison for the decrement step can have some rounding issues.\n var stepDecimals = scope_Spectrum.countStepDecimals();\n // Round per #391\n if (increment !== null && increment !== false) {\n increment = Number(increment.toFixed(stepDecimals));\n }\n if (decrement !== null && decrement !== false) {\n decrement = Number(decrement.toFixed(stepDecimals));\n }\n return [\n decrement,\n increment\n ];\n });\n }\n // Attach an event to this slider, possibly including a namespace\n function bindEvent(namespacedEvent, callback) {\n scope_Events[namespacedEvent] = scope_Events[namespacedEvent] || [];\n scope_Events[namespacedEvent].push(callback);\n // If the event bound is 'update,' fire it immediately for all handles.\n if (namespacedEvent.split('.')[0] === 'update') {\n scope_Handles.forEach(function (a, index) {\n fireEvent('update', index);\n });\n }\n }\n // Undo attachment of event\n function removeEvent(namespacedEvent) {\n var event = namespacedEvent && namespacedEvent.split('.')[0];\n var namespace = event && namespacedEvent.substring(event.length);\n Object.keys(scope_Events).forEach(function (bind) {\n var tEvent = bind.split('.')[0], tNamespace = bind.substring(tEvent.length);\n if ((!event || event === tEvent) && (!namespace || namespace === tNamespace)) {\n delete scope_Events[bind];\n }\n });\n }\n // Updateable: margin, limit, padding, step, range, animate, snap\n function updateOptions(optionsToUpdate, fireSetEvent) {\n // Spectrum is created using the range, snap, direction and step options.\n // 'snap' and 'step' can be updated.\n // If 'snap' and 'step' are not passed, they should remain unchanged.\n var v = valueGet();\n var updateAble = [\n 'margin',\n 'limit',\n 'padding',\n 'range',\n 'animate',\n 'snap',\n 'step',\n 'format'\n ];\n // Only change options that we're actually passed to update.\n updateAble.forEach(function (name) {\n if (optionsToUpdate[name] !== undefined) {\n originalOptions[name] = optionsToUpdate[name];\n }\n });\n var newOptions = testOptions(originalOptions);\n // Load new options into the slider state\n updateAble.forEach(function (name) {\n if (optionsToUpdate[name] !== undefined) {\n options[name] = newOptions[name];\n }\n });\n scope_Spectrum = newOptions.spectrum;\n // Limit, margin and padding depend on the spectrum but are stored outside of it. (#677)\n options.margin = newOptions.margin;\n options.limit = newOptions.limit;\n options.padding = newOptions.padding;\n // Update pips, removes existing.\n if (options.pips) {\n pips(options.pips);\n }\n // Invalidate the current positioning so valueSet forces an update.\n scope_Locations = [];\n valueSet(optionsToUpdate.start || v, fireSetEvent);\n }\n // Throw an error if the slider was already initialized.\n if (scope_Target.noUiSlider) {\n throw new Error('noUiSlider (' + VERSION + '): Slider was already initialized.');\n }\n // Create the base element, initialise HTML and set classes.\n // Add handles and connect elements.\n addSlider(scope_Target);\n addElements(options.connect, scope_Base);\n scope_Self = {\n destroy: destroy,\n steps: getCurrentStep,\n on: bindEvent,\n off: removeEvent,\n get: valueGet,\n set: valueSet,\n reset: valueReset,\n // Exposed for unit testing, don't use this in your application.\n __moveHandles: function (a, b, c) {\n moveHandles(a, b, scope_Locations, c);\n },\n options: originalOptions,\n // Issue #600, #678\n updateOptions: updateOptions,\n target: scope_Target,\n // Issue #597\n removePips: removePips,\n pips: pips // Issue #594\n };\n // Attach user events.\n bindSliderEvents(options.events);\n // Use the public value method to set the start values.\n valueSet(options.start);\n if (options.pips) {\n pips(options.pips);\n }\n if (options.tooltips) {\n tooltips();\n }\n aria();\n return scope_Self;\n }\n // Run the standard initializer\n function initialize(target, originalOptions) {\n if (!target || !target.nodeName) {\n throw new Error('noUiSlider (' + VERSION + '): create requires a single element, got: ' + target);\n }\n // Test the options and create the slider environment;\n var options = testOptions(originalOptions, target);\n var api = closure(target, options, originalOptions);\n target.noUiSlider = api;\n return api;\n }\n // Use an object instead of a function for future expansibility;\n return {\n version: VERSION,\n create: initialize\n };\n}));","/*!\n * Pikaday\n *\n * Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/dbushell/Pikaday\n */\n(function (root, factory) {\n 'use strict';\n var moment;\n if (typeof exports === 'object') {\n // CommonJS module\n // Load moment.js as an optional dependency\n try {\n moment = require('moment' /* moment */);\n } catch (e) {\n }\n module.exports = factory(moment);\n } else if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(function (req) {\n // Load moment.js as an optional dependency\n var id = 'moment';\n try {\n moment = req(id);\n } catch (e) {\n }\n return factory(moment);\n });\n } else {\n root.Pikaday = factory(root.moment);\n }\n}(this, function (moment) {\n 'use strict';\n /**\n * feature detection and helper functions\n */\n var hasMoment = typeof moment === 'function', hasEventListeners = !!window.addEventListener, document = window.document, sto = window.setTimeout, addEvent = function (el, e, callback, capture) {\n if (hasEventListeners) {\n el.addEventListener(e, callback, !!capture);\n } else {\n el.attachEvent('on' + e, callback);\n }\n }, removeEvent = function (el, e, callback, capture) {\n if (hasEventListeners) {\n el.removeEventListener(e, callback, !!capture);\n } else {\n el.detachEvent('on' + e, callback);\n }\n }, trim = function (str) {\n return str.trim ? str.trim() : str.replace(/^\\s+|\\s+$/g, '');\n }, hasClass = function (el, cn) {\n return (' ' + el.className + ' ').indexOf(' ' + cn + ' ') !== -1;\n }, addClass = function (el, cn) {\n if (!hasClass(el, cn)) {\n el.className = el.className === '' ? cn : el.className + ' ' + cn;\n }\n }, removeClass = function (el, cn) {\n el.className = trim((' ' + el.className + ' ').replace(' ' + cn + ' ', ' '));\n }, isArray = function (obj) {\n return /Array/.test(Object.prototype.toString.call(obj));\n }, isDate = function (obj) {\n return /Date/.test(Object.prototype.toString.call(obj)) && !isNaN(obj.getTime());\n }, isWeekend = function (date) {\n var day = date.getDay();\n return day === 0 || day === 6;\n }, isLeapYear = function (year) {\n // solution by Matti Virkkunen: http://stackoverflow.com/a/4881951\n return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;\n }, getDaysInMonth = function (year, month) {\n return [\n 31,\n isLeapYear(year) ? 29 : 28,\n 31,\n 30,\n 31,\n 30,\n 31,\n 31,\n 30,\n 31,\n 30,\n 31\n ][month];\n }, setToStartOfDay = function (date) {\n if (isDate(date))\n date.setHours(0, 0, 0, 0);\n }, compareDates = function (a, b) {\n // weak date comparison (use setToStartOfDay(date) to ensure correct result)\n return a.getTime() === b.getTime();\n }, extend = function (to, from, overwrite) {\n var prop, hasProp;\n for (prop in from) {\n hasProp = to[prop] !== undefined;\n if (hasProp && typeof from[prop] === 'object' && from[prop] !== null && from[prop].nodeName === undefined) {\n if (isDate(from[prop])) {\n if (overwrite) {\n to[prop] = new Date(from[prop].getTime());\n }\n } else if (isArray(from[prop])) {\n if (overwrite) {\n to[prop] = from[prop].slice(0);\n }\n } else {\n to[prop] = extend({}, from[prop], overwrite);\n }\n } else if (overwrite || !hasProp) {\n to[prop] = from[prop];\n }\n }\n return to;\n }, fireEvent = function (el, eventName, data) {\n var ev;\n if (document.createEvent) {\n ev = document.createEvent('HTMLEvents');\n ev.initEvent(eventName, true, false);\n ev = extend(ev, data);\n el.dispatchEvent(ev);\n } else if (document.createEventObject) {\n ev = document.createEventObject();\n ev = extend(ev, data);\n el.fireEvent('on' + eventName, ev);\n }\n }, adjustCalendar = function (calendar) {\n if (calendar.month < 0) {\n calendar.year -= Math.ceil(Math.abs(calendar.month) / 12);\n calendar.month += 12;\n }\n if (calendar.month > 11) {\n calendar.year += Math.floor(Math.abs(calendar.month) / 12);\n calendar.month -= 12;\n }\n return calendar;\n },\n /**\n * defaults and localisation\n */\n defaults = {\n // bind the picker to a form field\n field: null,\n // automatically show/hide the picker on `field` focus (default `true` if `field` is set)\n bound: undefined,\n // position of the datepicker, relative to the field (default to bottom & left)\n // ('bottom' & 'left' keywords are not used, 'top' & 'right' are modifier on the bottom/left position)\n position: 'bottom left',\n // automatically fit in the viewport even if it means repositioning from the position option\n reposition: true,\n // the default output format for `.toString()` and `field` value\n format: 'YYYY-MM-DD',\n // the toString function which gets passed a current date object and format\n // and returns a string\n toString: null,\n // used to create date object from current input string\n parse: null,\n // the initial date to view when first opened\n defaultDate: null,\n // make the `defaultDate` the initial selected value\n setDefaultDate: false,\n // first day of week (0: Sunday, 1: Monday etc)\n firstDay: 0,\n // the default flag for moment's strict date parsing\n formatStrict: false,\n // the minimum/earliest date that can be selected\n minDate: null,\n // the maximum/latest date that can be selected\n maxDate: null,\n // number of years either side, or array of upper/lower range\n yearRange: 10,\n // show week numbers at head of row\n showWeekNumber: false,\n // Week picker mode\n pickWholeWeek: false,\n // used internally (don't config outside)\n minYear: 0,\n maxYear: 9999,\n minMonth: undefined,\n maxMonth: undefined,\n startRange: null,\n endRange: null,\n isRTL: false,\n // Additional text to append to the year in the calendar title\n yearSuffix: '',\n // Render the month after year in the calendar title\n showMonthAfterYear: false,\n // Render days of the calendar grid that fall in the next or previous month\n showDaysInNextAndPreviousMonths: false,\n // Allows user to select days that fall in the next or previous month\n enableSelectionDaysInNextAndPreviousMonths: false,\n // how many months are visible\n numberOfMonths: 1,\n // when numberOfMonths is used, this will help you to choose where the main calendar will be (default `left`, can be set to `right`)\n // only used for the first display or when a selected date is not visible\n mainCalendar: 'left',\n // Specify a DOM element to render the calendar in\n container: undefined,\n // Blur field when date is selected\n blurFieldOnSelect: true,\n // internationalization\n i18n: {\n previousMonth: 'Previous Month',\n nextMonth: 'Next Month',\n months: [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December'\n ],\n weekdays: [\n 'Sunday',\n 'Monday',\n 'Tuesday',\n 'Wednesday',\n 'Thursday',\n 'Friday',\n 'Saturday'\n ],\n weekdaysShort: [\n 'Sun',\n 'Mon',\n 'Tue',\n 'Wed',\n 'Thu',\n 'Fri',\n 'Sat'\n ]\n },\n // Theme Classname\n theme: null,\n // events array\n events: [],\n // callback function\n onSelect: null,\n onOpen: null,\n onClose: null,\n onDraw: null\n },\n /**\n * templating functions to abstract HTML rendering\n */\n renderDayName = function (opts, day, abbr) {\n day += opts.firstDay;\n while (day >= 7) {\n day -= 7;\n }\n return abbr ? opts.i18n.weekdaysShort[day] : opts.i18n.weekdays[day];\n }, renderDay = function (opts) {\n var arr = [];\n var ariaSelected = 'false';\n if (opts.isEmpty) {\n if (opts.showDaysInNextAndPreviousMonths) {\n arr.push('is-outside-current-month');\n if (!opts.enableSelectionDaysInNextAndPreviousMonths) {\n arr.push('is-selection-disabled');\n }\n } else {\n return '