commit 5eb01895171d6ef47dc9c1038645bfd6c5a49fd4 Author: Chris Punches Date: Mon Jan 29 22:46:03 2018 -0500 sometimes I do weird things diff --git a/content.php b/content.php new file mode 100644 index 0000000..02664fd --- /dev/null +++ b/content.php @@ -0,0 +1,15 @@ + + + diff --git a/css/icomoon.css b/css/icomoon.css new file mode 100644 index 0000000..8ec2f58 --- /dev/null +++ b/css/icomoon.css @@ -0,0 +1,101 @@ +@font-face{ + font-family:icomoon; + src:url('../fonts/icomoon.ttf') format('truetype'); + font-weight:400; + font-style:normal +} +[class*=" icon-"],[class^=icon-]{ + font-family:icomoon!important; + speak:none; + font-style:normal; + font-weight:400; + font-variant:normal; + text-transform:none; + line-height:1; + -webkit-font-smoothing:antialiased; + -moz-osx-font-smoothing:grayscale +} +.icon-close:before{ + content:"\e5cd" +} +.icon-list:before{ + content:"\e896" +} +.icon-menu:before{ + content:"\e5d2" +} +.icon-person:before{ + content:"\e7fd" +} +.icon-search:before{ + content:"\e8b6" +} +.icon-share:before{ + content:"\e80d" +} +.icon-creative-commons:before{ + content:"\e918" +} +.icon-chevron-down:before{ + content:"\e900" +} +.icon-chevron-left:before{ + content:"\e901" +} +.icon-chevron-right:before{ + content:"\e902" +} +.icon-chevron-thin-down:before{ + content:"\e903" +} +.icon-chevron-thin-left:before{ + content:"\e904" +} +.icon-chevron-thin-right:before{ + content:"\e905" +} +.icon-chevron-thin-up:before{ + content:"\e906" +} +.icon-chevron-up:before{ + content:"\e907" +} +.icon-mail:before{ + content:"\e90d" +} +.icon-feed:before{ + content:"\e90a" +} +.icon-behance:before{ + content:"\e90c" +} +.icon-weibo:before{ + content:"\e90e" +} +.icon-dribbble:before{ + content:"\e916" +} +.icon-facebook:before{ + content:"\e90f" +} +.icon-github:before{ + content:"\e910" +} +.icon-google:before{ + content:"\e911" +} +.icon-instagram:before{ + content:"\e912" +} +.icon-linkedin:before{ + content:"\e917" +} +.icon-pinterest:before{ + content:"\e913" +} +.icon-tumblr:before{ + content:"\e914" +} +.icon-twitter:before{ + content:"\e915" +} diff --git a/fonts/icomoon.ttf b/fonts/icomoon.ttf new file mode 100644 index 0000000..524884c Binary files /dev/null and b/fonts/icomoon.ttf differ diff --git a/footer.php b/footer.php new file mode 100755 index 0000000..1c5d060 --- /dev/null +++ b/footer.php @@ -0,0 +1,6 @@ + + + diff --git a/functions.php b/functions.php new file mode 100644 index 0000000..4dc61a7 --- /dev/null +++ b/functions.php @@ -0,0 +1,228 @@ + '000000', + 'default-image' => get_template_directory_uri() . '/images/background.jpg', +); +add_theme_support( 'custom-background', $args ); + + +/** + * Adds the Customize page to the WordPress admin area + */ +function example_customizer_menu() { + add_theme_page( 'Customize', 'Customize', 'edit_theme_options', 'customize.php' ); +} +add_action( 'admin_menu', 'example_customizer_menu' ); + +/** + * Adds the individual sections, settings, and controls to the theme customizer + */ +function copyright_notice( $wp_customize ) { + $wp_customize->add_section( + 'Intellectual Property', + array( + 'title' => 'Intellectual Property', + 'description' => 'Steal stuff from Chris', + 'priority' => 35, + ) + ); + + $wp_customize->add_setting( + 'copyright_textbox', + array( + 'default' => '2018 SILO GROUP, LTD', + ) + ); + + $wp_customize->add_control( + 'copyright_textbox', + array( + 'label' => 'Copyright Notice', + 'section' => 'Intellectual Property', + 'type' => 'text', + ) + ); +} +add_action( 'customize_register', 'copyright_notice' ); + +function sidebar_setup( $wp_customize ) { + $section_name = "Sidebar Setup"; + + $wp_customize->add_section( + $section_name, + array( + 'title' => $section_name, + 'description' => 'Steal stuff from Chris', + 'priority' => 35, + ) + ); + + $wp_customize->add_setting( 'organization_name_textbox', array( 'default' => 'SILO GROUP, LTD' ) ); + $wp_customize->add_setting( 'organization_summary', array( 'default' => 'SILO GROUP, LTD' ) ); + $wp_customize->add_setting( 'nameplate_text', array( 'default' => 'Christopher M. Punches' ) ); + $wp_customize->add_setting( 'nameplate_url', array( 'default' => 'http://www.silogroup.org' ) ); + $wp_customize->add_setting( 'news_feed', array( 'default' => 'http://news.silogroup.org' ) ); + $wp_customize->add_setting( 'github_url', array( 'default' => 'https://github.com/cmpunches' ) ); + $wp_customize->add_setting( 'linkedin_url', array( 'default' => 'https://www.linkedin.com/in/cmpunches' ) ); + $wp_customize->add_setting( 'email_address', array( 'default' => 'punches.chris@gmail.com' ) ); + $wp_customize->add_setting( 'bio_logo', array() ); + + $wp_customize->add_control( 'organization_name_textbox', array('label' => 'Organization Name', 'section' => $section_name, 'type' => 'text' )); + $wp_customize->add_control( 'organization_summary', array('label' => 'Organization Summary', 'section' => $section_name, 'type' => 'text' )); + $wp_customize->add_control( 'nameplate_text', array('label' => 'Nameplate Text', 'section' => $section_name, 'type' => 'text' )); + $wp_customize->add_control( 'nameplate_url', array('label' => 'Nameplate Link', 'section' => $section_name, 'type' => 'text' )); + $wp_customize->add_control( 'github_url', array('label' => 'Github Profile', 'section' => $section_name, 'type' => 'text' )); + $wp_customize->add_control( 'linkedin_url', array('label' => 'LinkedIn Profile', 'section' => $section_name, 'type' => 'text' )); + $wp_customize->add_control( 'email_address', array('label' => 'Email Address', 'section' => $section_name, 'type' => 'text' )); + $wp_customize->add_control( 'news_feed', array('label' => 'News Feed URL', 'section' => $section_name, 'type' => 'text' )); + + + $wp_customize->add_control( + new WP_Customize_Image_Control( + $wp_customize, + 'bio_logo', + array( + 'label' => __( 'Bio Logo', 'Antikythera' ), + 'section' => $section_name, + 'settings' => 'bio_logo' + ) + ) + ); + +} +add_action( 'customize_register', 'sidebar_setup' ); + +function titles_setup( $wp_customize ) { + $section_name = "Titles Theming"; + + $wp_customize->add_section( + $section_name, + array( + 'title' => $section_name, + 'description' => 'Title, Subtitle and Footer Theming Options', + 'priority' => 36, + ) + ); + + $wp_customize->add_setting( 'Title Color', array() ); + $wp_customize->add_setting( 'Title Shadow Color', array() ); + + $wp_customize->add_setting( 'Subtitle Color', array() ); + $wp_customize->add_setting( 'Subtitle Shadow Color', array() ); + + $wp_customize->add_setting( 'Footer Color', array() ); + $wp_customize->add_setting( 'Footer Shadow Color', array() ); + + + $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, + 'Title Color', + array( + 'label' => __('Title Color', 'Antikythera' ), + 'section' => $section_name, + 'settings' => 'Title Color', + ) ) ); + + $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, + 'Title Shadow Color', + array( + 'label' => __('Title Shadow Color', 'Antikythera' ), + 'section' => $section_name, + 'settings' => 'Title Shadow Color', + ) ) ); + + $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, + 'Subtitle Color', + array( + 'label' => __('Subtitle Color', 'Antikythera' ), + 'section' => $section_name, + 'settings' => 'Subtitle Color', + ) ) ); + + $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, + 'Subtitle Shadow Color', + array( + 'label' => __('Subtitle Shadow Color', 'Antikythera' ), + 'section' => $section_name, + 'settings' => 'Subtitle Shadow Color', + ) ) ); + + $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, + 'Footer Color', + array( + 'label' => __('Footer Color', 'Antikythera' ), + 'section' => $section_name, + 'settings' => 'Footer Color', + ) ) ); + + $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, + 'Footer Shadow Color', + array( + 'label' => __('Footer Shadow Color', 'Antikythera' ), + 'section' => $section_name, + 'settings' => 'Footer Shadow Color', + ) ) ); +} +add_action( 'customize_register', 'titles_setup' ); +function custom_titles() { + $title_color = get_theme_mod( 'Title Color' ); + $title_color_s = get_theme_mod( 'Title Shadow Color' ); + + $subtitle_color = get_theme_mod( 'Subtitle Color' ); + $subtitle_color_s = get_theme_mod( 'Subtitle Shadow Color' ); + + $footer_color = get_theme_mod( 'Footer Color' ); + $footer_color_s= get_theme_mod( 'Footer Shadow Color' ); + + ?> + + + 200, + 'width' => 350, + 'flex-width' => true, + ) ); + +} +add_action( 'after_setup_theme', 'theme_prefix_setup' ); +?> diff --git a/header.php b/header.php new file mode 100755 index 0000000..1a7d995 --- /dev/null +++ b/header.php @@ -0,0 +1,49 @@ + + + + + + SILO GROUP + + + + + + + + + + + + + diff --git a/images/avatar.jpg b/images/avatar.jpg new file mode 100755 index 0000000..6f4663c Binary files /dev/null and b/images/avatar.jpg differ diff --git a/images/background.jpg b/images/background.jpg new file mode 100644 index 0000000..78a1b66 Binary files /dev/null and b/images/background.jpg differ diff --git a/images/sidebar-bg.png b/images/sidebar-bg.png new file mode 100644 index 0000000..b92b757 Binary files /dev/null and b/images/sidebar-bg.png differ diff --git a/images/silo-logo.png b/images/silo-logo.png new file mode 100755 index 0000000..24be301 Binary files /dev/null and b/images/silo-logo.png differ diff --git a/index.php b/index.php new file mode 100755 index 0000000..6442075 --- /dev/null +++ b/index.php @@ -0,0 +1,59 @@ + + + +
+ +
+
+
+ + + + + + +
+ + + + + +
+ + + + + +
+
+ + + + + + \ No newline at end of file diff --git a/js/app.js b/js/app.js new file mode 100644 index 0000000..6b81818 --- /dev/null +++ b/js/app.js @@ -0,0 +1,50 @@ +var customSearch; +! function(e) { + "use strict"; + var a = function(a) { + var o = e(this), + i = o.attr("data-toggle"), + s = "toc" === i ? "bio" : "toc"; + o.hasClass("active") || (t(o, a), t(o.siblings(".dark-btn"), a), e(".site-" + s).toggleClass("show"), setTimeout(function() { + e(".site-" + s).hide(), e(".site-" + i).show(), setTimeout(function() { + e(".site-" + i).toggleClass("show") + }, 50) + }, 240)) + }, + t = function(e, a) { + a.preventDefault(), !0 === e.hasClass("active") ? e.removeClass("active") : e.addClass("active") + }, + o = function(a) { + a.preventDefault(); + var t = e(this), + o = a.data && a.data.correction ? a.data.correction : 0; + e("html, body").animate({ + scrollTop: e(t.attr("href")).offset().top - o + }, 400) + }, + i = function(a) { + var o = e(this); + t(o, a), e("body").addClass("bio-open") + }, + s = function(a) { + e("body").removeClass("bio-open"), t(e(".site-nav-switch"), a) + }; + e(function() { + e(".post-list, #footer, #page-nav").addClass("show"), e(".site-nav-switch").on("click", i), e(".site-wrapper .overlay").on("click", s), e(".window-nav, .go-comment, .site-toc a").on("click", o), e(".sidebar-switch .dark-btn").on("click", a), setTimeout(function() { + e("#loading-bar-wrapper").fadeOut(500) + }, 300), "google" === SEARCH_SERVICE ? customSearch = new GoogleCustomSearch({ + apiKey: GOOGLE_CUSTOM_SEARCH_API_KEY, + engineId: GOOGLE_CUSTOM_SEARCH_ENGINE_ID + }) : "algolia" === SEARCH_SERVICE ? customSearch = new AlgoliaSearch({ + apiKey: ALGOLIA_API_KEY, + appId: ALGOLIA_APP_ID, + indexName: ALGOLIA_INDEX_NAME + }) : "hexo" === SEARCH_SERVICE ? customSearch = new HexoSearch : "azure" === SEARCH_SERVICE ? customSearch = new AzureSearch({ + serviceName: AZURE_SERVICE_NAME, + indexName: AZURE_INDEX_NAME, + queryKey: AZURE_QUERY_KEY + }) : "baidu" === SEARCH_SERVICE && (customSearch = new BaiduSearch({ + apiId: BAIDU_API_ID + })) + }) +}(jQuery); \ No newline at end of file diff --git a/js/st.js b/js/st.js new file mode 100644 index 0000000..321e0b4 --- /dev/null +++ b/js/st.js @@ -0,0 +1,82 @@ +!function(){"use strict";window.__st_moment=window.moment,window.__st_rome=window.rome}(),/*! + * jQuery JavaScript Library v1.11.1 + * http://jquery.com/ + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * + * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors + * Released under the MIT license + * http://jquery.org/license + * + * Date: 2014-05-01T17:42Z + */ +function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function n(t){var e=t.length,n=rt.type(t);return"function"!==n&&!rt.isWindow(t)&&(!(1!==t.nodeType||!e)||"array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function i(t,e,n){if(rt.isFunction(e))return rt.grep(t,function(t,i){return!!e.call(t,i,t)!==n});if(e.nodeType)return rt.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(ht.test(e))return rt.filter(e,t,n);e=rt.filter(e,t)}return rt.grep(t,function(t){return rt.inArray(t,e)>=0!==n})}function r(t,e){do{t=t[e]}while(t&&1!==t.nodeType);return t}function o(t){var e=vt[t]={};return rt.each(t.match(_t)||[],function(t,n){e[n]=!0}),e}function s(){dt.addEventListener?(dt.removeEventListener("DOMContentLoaded",a,!1),t.removeEventListener("load",a,!1)):(dt.detachEvent("onreadystatechange",a),t.detachEvent("onload",a))}function a(){(dt.addEventListener||"load"===event.type||"complete"===dt.readyState)&&(s(),rt.ready())}function l(t,e,n){if(n===undefined&&1===t.nodeType){var i="data-"+e.replace(Tt,"-$1").toLowerCase();if("string"==typeof(n=t.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:xt.test(n)?rt.parseJSON(n):n)}catch(t){}rt.data(t,e,n)}else n=undefined}return n}function u(t){var e;for(e in t)if(("data"!==e||!rt.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function c(t,e,n,i){if(rt.acceptData(t)){var r,o,s=rt.expando,a=t.nodeType,l=a?rt.cache:t,u=a?t[s]:t[s]&&s;if(u&&l[u]&&(i||l[u].data)||n!==undefined||"string"!=typeof e)return u||(u=a?t[s]=Y.pop()||rt.guid++:s),l[u]||(l[u]=a?{}:{toJSON:rt.noop}),"object"!=typeof e&&"function"!=typeof e||(i?l[u]=rt.extend(l[u],e):l[u].data=rt.extend(l[u].data,e)),o=l[u],i||(o.data||(o.data={}),o=o.data),n!==undefined&&(o[rt.camelCase(e)]=n),"string"==typeof e?null==(r=o[e])&&(r=o[rt.camelCase(e)]):r=o,r}}function p(t,e,n){if(rt.acceptData(t)){var i,r,o=t.nodeType,s=o?rt.cache:t,a=o?t[rt.expando]:rt.expando;if(s[a]){if(e&&(i=n?s[a]:s[a].data)){rt.isArray(e)?e=e.concat(rt.map(e,rt.camelCase)):e in i?e=[e]:(e=rt.camelCase(e),e=e in i?[e]:e.split(" ")),r=e.length;for(;r--;)delete i[e[r]];if(n?!u(i):!rt.isEmptyObject(i))return}(n||(delete s[a].data,u(s[a])))&&(o?rt.cleanData([t],!0):nt.deleteExpando||s!=s.window?delete s[a]:s[a]=null)}}}function h(){return!0}function f(){return!1}function d(){try{return dt.activeElement}catch(t){}}function y(t){var e=Lt.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}function m(t,e){var n,i,r=0,o=typeof t.getElementsByTagName!==St?t.getElementsByTagName(e||"*"):typeof t.querySelectorAll!==St?t.querySelectorAll(e||"*"):undefined;if(!o)for(o=[],n=t.childNodes||t;null!=(i=n[r]);r++)!e||rt.nodeName(i,e)?o.push(i):rt.merge(o,m(i,e));return e===undefined||e&&rt.nodeName(t,e)?rt.merge([t],o):o}function g(t){Rt.test(t.type)&&(t.defaultChecked=t.checked)}function _(t,e){return rt.nodeName(t,"table")&&rt.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function v(t){return t.type=(null!==rt.find.attr(t,"type"))+"/"+t.type,t}function w(t){var e=zt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function b(t,e){for(var n,i=0;null!=(n=t[i]);i++)rt._data(n,"globalEval",!e||rt._data(e[i],"globalEval"))}function S(t,e){if(1===e.nodeType&&rt.hasData(t)){var n,i,r,o=rt._data(t),s=rt._data(e,o),a=o.events;if(a){delete s.handle,s.events={};for(n in a)for(i=0,r=a[n].length;i")).appendTo(e.documentElement),e=(Jt[0].contentWindow||Jt[0].contentDocument).document,e.write(),e.close(),n=T(t,e),Jt.detach()),Xt[t]=n),n}function D(t,e){return{get:function(){var n=t();if(null!=n)return n?void delete this.get:(this.get=e).apply(this,arguments)}}}function F(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),i=e,r=pe.length;r--;)if((e=pe[r]+n)in t)return e;return i}function I(t,e){for(var n,i,r,o=[],s=0,a=t.length;s=0&&n=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==rt.type(t)||t.nodeType||rt.isWindow(t))return!1;try{if(t.constructor&&!et.call(t,"constructor")&&!et.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(nt.ownLast)for(e in t)return et.call(t,e);for(e in t);return e===undefined||et.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?Z[tt.call(t)]||"object":typeof t},globalEval:function(e){e&&rt.trim(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(st,"ms-").replace(at,lt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,i){var r=0,o=t.length,s=n(t);if(i){if(s)for(;rS.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function i(t){return t[$]=!0,t}function r(t){var e=A.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),i=t.length;i--;)S.attrHandle[n[i]]=e}function s(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||Y)-(~t.sourceIndex||Y);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function a(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function l(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function u(t){return i(function(e){return e=+e,i(function(n,i){for(var r,o=t([],n.length,e),s=o.length;s--;)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))})})}function c(t){return t&&typeof t.getElementsByTagName!==W&&t}function p(){}function h(t){for(var e=0,n=t.length,i="";e1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function y(t,n,i){for(var r=0,o=n.length;r-1&&(i[u]=!(s[u]=p))}}else v=m(v===s?v.splice(d,v.length):v),o?o(null,s,v,l):Z.apply(s,v)})}function _(t){for(var e,n,i,r=t.length,o=S.relative[t[0].type],s=o||S.relative[" "],a=o?1:0,l=f(function(t){return t===e},s,!0),u=f(function(t){return et.call(e,t)>-1},s,!0),c=[function(t,n,i){return!o&&(i||n!==I)||((e=n).nodeType?l(t,n,i):u(t,n,i))}];a1&&d(c),a>1&&h(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(lt,"$1"),n,a0,o=t.length>0,s=function(i,s,a,l,u){var c,p,h,f=0,d="0",y=i&&[],g=[],_=I,v=i||o&&S.find.TAG("*",u),w=q+=null==_?1:Math.random()||.1,b=v.length;for(u&&(I=s!==A&&s);d!==b&&null!=(c=v[d]);d++){if(o&&c){for(p=0;h=t[p++];)if(h(c,s,a)){l.push(c);break}u&&(q=w)}r&&((c=!h&&c)&&f--,i&&y.push(c))}if(f+=d,r&&d!==f){for(p=0;h=n[p++];)h(y,g,s,a);if(i){if(f>0)for(;d--;)y[d]||g[d]||(g[d]=J.call(l));g=m(g)}Z.apply(l,g),u&&!i&&g.length>0&&f+n.length>1&&e.uniqueSort(l)}return u&&(q=w,I=_),y};return r?i(s):s}var w,b,S,x,T,C,D,F,I,R,M,E,A,O,k,L,Q,N,j,$="sizzle"+-new Date,P=t.document,q=0,U=0,B=n(),H=n(),V=n(),z=function(t,e){return t===e&&(M=!0),0},W=typeof undefined,Y=1<<31,G={}.hasOwnProperty,K=[],J=K.pop,X=K.push,Z=K.push,tt=K.slice,et=K.indexOf||function(t){for(var e=0,n=this.length;e+~]|"+it+")"+it+"*"),pt=new RegExp("="+it+"*([^\\]'\"]*?)"+it+"*\\]","g"),ht=new RegExp(at),ft=new RegExp("^"+ot+"$"),dt={ID:new RegExp("^#("+rt+")"),CLASS:new RegExp("^\\.("+rt+")"),TAG:new RegExp("^("+rt.replace("w","w*")+")"),ATTR:new RegExp("^"+st),PSEUDO:new RegExp("^"+at),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+it+"*(even|odd|(([+-]|)(\\d*)n|)"+it+"*(?:([+-]|)"+it+"*(\\d+)|))"+it+"*\\)|)","i"),bool:new RegExp("^(?:"+nt+")$","i"),needsContext:new RegExp("^"+it+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+it+"*((?:-\\d)?\\d*)"+it+"*\\)|)(?=[^-]|$)","i")},yt=/^(?:input|select|textarea|button)$/i,mt=/^h\d$/i,gt=/^[^{]+\{\s*\[native \w/,_t=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,vt=/[+~]/,wt=/'|\\/g,bt=new RegExp("\\\\([\\da-f]{1,6}"+it+"?|("+it+")|.)","ig"),St=function(t,e,n){var i="0x"+e-65536;return i!==i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)};try{Z.apply(K=tt.call(P.childNodes),P.childNodes),K[P.childNodes.length].nodeType}catch(t){Z={apply:K.length?function(t,e){X.apply(t,tt.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}b=e.support={},T=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},E=e.setDocument=function(t){var e,n=t?t.ownerDocument||t:P,i=n.defaultView;return n!==A&&9===n.nodeType&&n.documentElement?(A=n,O=n.documentElement,k=!T(n),i&&i!==i.top&&(i.addEventListener?i.addEventListener("unload",function(){E()},!1):i.attachEvent&&i.attachEvent("onunload",function(){E()})),b.attributes=r(function(t){return t.className="i",!t.getAttribute("className")}),b.getElementsByTagName=r(function(t){return t.appendChild(n.createComment("")),!t.getElementsByTagName("*").length}),b.getElementsByClassName=gt.test(n.getElementsByClassName)&&r(function(t){return t.innerHTML="
",t.firstChild.className="i",2===t.getElementsByClassName("i").length}),b.getById=r(function(t){return O.appendChild(t).id=$,!n.getElementsByName||!n.getElementsByName($).length}),b.getById?(S.find.ID=function(t,e){if(typeof e.getElementById!==W&&k){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},S.filter.ID=function(t){var e=t.replace(bt,St);return function(t){return t.getAttribute("id")===e}}):(delete S.find.ID,S.filter.ID=function(t){var e=t.replace(bt,St);return function(t){var n=typeof t.getAttributeNode!==W&&t.getAttributeNode("id");return n&&n.value===e}}),S.find.TAG=b.getElementsByTagName?function(t,e){if(typeof e.getElementsByTagName!==W)return e.getElementsByTagName(t)}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},S.find.CLASS=b.getElementsByClassName&&function(t,e){if(typeof e.getElementsByClassName!==W&&k)return e.getElementsByClassName(t)},Q=[],L=[],(b.qsa=gt.test(n.querySelectorAll))&&(r(function(t){t.innerHTML="",t.querySelectorAll("[msallowclip^='']").length&&L.push("[*^$]="+it+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||L.push("\\["+it+"*(?:value|"+nt+")"),t.querySelectorAll(":checked").length||L.push(":checked")}),r(function(t){var e=n.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&L.push("name"+it+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||L.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),L.push(",.*:")})),(b.matchesSelector=gt.test(N=O.matches||O.webkitMatchesSelector||O.mozMatchesSelector||O.oMatchesSelector||O.msMatchesSelector))&&r(function(t){b.disconnectedMatch=N.call(t,"div"),N.call(t,"[s!='']:x"),Q.push("!=",at)}),L=L.length&&new RegExp(L.join("|")),Q=Q.length&&new RegExp(Q.join("|")),e=gt.test(O.compareDocumentPosition),j=e||gt.test(O.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},z=e?function(t,e){if(t===e)return M=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i?i:(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&i||!b.sortDetached&&e.compareDocumentPosition(t)===i?t===n||t.ownerDocument===P&&j(P,t)?-1:e===n||e.ownerDocument===P&&j(P,e)?1:R?et.call(R,t)-et.call(R,e):0:4&i?-1:1)}:function(t,e){if(t===e)return M=!0,0;var i,r=0,o=t.parentNode,a=e.parentNode,l=[t],u=[e];if(!o||!a)return t===n?-1:e===n?1:o?-1:a?1:R?et.call(R,t)-et.call(R,e):0;if(o===a)return s(t,e);for(i=t;i=i.parentNode;)l.unshift(i);for(i=e;i=i.parentNode;)u.unshift(i);for(;l[r]===u[r];)r++;return r?s(l[r],u[r]):l[r]===P?-1:u[r]===P?1:0},n):A},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==A&&E(t),n=n.replace(pt,"='$1']"),b.matchesSelector&&k&&(!Q||!Q.test(n))&&(!L||!L.test(n)))try{var i=N.call(t,n);if(i||b.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return e(n,A,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==A&&E(t),j(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==A&&E(t);var n=S.attrHandle[e.toLowerCase()],i=n&&G.call(S.attrHandle,e.toLowerCase())?n(t,e,!k):undefined;return i!==undefined?i:b.attributes||!k?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],i=0,r=0;if(M=!b.detectDuplicates,R=!b.sortStable&&t.slice(0),t.sort(z),M){for(;e=t[r++];)e===t[r]&&(i=n.push(r));for(;i--;)t.splice(n[i],1)}return R=null,t},x=e.getText=function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=x(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=x(e);return n},S=e.selectors={cacheLength:50,createPseudo:i,match:dt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(bt,St),t[3]=(t[3]||t[4]||t[5]||"").replace(bt,St),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return dt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&ht.test(n)&&(e=C(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(bt,St).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=B[t+" "];return e||(e=new RegExp("(^|"+it+")"+t+"("+it+"|$)"))&&B(t,function(t){return e.test("string"==typeof t.className&&t.className||typeof t.getAttribute!==W&&t.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(r){var o=e.attr(r,t);return null==o?"!="===n:!n||(o+="","="===n?o===i:"!="===n?o!==i:"^="===n?i&&0===o.indexOf(i):"*="===n?i&&o.indexOf(i)>-1:"$="===n?i&&o.slice(-i.length)===i:"~="===n?(" "+o+" ").indexOf(i)>-1:"|="===n&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var u,c,p,h,f,d,y=o!==s?"nextSibling":"previousSibling",m=e.parentNode,g=a&&e.nodeName.toLowerCase(),_=!l&&!a;if(m){if(o){for(;y;){for(p=e;p=p[y];)if(a?p.nodeName.toLowerCase()===g:1===p.nodeType)return!1;d=y="only"===t&&!d&&"nextSibling"}return!0}if(d=[s?m.firstChild:m.lastChild],s&&_){for(c=m[$]||(m[$]={}),u=c[t]||[],f=u[0]===q&&u[1],h=u[0]===q&&u[2],p=f&&m.childNodes[f];p=++f&&p&&p[y]||(h=f=0)||d.pop();)if(1===p.nodeType&&++h&&p===e){c[t]=[q,f,h];break}}else if(_&&(u=(e[$]||(e[$]={}))[t])&&u[0]===q)h=u[1];else for(;(p=++f&&p&&p[y]||(h=f=0)||d.pop())&&((a?p.nodeName.toLowerCase()!==g:1!==p.nodeType)||!++h||(_&&((p[$]||(p[$]={}))[t]=[q,h]),p!==e)););return(h-=r)===i||h%i==0&&h/i>=0}}},PSEUDO:function(t,n){var r,o=S.pseudos[t]||S.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[$]?o(n):o.length>1?(r=[t,t,"",n],S.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,e){for(var i,r=o(t,n),s=r.length;s--;)i=et.call(t,r[s]),t[i]=!(e[i]=r[s])}):function(t){return o(t,0,r)}):o}},pseudos:{not:i(function(t){var e=[],n=[],r=D(t.replace(lt,"$1"));return r[$]?i(function(t,e,n,i){for(var o,s=r(t,null,i,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))}):function(t,i,o){return e[0]=t,r(e,null,o,n),!n.pop()}}),has:i(function(t){return function(n){return e(t,n).length>0}}),contains:i(function(t){return function(e){return(e.textContent||e.innerText||x(e)).indexOf(t)>-1}}),lang:i(function(t){return ft.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(bt,St).toLowerCase(),function(e){var n;do{if(n=k?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===O},focus:function(t){return t===A.activeElement&&(!A.hasFocus||A.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!S.pseudos.empty(t)},header:function(t){return mt.test(t.nodeName)},input:function(t){return yt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:u(function(){return[0]}),last:u(function(t,e){return[e-1]}),eq:u(function(t,e,n){return[n<0?n+e:n]}),even:u(function(t,e){for(var n=0;n=0;)t.push(i);return t}),gt:u(function(t,e,n){for(var i=n<0?n+e:n;++i2&&"ID"===(s=o[0]).type&&b.getById&&9===e.nodeType&&k&&S.relative[o[1].type]){if(!(e=(S.find.ID(s.matches[0].replace(bt,St),e)||[])[0]))return n;u&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(r=dt.needsContext.test(t)?0:o.length;r--&&(s=o[r],!S.relative[a=s.type]);)if((l=S.find[a])&&(i=l(s.matches[0].replace(bt,St),vt.test(o[0].type)&&c(e.parentNode)||e))){if(o.splice(r,1),!(t=i.length&&h(o)))return Z.apply(n,i),n;break}}return(u||D(t,p))(i,e,!k,n,vt.test(t)&&c(e.parentNode)||e),n},b.sortStable=$.split("").sort(z).join("")===$,b.detectDuplicates=!!M,E(),b.sortDetached=r(function(t){return 1&t.compareDocumentPosition(A.createElement("div"))}),r(function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),b.attributes&&r(function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),r(function(t){return null==t.getAttribute("disabled")})||o(nt,function(t,e,n){var i;if(!n)return t[e]===!0?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),e}(t);rt.find=ut,rt.expr=ut.selectors,rt.expr[":"]=rt.expr.pseudos,rt.unique=ut.uniqueSort,rt.text=ut.getText,rt.isXMLDoc=ut.isXML,rt.contains=ut.contains;var ct=rt.expr.match.needsContext,pt=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ht=/^.[^:#\[\.,]*$/;rt.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?rt.find.matchesSelector(i,t)?[i]:[]:rt.find.matches(t,rt.grep(e,function(t){return 1===t.nodeType}))},rt.fn.extend({find:function(t){var e,n=[],i=this,r=i.length;if("string"!=typeof t)return this.pushStack(rt(t).filter(function(){for(e=0;e1?rt.unique(n):n),n.selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(i(this,t||[],!1))},not:function(t){return this.pushStack(i(this,t||[],!0))},is:function(t){return!!i(this,"string"==typeof t&&ct.test(t)?rt(t):t||[],!1).length}});var ft,dt=t.document,yt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(rt.fn.init=function(t,e){var n,i;if(!t)return this;if("string"==typeof t){if(!(n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:yt.exec(t))||!n[1]&&e)return!e||e.jquery?(e||ft).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof rt?e[0]:e,rt.merge(this,rt.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:dt,!0)),pt.test(n[1])&&rt.isPlainObject(e))for(n in e)rt.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}if((i=dt.getElementById(n[2]))&&i.parentNode){if(i.id!==n[2])return ft.find(t);this.length=1,this[0]=i}return this.context=dt,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):rt.isFunction(t)?"undefined"!=typeof ft.ready?ft.ready(t):t(rt):(t.selector!==undefined&&(this.selector=t.selector,this.context=t.context),rt.makeArray(t,this))}).prototype=rt.fn,ft=rt(dt);var mt=/^(?:parents|prev(?:Until|All))/,gt={children:!0,contents:!0,next:!0,prev:!0};rt.extend({dir:function(t,e,n){for(var i=[],r=t[e];r&&9!==r.nodeType&&(n===undefined||1!==r.nodeType||!rt(r).is(n));)1===r.nodeType&&i.push(r),r=r[e];return i},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),rt.fn.extend({has:function(t){var e,n=rt(t,this),i=n.length;return this.filter(function(){for(e=0;e-1:1===n.nodeType&&rt.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?rt.unique(o):o)},index:function(t){return t?"string"==typeof t?rt.inArray(this[0],rt(t)):rt.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(rt.unique(rt.merge(this.get(),rt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),rt.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return rt.dir(t,"parentNode")},parentsUntil:function(t,e,n){return rt.dir(t,"parentNode",n)},next:function(t){return r(t,"nextSibling")},prev:function(t){return r(t,"previousSibling")},nextAll:function(t){return rt.dir(t,"nextSibling")},prevAll:function(t){return rt.dir(t,"previousSibling")},nextUntil:function(t,e,n){return rt.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return rt.dir(t,"previousSibling",n)},siblings:function(t){return rt.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return rt.sibling(t.firstChild)},contents:function(t){return rt.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:rt.merge([],t.childNodes)}},function(t,e){rt.fn[t]=function(n,i){var r=rt.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=rt.filter(i,r)),this.length>1&&(gt[t]||(r=rt.unique(r)),mt.test(t)&&(r=r.reverse())),this.pushStack(r)}});var _t=/\S+/g,vt={};rt.Callbacks=function(t){t="string"==typeof t?vt[t]||o(t):rt.extend({},t);var e,n,i,r,s,a,l=[],u=!t.once&&[],c=function(o){for(n=t.memory&&o,i=!0,s=a||0,a=0,r=l.length,e=!0;l&&s-1;)l.splice(i,1),e&&(i<=r&&r--,i<=s&&s--)}),this},has:function(t){return t?rt.inArray(t,l)>-1:!(!l||!l.length)},empty:function(){return l=[],r=0,this},disable:function(){return l=u=n=undefined,this},disabled:function(){return!l},lock:function(){return u=undefined,n||p.disable(),this},locked:function(){return!u},fireWith:function(t,n){return!l||i&&!u||(n=n||[],n=[t,n.slice?n.slice():n],e?u.push(n):c(n)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},rt.extend({Deferred:function(t){var e=[["resolve","done",rt.Callbacks("once memory"),"resolved"],["reject","fail",rt.Callbacks("once memory"),"rejected"],["notify","progress",rt.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var t=arguments;return rt.Deferred(function(n){rt.each(e,function(e,o){var s=rt.isFunction(t[e])&&t[e];r[o[1]](function(){var t=s&&s.apply(this,arguments);t&&rt.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===i?n.promise():this,s?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?rt.extend(t,i):i}},r={};return i.pipe=i.then,rt.each(e,function(t,o){var s=o[2],a=o[3];i[o[1]]=s.add,a&&s.add(function(){n=a},e[1^t][2].disable,e[2][2].lock),r[o[0]]=function(){return r[o[0]+"With"](this===r?i:this,arguments),this},r[o[0]+"With"]=s.fireWith}),i.promise(r),t&&t.call(r,r),r},when:function(t){var e,n,i,r=0,o=G.call(arguments),s=o.length,a=1!==s||t&&rt.isFunction(t.promise)?s:0,l=1===a?t:rt.Deferred(),u=function(t,n,i){return function(r){n[t]=this,i[t]=arguments.length>1?G.call(arguments):r,i===e?l.notifyWith(n,i):--a||l.resolveWith(n,i)}};if(s>1)for(e=new Array(s),n=new Array(s),i=new Array(s);r0||(wt.resolveWith(dt,[rt]),rt.fn.triggerHandler&&(rt(dt).triggerHandler("ready"),rt(dt).off("ready")))}}}),rt.ready.promise=function(e){if(!wt)if(wt=rt.Deferred(),"complete"===dt.readyState)setTimeout(rt.ready);else if(dt.addEventListener)dt.addEventListener("DOMContentLoaded",a,!1),t.addEventListener("load",a,!1);else{dt.attachEvent("onreadystatechange",a),t.attachEvent("onload",a);var n=!1;try{n=null==t.frameElement&&dt.documentElement}catch(t){}n&&n.doScroll&&function t(){if(!rt.isReady){try{n.doScroll("left")}catch(e){return setTimeout(t,50)}s(),rt.ready()}}()}return wt.promise(e)};var bt,St=typeof undefined;for(bt in rt(nt))break;nt.ownLast="0"!==bt,nt.inlineBlockNeedsLayout=!1,rt(function(){var t,e,n,i;(n=dt.getElementsByTagName("body")[0])&&n.style&&(e=dt.createElement("div"),i=dt.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(e),typeof e.style.zoom!==St&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",nt.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(n.style.zoom=1)),n.removeChild(i))}),function(){var t=dt.createElement("div");if(null==nt.deleteExpando){nt.deleteExpando=!0;try{delete t.test}catch(t){nt.deleteExpando=!1}}t=null}(),rt.acceptData=function(t){var e=rt.noData[(t.nodeName+" ").toLowerCase()],n=+t.nodeType||1;return(1===n||9===n)&&(!e||e!==!0&&t.getAttribute("classid")===e)};var xt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Tt=/([A-Z])/g;rt.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?rt.cache[t[rt.expando]]:t[rt.expando])&&!u(t)},data:function(t,e,n){return c(t,e,n)},removeData:function(t,e){return p(t,e)},_data:function(t,e,n){return c(t,e,n,!0)},_removeData:function(t,e){return p(t,e,!0)}}),rt.fn.extend({data:function(t,e){var n,i,r,o=this[0],s=o&&o.attributes;if(t===undefined){if(this.length&&(r=rt.data(o),1===o.nodeType&&!rt._data(o,"parsedAttrs"))){for(n=s.length;n--;)s[n]&&(i=s[n].name,0===i.indexOf("data-")&&(i=rt.camelCase(i.slice(5)),l(o,i,r[i])));rt._data(o,"parsedAttrs",!0)}return r}return"object"==typeof t?this.each(function(){rt.data(this,t)}):arguments.length>1?this.each(function(){rt.data(this,t,e)}):o?l(o,t,rt.data(o,t)):undefined},removeData:function(t){return this.each(function(){rt.removeData(this,t)})}}),rt.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=rt._data(t,e),n&&(!i||rt.isArray(n)?i=rt._data(t,e,rt.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=rt.queue(t,e),i=n.length,r=n.shift(),o=rt._queueHooks(t,e),s=function(){rt.dequeue(t,e)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,s,o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return rt._data(t,n)||rt._data(t,n,{empty:rt.Callbacks("once memory").add(function(){rt._removeData(t,e+"queue"),rt._removeData(t,n)})})}}),rt.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length
a",nt.leadingWhitespace=3===e.firstChild.nodeType,nt.tbody=!e.getElementsByTagName("tbody").length,nt.htmlSerialize=!!e.getElementsByTagName("link").length,nt.html5Clone="<:nav>"!==dt.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,n.appendChild(t),nt.appendChecked=t.checked,e.innerHTML="",nt.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,n.appendChild(e),e.innerHTML="",nt.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,nt.noCloneEvent=!0,e.attachEvent&&(e.attachEvent("onclick",function(){nt.noCloneEvent=!1}),e.cloneNode(!0).click()),null==nt.deleteExpando){nt.deleteExpando=!0;try{delete e.test}catch(t){nt.deleteExpando=!1}}}(),function(){var e,n,i=dt.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})n="on"+e,(nt[e+"Bubbles"]=n in t)||(i.setAttribute(n,"t"),nt[e+"Bubbles"]=i.attributes[n].expando===!1);i=null}();var Mt=/^(?:input|select|textarea)$/i,Et=/^key/,At=/^(?:mouse|pointer|contextmenu)|click/,Ot=/^(?:focusinfocus|focusoutblur)$/,kt=/^([^.]*)(?:\.(.+)|)$/;rt.event={global:{},add:function(t,e,n,i,r){var o,s,a,l,u,c,p,h,f,d,y,m=rt._data(t);if(m){for(n.handler&&(l=n,n=l.handler,r=l.selector),n.guid||(n.guid=rt.guid++),(s=m.events)||(s=m.events={}),(c=m.handle)||(c=m.handle=function(t){return typeof rt===St||t&&rt.event.triggered===t.type?undefined:rt.event.dispatch.apply(c.elem,arguments)},c.elem=t),e=(e||"").match(_t)||[""],a=e.length;a--;)o=kt.exec(e[a])||[],f=y=o[1],d=(o[2]||"").split(".").sort(),f&&(u=rt.event.special[f]||{},f=(r?u.delegateType:u.bindType)||f,u=rt.event.special[f]||{},p=rt.extend({type:f,origType:y,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&rt.expr.match.needsContext.test(r),namespace:d.join(".")},l),(h=s[f])||(h=s[f]=[],h.delegateCount=0,u.setup&&u.setup.call(t,i,d,c)!==!1||(t.addEventListener?t.addEventListener(f,c,!1):t.attachEvent&&t.attachEvent("on"+f,c))),u.add&&(u.add.call(t,p),p.handler.guid||(p.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,p):h.push(p),rt.event.global[f]=!0);t=null}},remove:function(t,e,n,i,r){var o,s,a,l,u,c,p,h,f,d,y,m=rt.hasData(t)&&rt._data(t);if(m&&(c=m.events)){for(e=(e||"").match(_t)||[""],u=e.length;u--;)if(a=kt.exec(e[u])||[],f=y=a[1],d=(a[2]||"").split(".").sort(),f){for(p=rt.event.special[f]||{},f=(i?p.delegateType:p.bindType)||f,h=c[f]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=h.length;o--;)s=h[o],!r&&y!==s.origType||n&&n.guid!==s.guid||a&&!a.test(s.namespace)||i&&i!==s.selector&&("**"!==i||!s.selector)||(h.splice(o,1),s.selector&&h.delegateCount--,p.remove&&p.remove.call(t,s));l&&!h.length&&(p.teardown&&p.teardown.call(t,d,m.handle)!==!1||rt.removeEvent(t,f,m.handle),delete c[f])}else for(f in c)rt.event.remove(t,f+e[u],n,i,!0);rt.isEmptyObject(c)&&(delete m.handle,rt._removeData(t,"events"))}},trigger:function(e,n,i,r){var o,s,a,l,u,c,p,h=[i||dt],f=et.call(e,"type")?e.type:e,d=et.call(e,"namespace")?e.namespace.split("."):[];if(a=c=i=i||dt,3!==i.nodeType&&8!==i.nodeType&&!Ot.test(f+rt.event.triggered)&&(f.indexOf(".")>=0&&(d=f.split("."),f=d.shift(),d.sort()),s=f.indexOf(":")<0&&"on"+f,e=e[rt.expando]?e:new rt.Event(f,"object"==typeof e&&e), +e.isTrigger=r?2:3,e.namespace=d.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=undefined,e.target||(e.target=i),n=null==n?[e]:rt.makeArray(n,[e]),u=rt.event.special[f]||{},r||!u.trigger||u.trigger.apply(i,n)!==!1)){if(!r&&!u.noBubble&&!rt.isWindow(i)){for(l=u.delegateType||f,Ot.test(l+f)||(a=a.parentNode);a;a=a.parentNode)h.push(a),c=a;c===(i.ownerDocument||dt)&&h.push(c.defaultView||c.parentWindow||t)}for(p=0;(a=h[p++])&&!e.isPropagationStopped();)e.type=p>1?l:u.bindType||f,o=(rt._data(a,"events")||{})[e.type]&&rt._data(a,"handle"),o&&o.apply(a,n),(o=s&&a[s])&&o.apply&&rt.acceptData(a)&&(e.result=o.apply(a,n),e.result===!1&&e.preventDefault());if(e.type=f,!r&&!e.isDefaultPrevented()&&(!u._default||u._default.apply(h.pop(),n)===!1)&&rt.acceptData(i)&&s&&i[f]&&!rt.isWindow(i)){c=i[s],c&&(i[s]=null),rt.event.triggered=f;try{i[f]()}catch(t){}rt.event.triggered=undefined,c&&(i[s]=c)}return e.result}},dispatch:function(t){t=rt.event.fix(t);var e,n,i,r,o,s=[],a=G.call(arguments),l=(rt._data(this,"events")||{})[t.type]||[],u=rt.event.special[t.type]||{};if(a[0]=t,t.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,t)!==!1){for(s=rt.event.handlers.call(this,t,l),e=0;(r=s[e++])&&!t.isPropagationStopped();)for(t.currentTarget=r.elem,o=0;(i=r.handlers[o++])&&!t.isImmediatePropagationStopped();)t.namespace_re&&!t.namespace_re.test(i.namespace)||(t.handleObj=i,t.data=i.data,(n=((rt.event.special[i.origType]||{}).handle||i.handler).apply(r.elem,a))!==undefined&&(t.result=n)===!1&&(t.preventDefault(),t.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,i,r,o,s=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&(!t.button||"click"!==t.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==t.type)){for(r=[],o=0;o=0:rt.find(n,this,null,[l]).length),r[n]&&r.push(i);r.length&&s.push({elem:l,handlers:r})}return a]","i"),jt=/^\s+/,$t=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Pt=/<([\w:]+)/,qt=/\s*$/g,Yt={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:nt.htmlSerialize?[0,"",""]:[1,"X
","
"]},Gt=y(dt),Kt=Gt.appendChild(dt.createElement("div"));Yt.optgroup=Yt.option,Yt.tbody=Yt.tfoot=Yt.colgroup=Yt.caption=Yt.thead,Yt.th=Yt.td,rt.extend({clone:function(t,e,n){var i,r,o,s,a,l=rt.contains(t.ownerDocument,t);if(nt.html5Clone||rt.isXMLDoc(t)||!Nt.test("<"+t.nodeName+">")?o=t.cloneNode(!0):(Kt.innerHTML=t.outerHTML,Kt.removeChild(o=Kt.firstChild)),!(nt.noCloneEvent&&nt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||rt.isXMLDoc(t)))for(i=m(o),a=m(t),s=0;null!=(r=a[s]);++s)i[s]&&x(r,i[s]);if(e)if(n)for(a=a||m(t),i=i||m(o),s=0;null!=(r=a[s]);s++)S(r,i[s]);else S(t,o);return i=m(o,"script"),i.length>0&&b(i,!l&&m(t,"script")),i=a=r=null,o},buildFragment:function(t,e,n,i){for(var r,o,s,a,l,u,c,p=t.length,h=y(e),f=[],d=0;d")+c[2],r=c[0];r--;)a=a.lastChild;if(!nt.leadingWhitespace&&jt.test(o)&&f.push(e.createTextNode(jt.exec(o)[0])),!nt.tbody)for(o="table"!==l||qt.test(o)?""!==c[1]||qt.test(o)?0:a:a.firstChild,r=o&&o.childNodes.length;r--;)rt.nodeName(u=o.childNodes[r],"tbody")&&!u.childNodes.length&&o.removeChild(u);for(rt.merge(f,a.childNodes),a.textContent="";a.firstChild;)a.removeChild(a.firstChild);a=h.lastChild}else f.push(e.createTextNode(o));for(a&&h.removeChild(a),nt.appendChecked||rt.grep(m(f,"input"),g),d=0;o=f[d++];)if((!i||rt.inArray(o,i)===-1)&&(s=rt.contains(o.ownerDocument,o),a=m(h.appendChild(o),"script"),s&&b(a),n))for(r=0;o=a[r++];)Vt.test(o.type||"")&&n.push(o);return a=null,h},cleanData:function(t,e){for(var n,i,r,o,s=0,a=rt.expando,l=rt.cache,u=nt.deleteExpando,c=rt.event.special;null!=(n=t[s]);s++)if((e||rt.acceptData(n))&&(r=n[a],o=r&&l[r])){if(o.events)for(i in o.events)c[i]?rt.event.remove(n,i):rt.removeEvent(n,i,o.handle);l[r]&&(delete l[r],u?delete n[a]:typeof n.removeAttribute!==St?n.removeAttribute(a):n[a]=null,Y.push(r))}}}),rt.fn.extend({text:function(t){return It(this,function(t){return t===undefined?rt.text(this):this.empty().append((this[0]&&this[0].ownerDocument||dt).createTextNode(t))},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||_(this,t).appendChild(t)})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=_(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,i=t?rt.filter(t,this):this,r=0;null!=(n=i[r]);r++)e||1!==n.nodeType||rt.cleanData(m(n)),n.parentNode&&(e&&rt.contains(n.ownerDocument,n)&&b(m(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&rt.cleanData(m(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&rt.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return rt.clone(this,t,e)})},html:function(t){return It(this,function(t){var e=this[0]||{},n=0,i=this.length;if(t===undefined)return 1===e.nodeType?e.innerHTML.replace(Qt,""):undefined;if("string"==typeof t&&!Bt.test(t)&&(nt.htmlSerialize||!Nt.test(t))&&(nt.leadingWhitespace||!jt.test(t))&&!Yt[(Pt.exec(t)||["",""])[1].toLowerCase()]){t=t.replace($t,"<$1>");try{for(;n1&&"string"==typeof h&&!nt.checkClone&&Ht.test(h))return this.each(function(n){var i=c.eq(n);f&&(t[0]=h.call(this,n,i.html())),i.domManip(t,e)});if(u&&(a=rt.buildFragment(t,this[0].ownerDocument,!1,this),n=a.firstChild,1===a.childNodes.length&&(a=n),n)){for(o=rt.map(m(a,"script"),v),r=o.length;l
t
",r=e.getElementsByTagName("td"),r[0].style.cssText="margin:0;border:0;padding:0;display:none",a=0===r[0].offsetHeight,a&&(r[0].style.display="",r[1].style.display="none",a=0===r[0].offsetHeight),n.removeChild(i))}var n,i,r,o,s,a,l;n=dt.createElement("div"),n.innerHTML="
a",r=n.getElementsByTagName("a")[0],(i=r&&r.style)&&(i.cssText="float:left;opacity:.5",nt.opacity="0.5"===i.opacity,nt.cssFloat=!!i.cssFloat,n.style.backgroundClip="content-box",n.cloneNode(!0).style.backgroundClip="",nt.clearCloneStyle="content-box"===n.style.backgroundClip,nt.boxSizing=""===i.boxSizing||""===i.MozBoxSizing||""===i.WebkitBoxSizing,rt.extend(nt,{reliableHiddenOffsets:function(){return null==a&&e(),a},boxSizingReliable:function(){return null==s&&e(),s},pixelPosition:function(){return null==o&&e(),o},reliableMarginRight:function(){return null==l&&e(),l}}))}(),rt.swap=function(t,e,n,i){var r,o,s={};for(o in e)s[o]=t.style[o],t.style[o]=e[o];r=n.apply(t,i||[]);for(o in e)t.style[o]=s[o];return r};var re=/alpha\([^)]*\)/i,oe=/opacity\s*=\s*([^)]*)/,se=/^(none|table(?!-c[ea]).+)/,ae=new RegExp("^("+Ct+")(.*)$","i"),le=new RegExp("^([+-])=("+Ct+")","i"),ue={position:"absolute",visibility:"hidden",display:"block"},ce={letterSpacing:"0",fontWeight:"400"},pe=["Webkit","O","Moz","ms"];rt.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=te(t,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":nt.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,s,a=rt.camelCase(e),l=t.style;if(e=rt.cssProps[a]||(rt.cssProps[a]=F(l,a)),s=rt.cssHooks[e]||rt.cssHooks[a],n===undefined)return s&&"get"in s&&(r=s.get(t,!1,i))!==undefined?r:l[e];if(o=typeof n,"string"===o&&(r=le.exec(n))&&(n=(r[1]+1)*r[2]+parseFloat(rt.css(t,e)),o="number"),null!=n&&n===n&&("number"!==o||rt.cssNumber[a]||(n+="px"),nt.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),!(s&&"set"in s&&(n=s.set(t,n,i))===undefined)))try{l[e]=n}catch(t){}}},css:function(t,e,n,i){var r,o,s,a=rt.camelCase(e);return e=rt.cssProps[a]||(rt.cssProps[a]=F(t.style,a)),s=rt.cssHooks[e]||rt.cssHooks[a],s&&"get"in s&&(o=s.get(t,!0,n)),o===undefined&&(o=te(t,e,i)),"normal"===o&&e in ce&&(o=ce[e]),""===n||n?(r=parseFloat(o),n===!0||rt.isNumeric(r)?r||0:o):o}}),rt.each(["height","width"],function(t,e){rt.cssHooks[e]={get:function(t,n,i){if(n)return se.test(rt.css(t,"display"))&&0===t.offsetWidth?rt.swap(t,ue,function(){return E(t,e,i)}):E(t,e,i)},set:function(t,n,i){var r=i&&Zt(t);return R(t,n,i?M(t,e,i,nt.boxSizing&&"border-box"===rt.css(t,"boxSizing",!1,r),r):0)}}}),nt.opacity||(rt.cssHooks.opacity={get:function(t,e){return oe.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var n=t.style,i=t.currentStyle,r=rt.isNumeric(e)?"alpha(opacity="+100*e+")":"",o=i&&i.filter||n.filter||"";n.zoom=1,(e>=1||""===e)&&""===rt.trim(o.replace(re,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===e||i&&!i.filter)||(n.filter=re.test(o)?o.replace(re,r):o+" "+r)}}),rt.cssHooks.marginRight=D(nt.reliableMarginRight,function(t,e){if(e)return rt.swap(t,{display:"inline-block"},te,[t,"marginRight"])}),rt.each({margin:"",padding:"",border:"Width"},function(t,e){rt.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+Dt[i]+e]=o[i]||o[i-2]||o[0];return r}},ee.test(t)||(rt.cssHooks[t+e].set=R)}),rt.fn.extend({css:function(t,e){return It(this,function(t,e,n){var i,r,o={},s=0;if(rt.isArray(e)){for(i=Zt(t),r=e.length;s1)},show:function(){return I(this,!0)},hide:function(){return I(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Ft(this)?rt(this).show():rt(this).hide()})}}),rt.Tween=A,A.prototype={constructor:A,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||"swing",this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(rt.cssNumber[n]?"":"px")},cur:function(){var t=A.propHooks[this.prop];return t&&t.get?t.get(this):A.propHooks._default.get(this)},run:function(t){var e,n=A.propHooks[this.prop];return this.options.duration?this.pos=e=rt.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):A.propHooks._default.set(this),this}},A.prototype.init.prototype=A.prototype,A.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=rt.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){rt.fx.step[t.prop]?rt.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[rt.cssProps[t.prop]]||rt.cssHooks[t.prop])?rt.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},A.propHooks.scrollTop=A.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},rt.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},rt.fx=A.prototype.init,rt.fx.step={};var he,fe,de=/^(?:toggle|show|hide)$/,ye=new RegExp("^(?:([+-])=|)("+Ct+")([a-z%]*)$","i"),me=/queueHooks$/,ge=[Q],_e={"*":[function(t,e){var n=this.createTween(t,e),i=n.cur(),r=ye.exec(e),o=r&&r[3]||(rt.cssNumber[t]?"":"px"),s=(rt.cssNumber[t]||"px"!==o&&+i)&&ye.exec(rt.css(n.elem,t)),a=1,l=20;if(s&&s[3]!==o){o=o||s[3],r=r||[],s=+i||1;do{a=a||".5",s/=a,rt.style(n.elem,t,s+o)}while(a!==(a=n.cur()/i)&&1!==a&&--l)}return r&&(s=n.start=+s||+i||0,n.unit=o,n.end=r[1]?s+(r[1]+1)*r[2]:+r[2]),n}]};rt.Animation=rt.extend(j,{tweener:function(t,e){rt.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,i=0,r=t.length;i
a",i=e.getElementsByTagName("a")[0],n=dt.createElement("select"),r=n.appendChild(dt.createElement("option")),t=e.getElementsByTagName("input")[0],i.style.cssText="top:1px",nt.getSetAttribute="t"!==e.className,nt.style=/top/.test(i.getAttribute("style")),nt.hrefNormalized="/a"===i.getAttribute("href"),nt.checkOn=!!t.value,nt.optSelected=r.selected,nt.enctype=!!dt.createElement("form").enctype,n.disabled=!0,nt.optDisabled=!r.disabled,t=dt.createElement("input"),t.setAttribute("value",""),nt.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),nt.radioValue="t"===t.value}();var ve=/\r/g;rt.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=rt.isFunction(t),this.each(function(n){var r;1===this.nodeType&&(r=i?t.call(this,n,rt(this).val()):t,null==r?r="":"number"==typeof r?r+="":rt.isArray(r)&&(r=rt.map(r,function(t){return null==t?"":t+""})),(e=rt.valHooks[this.type]||rt.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&e.set(this,r,"value")!==undefined||(this.value=r))})):r?(e=rt.valHooks[r.type]||rt.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&(n=e.get(r,"value"))!==undefined?n:(n=r.value,"string"==typeof n?n.replace(ve,""):null==n?"":n):void 0}}),rt.extend({valHooks:{option:{get:function(t){var e=rt.find.attr(t,"value");return null!=e?e:rt.trim(rt.text(t))}},select:{get:function(t){for(var e,n,i=t.options,r=t.selectedIndex,o="select-one"===t.type||r<0,s=o?null:[],a=o?r+1:i.length,l=r<0?a:o?r:0;l=0)try{i.selected=n=!0}catch(t){i.scrollHeight}else i.selected=!1;return n||(t.selectedIndex=-1),r}}}}),rt.each(["radio","checkbox"],function(){rt.valHooks[this]={set:function(t,e){if(rt.isArray(e))return t.checked=rt.inArray(rt(t).val(),e)>=0}},nt.checkOn||(rt.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var we,be,Se=rt.expr.attrHandle,xe=/^(?:checked|selected)$/i,Te=nt.getSetAttribute,Ce=nt.input;rt.fn.extend({attr:function(t,e){return It(this,rt.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){rt.removeAttr(this,t)})}}),rt.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return typeof t.getAttribute===St?rt.prop(t,e,n):(1===o&&rt.isXMLDoc(t)||(e=e.toLowerCase(),i=rt.attrHooks[e]||(rt.expr.match.bool.test(e)?be:we)),n===undefined?i&&"get"in i&&null!==(r=i.get(t,e))?r:(r=rt.find.attr(t,e),null==r?undefined:r):null!==n?i&&"set"in i&&(r=i.set(t,n,e))!==undefined?r:(t.setAttribute(e,n+""),n):void rt.removeAttr(t,e))},removeAttr:function(t,e){var n,i,r=0,o=e&&e.match(_t);if(o&&1===t.nodeType)for(;n=o[r++];)i=rt.propFix[n]||n,rt.expr.match.bool.test(n)?Ce&&Te||!xe.test(n)?t[i]=!1:t[rt.camelCase("default-"+n)]=t[i]=!1:rt.attr(t,n,""),t.removeAttribute(Te?n:i)},attrHooks:{type:{set:function(t,e){if(!nt.radioValue&&"radio"===e&&rt.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}}}),be={set:function(t,e,n){return e===!1?rt.removeAttr(t,n):Ce&&Te||!xe.test(n)?t.setAttribute(!Te&&rt.propFix[n]||n,n):t[rt.camelCase("default-"+n)]=t[n]=!0,n}},rt.each(rt.expr.match.bool.source.match(/\w+/g),function(t,e){var n=Se[e]||rt.find.attr;Se[e]=Ce&&Te||!xe.test(e)?function(t,e,i){var r,o;return i||(o=Se[e],Se[e]=r,r=null!=n(t,e,i)?e.toLowerCase():null,Se[e]=o),r}:function(t,e,n){if(!n)return t[rt.camelCase("default-"+e)]?e.toLowerCase():null}}),Ce&&Te||(rt.attrHooks.value={set:function(t,e,n){if(!rt.nodeName(t,"input"))return we&&we.set(t,e,n);t.defaultValue=e}}),Te||(we={set:function(t,e,n){var i=t.getAttributeNode(n);if(i||t.setAttributeNode(i=t.ownerDocument.createAttribute(n)),i.value=e+="","value"===n||e===t.getAttribute(n))return e}},Se.id=Se.name=Se.coords=function(t,e,n){var i;if(!n)return(i=t.getAttributeNode(e))&&""!==i.value?i.value:null},rt.valHooks.button={get:function(t,e){var n=t.getAttributeNode(e);if(n&&n.specified)return n.value},set:we.set},rt.attrHooks.contenteditable={set:function(t,e,n){we.set(t,""!==e&&e,n)}},rt.each(["width","height"],function(t,e){rt.attrHooks[e]={set:function(t,n){if(""===n)return t.setAttribute(e,"auto"),n}}})),nt.style||(rt.attrHooks.style={get:function(t){return t.style.cssText||undefined},set:function(t,e){return t.style.cssText=e+""}});var De=/^(?:input|select|textarea|button|object)$/i,Fe=/^(?:a|area)$/i;rt.fn.extend({prop:function(t,e){return It(this,rt.prop,t,e,arguments.length>1)},removeProp:function(t){return t=rt.propFix[t]||t,this.each(function(){try{this[t]=undefined,delete this[t]}catch(t){}})}}),rt.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(t,e,n){var i,r,o,s=t.nodeType;if(t&&3!==s&&8!==s&&2!==s)return o=1!==s||!rt.isXMLDoc(t),o&&(e=rt.propFix[e]||e,r=rt.propHooks[e]),n!==undefined?r&&"set"in r&&(i=r.set(t,n,e))!==undefined?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=rt.find.attr(t,"tabindex");return e?parseInt(e,10):De.test(t.nodeName)||Fe.test(t.nodeName)&&t.href?0:-1}}}}),nt.hrefNormalized||rt.each(["href","src"],function(t,e){rt.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}}),nt.optSelected||(rt.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}}),rt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){rt.propFix[this.toLowerCase()]=this}),nt.enctype||(rt.propFix.enctype="encoding");var Ie=/[\t\r\n\f]/g;rt.fn.extend({addClass:function(t){var e,n,i,r,o,s,a=0,l=this.length,u="string"==typeof t&&t;if(rt.isFunction(t))return this.each(function(e){rt(this).addClass(t.call(this,e,this.className))});if(u)for(e=(t||"").match(_t)||[];a=0;)i=i.replace(" "+r+" "," ");s=t?rt.trim(i):"",n.className!==s&&(n.className=s)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):rt.isFunction(t)?this.each(function(n){rt(this).toggleClass(t.call(this,n,this.className,e),e)}):this.each(function(){if("string"===n)for(var e,i=0,r=rt(this),o=t.match(_t)||[];e=o[i++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else n!==St&&"boolean"!==n||(this.className&&rt._data(this,"__className__",this.className),this.className=this.className||t===!1?"":rt._data(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,i=this.length;n=0)return!0;return!1}}),rt.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){rt.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),rt.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}});var Re=rt.now(),Me=/\?/,Ee=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;rt.parseJSON=function(e){if(t.JSON&&t.JSON.parse)return t.JSON.parse(e+"");var n,i=null,r=rt.trim(e+"");return r&&!rt.trim(r.replace(Ee,function(t,e,r,o){return n&&e&&(i=0),0===i?t:(n=r||e,i+=!o-!r,"")}))?Function("return "+r)():rt.error("Invalid JSON: "+e)},rt.parseXML=function(e){var n,i;if(!e||"string"!=typeof e)return null;try{t.DOMParser?(i=new DOMParser,n=i.parseFromString(e,"text/xml")):(n=new ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(e))}catch(t){n=undefined}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||rt.error("Invalid XML: "+e),n};var Ae,Oe,ke=/#.*$/,Le=/([?&])_=[^&]*/,Qe=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ne=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,je=/^(?:GET|HEAD)$/,$e=/^\/\//,Pe=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,qe={},Ue={},Be="*/".concat("*");try{Oe=location.href}catch(t){Oe=dt.createElement("a"),Oe.href="",Oe=Oe.href}Ae=Pe.exec(Oe.toLowerCase())||[],rt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Oe,type:"GET",isLocal:Ne.test(Ae[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Be,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":rt.parseJSON,"text xml":rt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?q(q(t,rt.ajaxSettings),e):q(rt.ajaxSettings,t)},ajaxPrefilter:$(qe),ajaxTransport:$(Ue),ajax:function(t,e){function n(t,e,n,i){var r,c,g,_,w,S=e;2!==v&&(v=2,a&&clearTimeout(a),u=undefined,s=i||"",b.readyState=t>0?4:0,r=t>=200&&t<300||304===t,n&&(_=U(p,b,n)),_=B(p,_,b,r),r?(p.ifModified&&(w=b.getResponseHeader("Last-Modified"),w&&(rt.lastModified[o]=w),(w=b.getResponseHeader("etag"))&&(rt.etag[o]=w)),204===t||"HEAD"===p.type?S="nocontent":304===t?S="notmodified":(S=_.state,c=_.data,g=_.error,r=!g)):(g=S,!t&&S||(S="error",t<0&&(t=0))),b.status=t,b.statusText=(e||S)+"",r?d.resolveWith(h,[c,S,b]):d.rejectWith(h,[b,S,g]),b.statusCode(m),m=undefined,l&&f.trigger(r?"ajaxSuccess":"ajaxError",[b,p,r?c:g]),y.fireWith(h,[b,S]),l&&(f.trigger("ajaxComplete",[b,p]),--rt.active||rt.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=undefined),e=e||{};var i,r,o,s,a,l,u,c,p=rt.ajaxSetup({},e),h=p.context||p,f=p.context&&(h.nodeType||h.jquery)?rt(h):rt.event,d=rt.Deferred(),y=rt.Callbacks("once memory"),m=p.statusCode||{},g={},_={},v=0,w="canceled",b={readyState:0,getResponseHeader:function(t){var e;if(2===v){if(!c)for(c={};e=Qe.exec(s);)c[e[1].toLowerCase()]=e[2];e=c[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===v?s:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return v||(t=_[n]=_[n]||t,g[t]=e),this},overrideMimeType:function(t){return v||(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(v<2)for(e in t)m[e]=[m[e],t[e]];else b.always(t[b.status]);return this},abort:function(t){var e=t||w;return u&&u.abort(e),n(0,e),this}};if(d.promise(b).complete=y.add,b.success=b.done,b.error=b.fail,p.url=((t||p.url||Oe)+"").replace(ke,"").replace($e,Ae[1]+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=rt.trim(p.dataType||"*").toLowerCase().match(_t)||[""],null==p.crossDomain&&(i=Pe.exec(p.url.toLowerCase()),p.crossDomain=!(!i||i[1]===Ae[1]&&i[2]===Ae[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(Ae[3]||("http:"===Ae[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=rt.param(p.data,p.traditional)),P(qe,p,e,b),2===v)return b;l=p.global,l&&0==rt.active++&&rt.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!je.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(Me.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=Le.test(o)?o.replace(Le,"$1_="+Re++):o+(Me.test(o)?"&":"?")+"_="+Re++)),p.ifModified&&(rt.lastModified[o]&&b.setRequestHeader("If-Modified-Since",rt.lastModified[o]),rt.etag[o]&&b.setRequestHeader("If-None-Match",rt.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||e.contentType)&&b.setRequestHeader("Content-Type",p.contentType),b.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Be+"; q=0.01":""):p.accepts["*"]);for(r in p.headers)b.setRequestHeader(r,p.headers[r]);if(p.beforeSend&&(p.beforeSend.call(h,b,p)===!1||2===v))return b.abort();w="abort";for(r in{success:1,error:1,complete:1})b[r](p[r]);if(u=P(Ue,p,e,b)){b.readyState=1,l&&f.trigger("ajaxSend",[b,p]),p.async&&p.timeout>0&&(a=setTimeout(function(){b.abort("timeout")},p.timeout));try{v=1,u.send(g,n)}catch(t){if(!(v<2))throw t;n(-1,t)}}else n(-1,"No Transport");return b},getJSON:function(t,e,n){return rt.get(t,e,n,"json")},getScript:function(t,e){return rt.get(t,undefined,e,"script")}}),rt.each(["get","post"],function(t,e){rt[e]=function(t,n,i,r){return rt.isFunction(n)&&(r=r||i,i=n,n=undefined),rt.ajax({url:t,type:e,dataType:r,data:n,success:i})}}),rt.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){rt.fn[e]=function(t){return this.on(e,t)}}),rt._evalUrl=function(t){return rt.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},rt.fn.extend({wrapAll:function(t){if(rt.isFunction(t))return this.each(function(e){rt(this).wrapAll(t.call(this,e))});if(this[0]){var e=rt(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(t){return rt.isFunction(t)?this.each(function(e){rt(this).wrapInner(t.call(this,e))}):this.each(function(){var e=rt(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=rt.isFunction(t);return this.each(function(n){rt(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){rt.nodeName(this,"body")||rt(this).replaceWith(this.childNodes)}).end()}}),rt.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0||!nt.reliableHiddenOffsets()&&"none"===(t.style&&t.style.display||rt.css(t,"display"))},rt.expr.filters.visible=function(t){return!rt.expr.filters.hidden(t)};var He=/%20/g,Ve=/\[\]$/,ze=/\r?\n/g,We=/^(?:submit|button|image|reset|file)$/i,Ye=/^(?:input|select|textarea|keygen)/i;rt.param=function(t,e){var n,i=[],r=function(t,e){e=rt.isFunction(e)?e():null==e?"":e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(e===undefined&&(e=rt.ajaxSettings&&rt.ajaxSettings.traditional),rt.isArray(t)||t.jquery&&!rt.isPlainObject(t))rt.each(t,function(){r(this.name,this.value)});else for(n in t)H(n,t[n],e,r);return i.join("&").replace(He,"+")},rt.fn.extend({serialize:function(){return rt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=rt.prop(this,"elements");return t?rt.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!rt(this).is(":disabled")&&Ye.test(this.nodeName)&&!We.test(t)&&(this.checked||!Rt.test(t))}).map(function(t,e){var n=rt(this).val();return null==n?null:rt.isArray(n)?rt.map(n,function(t){return{name:e.name,value:t.replace(ze,"\r\n")}}):{name:e.name,value:n.replace(ze,"\r\n")}}).get()}}),rt.ajaxSettings.xhr=t.ActiveXObject!==undefined?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&V()||z()}:V;var Ge=0,Ke={},Je=rt.ajaxSettings.xhr();t.ActiveXObject&&rt(t).on("unload",function(){for(var t in Ke)Ke[t](undefined,!0)}),nt.cors=!!Je&&"withCredentials"in Je,Je=nt.ajax=!!Je,Je&&rt.ajaxTransport(function(t){if(!t.crossDomain||nt.cors){var e;return{send:function(n,i){var r,o=t.xhr(),s=++Ge;if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)o[r]=t.xhrFields[r];t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(r in n)n[r]!==undefined&&o.setRequestHeader(r,n[r]+"");o.send(t.hasContent&&t.data||null),e=function(n,r){var a,l,u;if(e&&(r||4===o.readyState))if(delete Ke[s],e=undefined,o.onreadystatechange=rt.noop,r)4!==o.readyState&&o.abort();else{u={},a=o.status,"string"==typeof o.responseText&&(u.text=o.responseText);try{l=o.statusText}catch(t){l=""}a||!t.isLocal||t.crossDomain?1223===a&&(a=204):a=u.text?200:404}u&&i(a,l,u,o.getAllResponseHeaders())},t.async?4===o.readyState?setTimeout(e):o.onreadystatechange=Ke[s]=e:e()},abort:function(){e&&e(undefined,!0)}}}}),rt.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return rt.globalEval(t),t}}}),rt.ajaxPrefilter("script",function(t){t.cache===undefined&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),rt.ajaxTransport("script",function(t){if(t.crossDomain){var e,n=dt.head||rt("head")[0]||dt.documentElement;return{send:function(i,r){e=dt.createElement("script"),e.async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,n){(n||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,n||r(200,"success"))},n.insertBefore(e,n.firstChild)},abort:function(){e&&e.onload(undefined,!0)}}}});var Xe=[],Ze=/(=)\?(?=&|$)|\?\?/;rt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Xe.pop()||rt.expando+"_"+Re++;return this[t]=!0,t}}),rt.ajaxPrefilter("json jsonp",function(e,n,i){var r,o,s,a=e.jsonp!==!1&&(Ze.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ze.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=rt.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ze,"$1"+r):e.jsonp!==!1&&(e.url+=(Me.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return s||rt.error(r+" was not called"),s[0]},e.dataTypes[0]="json",o=t[r],t[r]=function(){s=arguments},i.always(function(){t[r]=o,e[r]&&(e.jsonpCallback=n.jsonpCallback,Xe.push(r)),s&&rt.isFunction(o)&&o(s[0]),s=o=undefined}),"script"}),rt.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||dt;var i=pt.exec(t),r=!n&&[];return i?[e.createElement(i[1])]:(i=rt.buildFragment([t],e,r),r&&r.length&&rt(r).remove(),rt.merge([],i.childNodes))};var tn=rt.fn.load;rt.fn.load=function(t,e,n){if("string"!=typeof t&&tn)return tn.apply(this,arguments);var i,r,o,s=this,a=t.indexOf(" ");return a>=0&&(i=rt.trim(t.slice(a,t.length)),t=t.slice(0,a)),rt.isFunction(e)?(n=e,e=undefined):e&&"object"==typeof e&&(o="POST"),s.length>0&&rt.ajax({url:t,type:o,dataType:"html",data:e}).done(function(t){r=arguments,s.html(i?rt("
").append(rt.parseHTML(t)).find(i):t)}).complete(n&&function(t,e){s.each(n,r||[t.responseText,e,t])}),this},rt.expr.filters.animated=function(t){return rt.grep(rt.timers,function(e){return t===e.elem}).length};var en=t.document.documentElement;rt.offset={setOffset:function(t,e,n){var i,r,o,s,a,l,u,c=rt.css(t,"position"),p=rt(t),h={};"static"===c&&(t.style.position="relative"),a=p.offset(),o=rt.css(t,"top"),l=rt.css(t,"left"),u=("absolute"===c||"fixed"===c)&&rt.inArray("auto",[o,l])>-1,u?(i=p.position(),s=i.top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),rt.isFunction(e)&&(e=e.call(t,n,a)),null!=e.top&&(h.top=e.top-a.top+s),null!=e.left&&(h.left=e.left-a.left+r),"using"in e?e.using.call(t,h):p.css(h)}},rt.fn.extend({offset:function(t){if(arguments.length)return t===undefined?this:this.each(function(e){rt.offset.setOffset(this,t,e)});var e,n,i={top:0,left:0},r=this[0],o=r&&r.ownerDocument;return o?(e=o.documentElement,rt.contains(e,r)?(typeof r.getBoundingClientRect!==St&&(i=r.getBoundingClientRect()),n=W(o),{top:i.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):i):void 0},position:function(){if(this[0]){var t,e,n={top:0,left:0},i=this[0];return"fixed"===rt.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),rt.nodeName(t[0],"html")||(n=t.offset()),n.top+=rt.css(t[0],"borderTopWidth",!0),n.left+=rt.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-rt.css(i,"marginTop",!0),left:e.left-n.left-rt.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||en;t&&!rt.nodeName(t,"html")&&"static"===rt.css(t,"position");)t=t.offsetParent;return t||en})}}),rt.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n=/Y/.test(e);rt.fn[t]=function(i){return It(this,function(t,i,r){var o=W(t);if(r===undefined)return o?e in o?o[e]:o.document.documentElement[i]:t[i];o?o.scrollTo(n?rt(o).scrollLeft():r,n?r:rt(o).scrollTop()):t[i]=r},t,i,arguments.length,null)}}),rt.each(["top","left"],function(t,e){rt.cssHooks[e]=D(nt.pixelPosition,function(t,n){if(n)return n=te(t,e),ne.test(n)?rt(t).position()[e]+"px":n})}),rt.each({Height:"height",Width:"width"},function(t,e){rt.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){rt.fn[i]=function(i,r){var o=arguments.length&&(n||"boolean"!=typeof i),s=n||(i===!0||r===!0?"margin":"border");return It(this,function(e,n,i){var r;return rt.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):i===undefined?rt.css(e,n,s):rt.style(e,n,i,s)},e,o?i:undefined,o,null)}})}),rt.fn.size=function(){return this.length},rt.fn.andSelf=rt.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return rt});var nn=t.jQuery,rn=t.$;return rt.noConflict=function(e){return t.$===rt&&(t.$=rn),e&&t.jQuery===rt&&(t.jQuery=nn),rt},typeof e===St&&(t.jQuery=t.$=rt),rt}),/*! jQuery Migrate v1.2.1 | (c) 2005, 2013 jQuery Foundation, Inc. and other contributors | jquery.org/license */ +void 0===jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t,e,n){function i(n){var i=e.console;o[n]||(o[n]=!0,t.migrateWarnings.push(n),i&&i.warn&&!t.migrateMute&&(i.warn("JQMIGRATE: "+n),t.migrateTrace&&i.trace&&i.trace()))}function r(e,r,o,s){if(Object.defineProperty)try{return Object.defineProperty(e,r,{configurable:!0,enumerable:!0,get:function(){return i(s),o},set:function(t){i(s),o=t}}),n}catch(t){}t._definePropertyBroken=!0,e[r]=o}var o={};t.migrateWarnings=[],!t.migrateMute&&e.console&&e.console.log&&e.console.log("JQMIGRATE: Logging is active"),t.migrateTrace===n&&(t.migrateTrace=!0),t.migrateReset=function(){o={},t.migrateWarnings.length=0},"BackCompat"===document.compatMode&&i("jQuery is not compatible with Quirks Mode");var s=t("",{size:1}).attr("size")&&t.attrFn,a=t.attr,l=t.attrHooks.value&&t.attrHooks.value.get||function(){return null},u=t.attrHooks.value&&t.attrHooks.value.set||function(){return n},c=/^(?:input|button)$/i,p=/^[238]$/,h=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,f=/^(?:checked|selected)$/i;r(t,"attrFn",s||{},"jQuery.attrFn is deprecated"),t.attr=function(e,r,o,l){var u=r.toLowerCase(),d=e&&e.nodeType;return l&&(4>a.length&&i("jQuery.fn.attr( props, pass ) is deprecated"),e&&!p.test(d)&&(s?r in s:t.isFunction(t.fn[r])))?t(e)[r](o):("type"===r&&o!==n&&c.test(e.nodeName)&&e.parentNode&&i("Can't change the 'type' of an input or button in IE 6/7/8"),!t.attrHooks[u]&&h.test(u)&&(t.attrHooks[u]={get:function(e,i){var r,o=t.prop(e,i);return o===!0||"boolean"!=typeof o&&(r=e.getAttributeNode(i))&&r.nodeValue!==!1?i.toLowerCase():n},set:function(e,n,i){var r;return n===!1?t.removeAttr(e,i):(r=t.propFix[i]||i,r in e&&(e[r]=!0),e.setAttribute(i,i.toLowerCase())),i}},f.test(u)&&i("jQuery.fn.attr('"+u+"') may use property instead of attribute")),a.call(t,e,r,o))},t.attrHooks.value={get:function(t,e){var n=(t.nodeName||"").toLowerCase();return"button"===n?l.apply(this,arguments):("input"!==n&&"option"!==n&&i("jQuery.fn.attr('value') no longer gets properties"),e in t?t.value:null)},set:function(t,e){var r=(t.nodeName||"").toLowerCase();return"button"===r?u.apply(this,arguments):("input"!==r&&"option"!==r&&i("jQuery.fn.attr('value', val) no longer sets properties"),t.value=e,n)}};var d,y,m=t.fn.init,g=t.parseJSON,_=/^([^<]*)(<[\w\W]+>)([^>]*)$/;t.fn.init=function(e,n,r){var o;return e&&"string"==typeof e&&!t.isPlainObject(n)&&(o=_.exec(t.trim(e)))&&o[0]&&("<"!==e.charAt(0)&&i("$(html) HTML strings must start with '<' character"),o[3]&&i("$(html) HTML text after last tag is ignored"),"#"===o[0].charAt(0)&&(i("HTML string cannot start with a '#' character"),t.error("JQMIGRATE: Invalid selector string (XSS)")),n&&n.context&&(n=n.context),t.parseHTML)?m.call(this,t.parseHTML(o[2],n,!0),n,r):m.apply(this,arguments)},t.fn.init.prototype=t.fn,t.parseJSON=function(t){return t||null===t?g.apply(this,arguments):(i("jQuery.parseJSON requires a valid JSON string"),null)},t.uaMatch=function(t){t=t.toLowerCase();var e=/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||0>t.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:e[1]||"",version:e[2]||"0"}},t.browser||(d=t.uaMatch(navigator.userAgent),y={},d.browser&&(y[d.browser]=!0,y.version=d.version),y.chrome?y.webkit=!0:y.webkit&&(y.safari=!0),t.browser=y),r(t,"browser",t.browser,"jQuery.browser is deprecated"),t.sub=function(){function e(t,n){return new e.fn.init(t,n)}t.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(i,r){return r&&r instanceof t&&!(r instanceof e)&&(r=e(r)),t.fn.init.call(this,i,r,n)},e.fn.init.prototype=e.fn;var n=e(document);return i("jQuery.sub() is deprecated"),e},t.ajaxSetup({converters:{"text json":t.parseJSON}});var v=t.fn.data;t.fn.data=function(e){var r,o,s=this[0];return!s||"events"!==e||1!==arguments.length||(r=t.data(s,e),o=t._data(s,e),r!==n&&r!==o||o===n)?v.apply(this,arguments):(i("Use of jQuery.fn.data('events') is deprecated"),o)};var w=/\/(java|ecma)script/i,b=t.fn.andSelf||t.fn.addBack;t.fn.andSelf=function(){return i("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),b.apply(this,arguments)},t.clean||(t.clean=function(e,r,o,s){r=r||document,r=!r.nodeType&&r[0]||r,r=r.ownerDocument||r,i("jQuery.clean() is deprecated");var a,l,u,c,p=[];if(t.merge(p,t.buildFragment(e,r).childNodes),o)for(u=function(t){return!t.type||w.test(t.type)?s?s.push(t.parentNode?t.parentNode.removeChild(t):t):o.appendChild(t):n},a=0;null!=(l=p[a]);a++)t.nodeName(l,"script")&&u(l)||(o.appendChild(l),l.getElementsByTagName!==n&&(c=t.grep(t.merge([],l.getElementsByTagName("script")),u),p.splice.apply(p,[a+1,0].concat(c)),a+=c.length));return p});var S=t.event.add,x=t.event.remove,T=t.event.trigger,C=t.fn.toggle,D=t.fn.live,F=t.fn.die,I="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",R=RegExp("\\b(?:"+I+")\\b"),M=/(?:^|\s)hover(\.\S+|)\b/,E=function(e){return"string"!=typeof e||t.event.special.hover?e:(M.test(e)&&i("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),e&&e.replace(M,"mouseenter$1 mouseleave$1"))};t.event.props&&"attrChange"!==t.event.props[0]&&t.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),t.event.dispatch&&r(t.event,"handle",t.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),t.event.add=function(t,e,n,r,o){t!==document&&R.test(e)&&i("AJAX events should be attached to document: "+e),S.call(this,t,E(e||""),n,r,o)},t.event.remove=function(t,e,n,i,r){x.call(this,t,E(e)||"",n,i,r)},t.fn.error=function(){var t=Array.prototype.slice.call(arguments,0);return i("jQuery.fn.error() is deprecated"),t.splice(0,0,"error"),arguments.length?this.bind.apply(this,t):(this.triggerHandler.apply(this,t),this)},t.fn.toggle=function(e,n){if(!t.isFunction(e)||!t.isFunction(n))return C.apply(this,arguments);i("jQuery.fn.toggle(handler, handler...) is deprecated");var r=arguments,o=e.guid||t.guid++,s=0,a=function(n){var i=(t._data(this,"lastToggle"+e.guid)||0)%s;return t._data(this,"lastToggle"+e.guid,i+1),n.preventDefault(),r[i].apply(this,arguments)||!1};for(a.guid=o;r.length>s;)r[s++].guid=o;return this.click(a)},t.fn.live=function(e,n,r){return i("jQuery.fn.live() is deprecated"),D?D.apply(this,arguments):(t(this.context).on(e,this.selector,n,r),this)},t.fn.die=function(e,n){return i("jQuery.fn.die() is deprecated"),F?F.apply(this,arguments):(t(this.context).off(e,this.selector||"**",n),this)},t.event.trigger=function(t,e,n,r){return n||R.test(t)||i("Global events are undocumented and deprecated"),T.call(this,t,e,n||document,r)},t.each(I.split("|"),function(e,n){t.event.special[n]={setup:function(){var e=this;return e!==document&&(t.event.add(document,n+"."+t.guid,function(){t.event.trigger(n,null,e,!0)}),t._data(this,n,t.guid++)),!1},teardown:function(){return this!==document&&t.event.remove(document,n+"."+t._data(this,n)),!1}}})}(jQuery,window),window.$stjq=jQuery.noConflict(!0),function(jQuery){"object"!=typeof JSON&&(JSON={}),function(){"use strict";function f(t){return t<10?"0"+t:t}function quote(t){return escapable.lastIndex=0,escapable.test(t)?'"'+t.replace(escapable,function(t){var e=meta[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+t+'"'}function str(t,e){var n,i,r,o,s,a=gap,l=e[t];switch(l&&"object"==typeof l&&"function"==typeof l.toJSON&&(l=l.toJSON(t)),"function"==typeof rep&&(l=rep.call(e,t,l)),typeof l){case"string":return quote(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(gap+=indent,s=[],"[object Array]"===Object.prototype.toString.apply(l)){for(o=l.length,n=0;n1){if(o=t({path:"/"},i.defaults,o),"number"==typeof o.expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*o.expires),o.expires=a}o.expires=o.expires?o.expires.toUTCString():"";try{s=JSON.stringify(r),/^[\{\[]/.test(s)&&(r=s)}catch(t){}r=n.write?n.write(r,e):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)),e=e.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),e=e.replace(/[\(\)]/g,escape);var l="";for(var u in o)o[u]&&(l+="; "+u,o[u]!==!0&&(l+="="+o[u]));var c=e+"="+r+l;return this.doNotActuallySetCookie?c:document.cookie=c}e||(s={});for(var p=document.cookie?document.cookie.split("; "):[],h=/(%[0-9A-Z]{2})+/g,f=0;ft.getLastClicked())&&(t=n)}),t},i.getClickResultIds=function(){return e.map(this.getClickRecords(),function(t){return t.getResultId()})},i.registerClickByResultId=function(t){var e=n.ClickRecord.fromResultId(t);e=this.getClickRecords()[e.hashcode()]||e,e.incrementCount(),e.updateLastClicked(),this.getClickRecords()[e.hashcode()]=e},i.updateLastExecuted=function(t){this._last=t||(new Date).getTime()},i.incrementCount=function(t){this._count=this._count+(t||1)},i.hashcode=function(){return Hashcode.value(this.getQuery())},i.toObject=function(){var t={};return e.each(this.getClickRecords(),function(e,n){t[e]=n.toObject()}),{query:this.getQuery(),count:this.getCount(),last:this.lastExecutedAt(),clicks:t}},i._sanitizeQuery=function(t){var n={};return e.each(this._legalQueryKeys,function(e,i){t[i]&&(n[i]=t[i])}),n}}(window,jQuery),function(t,e){"use strict";var n=t._InternalSwiftype=t._InternalSwiftype||{};n.InstallRecord=function(t,e){this._installKey=t,this._queryRecords=e},n.InstallRecord.fromObject=function(t){var i={};return e.each(t.queries,function(t,e){i[t]=n.QueryRecord.fromObject(e)}),new n.InstallRecord(t.installKey,i)},n.InstallRecord.fromInstallKey=function(t){return new n.InstallRecord(t,{})};var i=n.InstallRecord.prototype;i.getInstallKey=function(){return this._installKey},i.registerQuery=function(t){var e=this._getQueryForFullQuery(t);e.incrementCount(),e.updateLastExecuted()},i.registerClickForQuery=function(t,e){this._getQueryForFullQuery(t).registerClickByResultId(e)},i.getMostRecentClickAndQuery=function(){var t=null,n=null;return e.each(this.getQueryRecords(),function(i,r){e.each(r.getClickRecords(),function(e,i){(null===t||i.getLastClicked()>t.getLastClicked())&&(t=i,n=r)})}),{queryRecord:n,clickRecord:t}},i.getRecentResultIds=function(){var t=10,n=[];return e.each(this.getQueryRecords(),function(i,r){return e.each(r.getClickResultIds(),function(e,i){return n.push(i),n.lengthi.lastExecutedAt())&&(n=e)}),n},i.getQueryRecords=function(){return this._queryRecords},i.getSortedQueryRecordsByExecutedAt=function(){return e.map(this._queryRecords,function(t){return t}).sort(function(t,e){return t._last-e._last})},i.hashcode=function(){return Hashcode.value(this.getInstallKey())},i.toObject=function(){var t={};return e.each(this.getQueryRecords(),function(e,n){t[e]=n.toObject()}),{installKey:this.getInstallKey(),queries:t}},i._getQueryForFullQuery=function(t){var e=new n.QueryRecord.fromQuery(t);return e=this._queryRecords[e.hashcode()]||e,this._queryRecords[e.hashcode()]=e,e}}(window,jQuery),function(t,e){"use strict";var n=t._InternalSwiftype=t._InternalSwiftype||{},i=t._InternalSwiftype.Cookies;n.SearchHistory=function(t){this._cookieName="st-sh",this._expires=36135,this._path="/",this._version=1,this._maximumByteSize=512,this._installKey=t,this._initializeFromCookie(),this._migrateCookieVersionIfNeeded()},n.SearchHistory.forLastActiveInstall=function(){return new n.SearchHistory},n.SearchHistory.forInstallKey=function(t){return new n.SearchHistory(t)};var r=n.SearchHistory.prototype;r._migrateCookieVersionIfNeeded=function(){this.getCookieVersion()&&this.getVersion()!==this.getCookieVersion()&&this._migrateCookieVersion(this.getCookieVersion(),this.getVersion())},r._initializeFromCookie=function(){var t=this;if(this._st_cookies=i.get(this._cookieName)||{},this._st_cookies.installRecords=this._st_cookies.installRecords||{},this._installRecordObjects=this._st_cookies.installRecords,this._installRecords={},e.each(this._installRecordObjects,function(e,i){var r=new n.InstallRecord.fromObject(i);t._installRecords[r.hashcode()]=r}),this._installKey){var r=new n.InstallRecord.fromInstallKey(this._installKey);this._installRecords[r.hashcode()]=this._installRecords[r.hashcode()]||r,this._activeInstallRecord=this._installRecords[r.hashcode()]}else this._activeInstallRecord=this._getLastActiveInstallRecord()},r.getVersion=function(){return this._version},r.getCookieVersion=function(){return this._st_cookies.version},r.trackQueryForActiveInstall=function(t){this._activeInstallRecord.registerQuery(t),this._save()},r.trackClickForActiveInstall=function(t,e){this._activeInstallRecord.registerClickForQuery(t,e),this._save()},r.getActiveInstallRecord=function(){return this._activeInstallRecord},r._getInstallRecords=function(){return this._installRecords},r._toObject=function(){var t={};t.version=this._version;var n={};return e.each(this._installRecords,function(t,e){n[t]=e.toObject()}),t.installRecords=n,t},r._save=function(){return this._enforceMaximumCookieSize()?(i.set(this._cookieName,this._toObject(),this._options()),!0):(this._deleteCookieAndReset(),!1)},r._enforceMaximumCookieSize=function(){for(var t=!0,e=100,n=0;this._currentStringifiedCookieSizeInBytes()>this._maximumByteSize;){if(!this._removeOldestQuery()){t=!1;break}if(n>=e){t=!1;break}n++}return t},r._removeOldestQuery=function(){var t=this._getInstallWithOldestLastQueryExecutionTime();return!!t&&t.removeOldestQuery()},r._byteLength=function(t){for(var e=t.length,n=t.length-1;n>=0;n--){var i=t.charCodeAt(n);i>127&&i<=2047?e++:i>2047&&i<=65535&&(e+=2),i>=56320&&i<=57343&&n--}return e},r._currentStringifiedCookieSizeInBytes=function(){var t=i.cookieStringOnly(this._cookieName,this._toObject(),this._options());return this._byteLength(t)},r._migrateCookieVersion=function(){i.remove(this._cookieName,this._options())},r._options=function(){return{expires:this._expires,path:this._path}},r._getInstallRecordObjects=function(){return this._st_cookies.installRecords=this._st_cookies.installRecords||{},this._st_cookies.installRecords},r._getInstallWithOldestLastQueryExecutionTime=function(){var t=null;return e.each(this._getInstallRecords(),function(e,n){null===t?t=n:n.getLastQueryExecutionTime()t.getLastQueryExecutionTime()&&(t=n)}),t},r._resetFromCookie=function(){this._initializeFromCookie()},r._deleteCookieAndReset=function(){i.remove(this._cookieName,this._options),this._resetFromCookie()}}(window,jQuery),function(){"use strict";function t(t){var e,n,i,r,o=Array.prototype.slice.call(arguments,1);for(e=0,n=o.length;ee&&(Pt=0,qt={line:1,column:1,seenCR:!1}),n(qt,Pt,e),Pt=e),qt}function i(t){jtUt&&(Ut=jt,Bt=[]),Bt.push(t))}function r(i,r,o){function s(t){var e=1;for(t.sort(function(t,e){return t.descriptione.description?1:0});e1?s.slice(0,-1).join(", ")+" or "+s[t.length-1]:s[0],r=e?'"'+n(e)+'"':"end of input","Expected "+i+" but "+r+" found."}var l=n(o),u=o1?arguments[1]:{},I={},R={start:o},M=o,E=function(t){return{type:"messageFormatPattern",elements:t}},A=I,O=function(t){var e,n,i,r,o,s="";for(e=0,i=t.length;e=0&&t<=1?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"am",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t));return t=Math.floor(t),0===e||1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ar",pluralRuleFunction:function(t){return t=Math.floor(t),0===t?"zero":1===t?"one":2===t?"two":t%100===Math.floor(t%100)&&t%100>=3&&t%100<=10?"few":t%100===Math.floor(t%100)&&t%100>=11&&t%100<=99?"many":"other"}}),IntlMessageFormat.__addLocaleData({locale:"as",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"asa",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ast",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"az",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"be",pluralRuleFunction:function(t){return t=Math.floor(t),t%10==1&&t%100!=11?"one":t%10===Math.floor(t%10)&&t%10>=2&&t%10<=4&&!(t%100>=12&&t%100<=14)?"few":t%10==0||t%10===Math.floor(t%10)&&t%10>=5&&t%10<=9||t%100===Math.floor(t%100)&&t%100>=11&&t%100<=14?"many":"other"}}),IntlMessageFormat.__addLocaleData({locale:"bem",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"bez",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"bg",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"bm",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"bn",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t));return t=Math.floor(t),0===e||1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"bo",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"br",pluralRuleFunction:function(t){return t=Math.floor(t),t%10==1&&t%100!=11&&t%100!=71&&t%100!=91?"one":t%10==2&&t%100!=12&&t%100!=72&&t%100!=92?"two":t%10===Math.floor(t%10)&&(t%10>=3&&t%10<=4||t%10==9)&&!(t%100>=10&&t%100<=19||t%100>=70&&t%100<=79||t%100>=90&&t%100<=99)?"few":0!==t&&t%1e6==0?"many":"other"}}),IntlMessageFormat.__addLocaleData({locale:"brx",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"bs",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length,i=parseInt(t.toString().replace(/^[^.]*\.?/,""),10);return t=Math.floor(t),0===n&&e%10==1&&(e%100!=11||i%10==1&&i%100!=11)?"one":0===n&&e%10===Math.floor(e%10)&&e%10>=2&&e%10<=4&&(!(e%100>=12&&e%100<=14)||i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14))?"few":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ca",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"cgg",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"chr",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"cs",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":e===Math.floor(e)&&e>=2&&e<=4&&0===n?"few":0!==n?"many":"other"}}),IntlMessageFormat.__addLocaleData({locale:"cy",pluralRuleFunction:function(t){return t=Math.floor(t),0===t?"zero":1===t?"one":2===t?"two":3===t?"few":6===t?"many":"other"}}),IntlMessageFormat.__addLocaleData({locale:"da",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=parseInt(t.toString().replace(/^[^.]*\.?|0+$/g,""),10);return t=Math.floor(t),1===t||0!==n&&(0===e||1===e)?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"de",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"dz",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"ee",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"el",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"en",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"eo",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"es",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"et",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"eu",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"fa",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t));return t=Math.floor(t),0===e||1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ff",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t));return t=Math.floor(t),0===e||1===e?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"fi",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"fil",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length,i=parseInt(t.toString().replace(/^[^.]*\.?/,""),10);return t=Math.floor(t),0===n&&(1===e||2===e||3===e||0===n&&(e%10!=4&&e%10!=6&&e%10!=9||0!==n&&i%10!=4&&i%10!=6&&i%10!=9))?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"fo",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"fr",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t));return t=Math.floor(t),0===e||1===e?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"fur",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"fy",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ga",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":2===t?"two":t===Math.floor(t)&&t>=3&&t<=6?"few":t===Math.floor(t)&&t>=7&&t<=10?"many":"other"}}),IntlMessageFormat.__addLocaleData({locale:"gd",pluralRuleFunction:function(t){return t=Math.floor(t),1===t||11===t?"one":2===t||12===t?"two":t===Math.floor(t)&&(t>=3&&t<=10||t>=13&&t<=19)?"few":"other"}}),IntlMessageFormat.__addLocaleData({locale:"gl",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"gsw",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"gu",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t));return t=Math.floor(t),0===e||1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"gv",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),0===n&&e%10==1?"one":0===n&&e%10==2?"two":0!==n||e%100!=0&&e%100!=20&&e%100!=40&&e%100!=60&&e%100!=80?0!==n?"many":"other":"few"}}),IntlMessageFormat.__addLocaleData({locale:"ha",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"haw",pluralRuleFunction:function(t){return t=Math.floor(t), +1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"he",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":2===e&&0===n?"two":0!==n||t>=0&&t<=10||t%10!=0?"other":"many"}}),IntlMessageFormat.__addLocaleData({locale:"hi",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t));return t=Math.floor(t),0===e||1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"hr",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length,i=parseInt(t.toString().replace(/^[^.]*\.?/,""),10);return t=Math.floor(t),0===n&&e%10==1&&(e%100!=11||i%10==1&&i%100!=11)?"one":0===n&&e%10===Math.floor(e%10)&&e%10>=2&&e%10<=4&&(!(e%100>=12&&e%100<=14)||i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14))?"few":"other"}}),IntlMessageFormat.__addLocaleData({locale:"hu",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"hy",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t));return t=Math.floor(t),0===e||1===e?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"id",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"ig",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"ii",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"is",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=parseInt(t.toString().replace(/^[^.]*\.?|0+$/g,""),10);return t=Math.floor(t),0!==n||e%10!=1||e%100==11&&0===n?"other":"one"}}),IntlMessageFormat.__addLocaleData({locale:"it",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ja",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"jgo",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"jmc",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ka",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"kab",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t));return t=Math.floor(t),0===e||1===e?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"kde",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"kea",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"kk",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"kkj",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"kl",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"km",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"kn",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t));return t=Math.floor(t),0===e||1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ko",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"ks",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ksb",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ksh",pluralRuleFunction:function(t){return t=Math.floor(t),0===t?"zero":1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"kw",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":2===t?"two":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ky",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"lag",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t));return t=Math.floor(t),0===t?"zero":0!==e&&1!==e||0===t?"other":"one"}}),IntlMessageFormat.__addLocaleData({locale:"lg",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"lkt",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"ln",pluralRuleFunction:function(t){return t=Math.floor(t),t===Math.floor(t)&&t>=0&&t<=1?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"lo",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"lt",pluralRuleFunction:function(t){var e=parseInt(t.toString().replace(/^[^.]*\.?/,""),10);return t=Math.floor(t),t%10!=1||t%100>=11&&t%100<=19?t%10===Math.floor(t%10)&&t%10>=2&&t%10<=9&&!(t%100>=11&&t%100<=19)?"few":0!==e?"many":"other":"one"}}),IntlMessageFormat.__addLocaleData({locale:"lv",pluralRuleFunction:function(t){var e=t.toString().replace(/^[^.]*\.?/,"").length,n=parseInt(t.toString().replace(/^[^.]*\.?/,""),10);return t=Math.floor(t),t%10==0||t%100===Math.floor(t%100)&&t%100>=11&&t%100<=19||2===e&&n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?"zero":t%10==1&&(t%100!=11||2===e&&n%10==1&&(n%100!=11||2!==e&&n%10==1))?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"mas",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"mg",pluralRuleFunction:function(t){return t=Math.floor(t),t===Math.floor(t)&&t>=0&&t<=1?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"mgo",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"mk",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length,i=parseInt(t.toString().replace(/^[^.]*\.?/,""),10);return t=Math.floor(t),0!==n||e%10!=1&&i%10!=1?"other":"one"}}),IntlMessageFormat.__addLocaleData({locale:"ml",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"mn",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"mr",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t));return t=Math.floor(t),0===e||1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ms",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"mt",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":0===t||t%100===Math.floor(t%100)&&t%100>=2&&t%100<=10?"few":t%100===Math.floor(t%100)&&t%100>=11&&t%100<=19?"many":"other"}}),IntlMessageFormat.__addLocaleData({locale:"my",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"naq",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":2===t?"two":"other"}}),IntlMessageFormat.__addLocaleData({locale:"nb",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"nd",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ne",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"nl",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"nn",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"nnh",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"nr",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"nso",pluralRuleFunction:function(t){return t=Math.floor(t),t===Math.floor(t)&&t>=0&&t<=1?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"nyn",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"om",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"or",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"os",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"pa",pluralRuleFunction:function(t){return t=Math.floor(t),t===Math.floor(t)&&t>=0&&t<=1?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"pl",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":0===n&&e%10===Math.floor(e%10)&&e%10>=2&&e%10<=4&&!(e%100>=12&&e%100<=14)?"few":0===n&&1!==e&&(e%10===Math.floor(e%10)&&e%10>=0&&e%10<=1||0===n&&(e%10===Math.floor(e%10)&&e%10>=5&&e%10<=9||0===n&&e%100===Math.floor(e%100)&&e%100>=12&&e%100<=14))?"many":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ps",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"pt",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length,i=parseInt(t.toString().replace(/^[^.]*\.?|0+$/g,""),10);return t=Math.floor(t),1===e&&(0===n||0===e&&1===i)?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"rm",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ro",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":0!==n||0===t||1!==t&&t%100===Math.floor(t%100)&&t%100>=1&&t%100<=19?"few":"other"}}),IntlMessageFormat.__addLocaleData({locale:"rof",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ru",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),0===n&&e%10==1&&e%100!=11?"one":0===n&&e%10===Math.floor(e%10)&&e%10>=2&&e%10<=4&&!(e%100>=12&&e%100<=14)?"few":0===n&&(e%10==0||0===n&&(e%10===Math.floor(e%10)&&e%10>=5&&e%10<=9||0===n&&e%100===Math.floor(e%100)&&e%100>=11&&e%100<=14))?"many":"other"}}),IntlMessageFormat.__addLocaleData({locale:"rwk",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"sah",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"saq",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"se",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":2===t?"two":"other"}}),IntlMessageFormat.__addLocaleData({locale:"seh",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ses",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"sg",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"shi",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t));return t=Math.floor(t),0===e||1===t?"one":t===Math.floor(t)&&t>=2&&t<=10?"few":"other"}}),IntlMessageFormat.__addLocaleData({locale:"si",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=parseInt(t.toString().replace(/^[^.]*\.?/,""),10);return t=Math.floor(t),0===t||1===t||0===e&&1===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"sk",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":e===Math.floor(e)&&e>=2&&e<=4&&0===n?"few":0!==n?"many":"other"}}),IntlMessageFormat.__addLocaleData({locale:"sl",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),0===n&&e%100==1?"one":0===n&&e%100==2?"two":0===n&&(e%100===Math.floor(e%100)&&e%100>=3&&e%100<=4||0!==n)?"few":"other"}}),IntlMessageFormat.__addLocaleData({locale:"sn",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"so",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"sq",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"sr",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length,i=parseInt(t.toString().replace(/^[^.]*\.?/,""),10);return t=Math.floor(t),0===n&&e%10==1&&(e%100!=11||i%10==1&&i%100!=11)?"one":0===n&&e%10===Math.floor(e%10)&&e%10>=2&&e%10<=4&&(!(e%100>=12&&e%100<=14)||i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14))?"few":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ss",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ssy",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"st",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"sv",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"sw",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ta",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"te",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"teo",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"th",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"ti",pluralRuleFunction:function(t){return t=Math.floor(t),t===Math.floor(t)&&t>=0&&t<=1?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"tig",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"tn",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"to",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"tr",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ts",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"tzm",pluralRuleFunction:function(t){return t=Math.floor(t),t===Math.floor(t)&&t>=0&&t<=1||t===Math.floor(t)&&t>=11&&t<=99?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ug",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"uk",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),0===n&&e%10==1&&e%100!=11?"one":0===n&&e%10===Math.floor(e%10)&&e%10>=2&&e%10<=4&&!(e%100>=12&&e%100<=14)?"few":0===n&&(e%10==0||0===n&&(e%10===Math.floor(e%10)&&e%10>=5&&e%10<=9||0===n&&e%100===Math.floor(e%100)&&e%100>=11&&e%100<=14))?"many":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ur",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"uz",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ve",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"vi",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"vo",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"vun",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"wae",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"xh",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"xog",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"yo",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"zh",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"zu",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t));return t=Math.floor(t),0===e||1===t?"one":"other"}}),function(t,e,n,i){var r=0,o=function(){var e=i.userAgent,n=/msie\s\d+/i;return 0(e=e.split(" ")[1]))&&(t("html").addClass("lt-ie9"),!0)}();Function.prototype.bind||(Function.prototype.bind=function(t){var e=this,n=[].slice;if("function"!=typeof e)throw new TypeError;var i=n.call(arguments,1),r=function(){if(this instanceof r){var o=function(){};o.prototype=e.prototype;var o=new o,s=e.apply(o,i.concat(n.call(arguments)));return Object(s)===s?s:o}return e.apply(t,i.concat(n.call(arguments)))};return r}),Array.prototype.indexOf||(Array.prototype.indexOf=function(t,e){var n;if(null==this)throw new TypeError('"this" is null or not defined');var i=Object(this),r=i.length>>>0;if(0===r)return-1;if(n=+e||0,Infinity===Math.abs(n)&&(n=0),n>=r)return-1;for(n=Math.max(0<=n?n:r-Math.abs(n),0);n'),this.$cache.input.prop("readonly",!0),this.$cache.cont=this.$cache.input.prev(),this.result.slider=this.$cache.cont,this.$cache.cont.html('01000'),this.$cache.rs=this.$cache.cont.find(".irs"),this.$cache.min=this.$cache.cont.find(".irs-min"),this.$cache.max=this.$cache.cont.find(".irs-max"),this.$cache.from=this.$cache.cont.find(".irs-from"),this.$cache.to=this.$cache.cont.find(".irs-to"),this.$cache.single=this.$cache.cont.find(".irs-single"),this.$cache.bar=this.$cache.cont.find(".irs-bar"),this.$cache.line=this.$cache.cont.find(".irs-line"),this.$cache.grid=this.$cache.cont.find(".irs-grid"),"single"===this.options.type?(this.$cache.cont.append(''),this.$cache.s_single=this.$cache.cont.find(".single"),this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.shad_single=this.$cache.cont.find(".shadow-single")):(this.$cache.cont.append(''),this.$cache.s_from=this.$cache.cont.find(".from"),this.$cache.s_to=this.$cache.cont.find(".to"),this.$cache.shad_from=this.$cache.cont.find(".shadow-from"),this.$cache.shad_to=this.$cache.cont.find(".shadow-to")),this.options.hide_from_to&&(this.$cache.from[0].style.display="none",this.$cache.to[0].style.display="none",this.$cache.single[0].style.display="none"),this.appendGrid(),this.options.disable?(this.appendDisableMask(),this.$cache.input[0].disabled=!0):(this.$cache.cont.removeClass("irs-disabled"),this.$cache.input[0].disabled=!1,this.bindEvents())},appendDisableMask:function(){this.$cache.cont.append(''),this.$cache.cont.addClass("irs-disabled")},remove:function(){this.$cache.cont.remove(),this.$cache.cont=null,this.$cache.line.off("keydown.irs_"+this.plugin_count),this.$cache.body.off("touchmove.irs_"+this.plugin_count),this.$cache.body.off("mousemove.irs_"+this.plugin_count),this.$cache.win.off("touchend.irs_"+this.plugin_count),this.$cache.win.off("mouseup.irs_"+this.plugin_count),o&&(this.$cache.body.off("mouseup.irs_"+this.plugin_count),this.$cache.body.off("mouseleave.irs_"+this.plugin_count)),this.$cache.grid_labels=[],this.coords.big=[],this.coords.big_w=[],this.coords.big_p=[],this.coords.big_x=[],cancelAnimationFrame(this.raf_id)},bindEvents:function(){this.$cache.body.on("touchmove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.body.on("mousemove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.win.on("touchend.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.win.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.line.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.options.drag_interval&&"double"===this.options.type?(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"both")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"both"))):(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),"single"===this.options.type?(this.$cache.s_single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.shad_single.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.s_single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.shad_single.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))):(this.$cache.s_from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.s_from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),this.options.keyboard&&this.$cache.line.on("keydown.irs_"+this.plugin_count,this.key.bind(this,"keyboard")),o&&(this.$cache.body.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.body.on("mouseleave.irs_"+this.plugin_count,this.pointerUp.bind(this)))},pointerMove:function(t){this.dragging&&(this.coords.x_pointer=(t.pageX||t.originalEvent.touches&&t.originalEvent.touches[0].pageX)-this.coords.x_gap,this.calc())},pointerUp:function(e){if(this.current_plugin===this.plugin_count&&this.is_active){this.is_active=!1;var n=this.options.onFinish&&"function"==typeof this.options.onFinish;e=t.contains(this.$cache.cont[0],e.target)||this.dragging,n&&e&&this.options.onFinish(this.result),this.$cache.cont.find(".state_hover").removeClass("state_hover"),this.force_redraw=!0,this.dragging=!1,o&&t("*").prop("unselectable",!1),this.updateScene()}},pointerDown:function(e,n){n.preventDefault();var i=n.pageX||n.originalEvent.touches&&n.originalEvent.touches[0].pageX;if(2!==n.button){switch(this.current_plugin=this.plugin_count,this.target=e,this.dragging=this.is_active=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=i-this.coords.x_gap,this.calcPointer(),e){case"single":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_single);break;case"from":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_from),this.$cache.s_from.addClass("state_hover"),this.$cache.s_from.addClass("type_last"),this.$cache.s_to.removeClass("type_last");break;case"to":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_to),this.$cache.s_to.addClass("state_hover"),this.$cache.s_to.addClass("type_last"),this.$cache.s_from.removeClass("type_last");break;case"both":this.coords.p_gap_left=this.toFixed(this.coords.p_pointer-this.coords.p_from),this.coords.p_gap_right=this.toFixed(this.coords.p_to-this.coords.p_pointer),this.$cache.s_to.removeClass("type_last"),this.$cache.s_from.removeClass("type_last")}o&&t("*").prop("unselectable",!0),this.$cache.line.trigger("focus"),this.updateScene()}},pointerClick:function(t,e){e.preventDefault();var n=e.pageX||e.originalEvent.touches&&e.originalEvent.touches[0].pageX;2!==e.button&&(this.current_plugin=this.plugin_count,this.target=t,this.is_click=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=+(n-this.coords.x_gap).toFixed(),this.force_redraw=!0,this.calc(),this.$cache.line.trigger("focus"))},key:function(t,e){if(!(this.current_plugin!==this.plugin_count||e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)){switch(e.which){case 83:case 65:case 40:case 37:e.preventDefault(),this.moveByKey(!1);break;case 87:case 68:case 38:case 39:e.preventDefault(),this.moveByKey(!0)}return!0}},moveByKey:function(t){var e=this.coords.p_pointer,e=t?e+this.options.keyboard_step:e-this.options.keyboard_step;this.coords.x_pointer=this.toFixed(this.coords.w_rs/100*e),this.is_key=!0,this.calc()},setMinMax:function(){this.options&&(this.options.hide_min_max?(this.$cache.min[0].style.display="none",this.$cache.max[0].style.display="none"):(this.options.values.length?(this.$cache.min.html(this.decorate(this.options.p_values[this.options.min])),this.$cache.max.html(this.decorate(this.options.p_values[this.options.max]))):(this.$cache.min.html(this.decorate(this._prettify(this.options.min),this.options.min)),this.$cache.max.html(this.decorate(this._prettify(this.options.max),this.options.max))),this.labels.w_min=this.$cache.min.outerWidth(!1),this.labels.w_max=this.$cache.max.outerWidth(!1)))},calc:function(t){if(this.options&&(this.calc_count++,(10===this.calc_count||t)&&(this.calc_count=0,this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_handle="single"===this.options.type?this.$cache.s_single.outerWidth(!1):this.$cache.s_from.outerWidth(!1)),this.coords.w_rs)){this.calcPointer(),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100),t=100-this.coords.p_handle;var e=this.toFixed(this.coords.p_pointer-this.coords.p_gap);switch("click"===this.target&&(e=this.toFixed(this.coords.p_pointer-this.coords.p_handle/2),this.target=this.chooseHandle(e)),0>e?e=0:e>t&&(e=t),this.target){case"base":e=(this.options.max-this.options.min)/100,t=(this.result.from-this.options.min)/e,e=(this.result.to-this.options.min)/e,this.coords.p_single_real=this.toFixed(t),this.coords.p_from_real=this.toFixed(t),this.coords.p_to_real=this.toFixed(e),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_single=this.toFixed(t-this.coords.p_handle/100*t),this.coords.p_from=this.toFixed(t-this.coords.p_handle/100*t),this.coords.p_to=this.toFixed(e-this.coords.p_handle/100*e),this.target=null;break;case"single":if(this.options.from_fixed)break;this.coords.p_single_real=this.calcWithStep(e/t*100),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_single=this.toFixed(this.coords.p_single_real/100*t);break;case"from":if(this.options.from_fixed)break;this.coords.p_from_real=this.calcWithStep(e/t*100),this.coords.p_from_real>this.coords.p_to_real&&(this.coords.p_from_real=this.coords.p_to_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"), +this.coords.p_from_real=this.checkMaxInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from=this.toFixed(this.coords.p_from_real/100*t);break;case"to":if(this.options.to_fixed)break;this.coords.p_to_real=this.calcWithStep(e/t*100),this.coords.p_to_realthis.coords.x_pointer||isNaN(this.coords.x_pointer)?this.coords.x_pointer=0:this.coords.x_pointer>this.coords.w_rs&&(this.coords.x_pointer=this.coords.w_rs),this.coords.p_pointer=this.toFixed(this.coords.x_pointer/this.coords.w_rs*100)):this.coords.p_pointer=0},chooseHandle:function(t){return"single"===this.options.type?"single":t>=this.coords.p_from_real+(this.coords.p_to_real-this.coords.p_from_real)/2?this.options.to_fixed?"from":"to":this.options.from_fixed?"to":"from"},calcMinMax:function(){this.coords.w_rs&&(this.labels.p_min=this.labels.w_min/this.coords.w_rs*100,this.labels.p_max=this.labels.w_max/this.coords.w_rs*100)},calcLabels:function(){this.coords.w_rs&&!this.options.hide_from_to&&("single"===this.options.type?(this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=this.coords.p_single+this.coords.p_handle/2-this.labels.p_single/2):(this.labels.w_from=this.$cache.from.outerWidth(!1),this.labels.p_from=this.labels.w_from/this.coords.w_rs*100,this.labels.p_from_left=this.coords.p_from+this.coords.p_handle/2-this.labels.p_from/2,this.labels.p_from_left=this.toFixed(this.labels.p_from_left),this.labels.p_from_left=this.checkEdges(this.labels.p_from_left,this.labels.p_from),this.labels.w_to=this.$cache.to.outerWidth(!1),this.labels.p_to=this.labels.w_to/this.coords.w_rs*100,this.labels.p_to_left=this.coords.p_to+this.coords.p_handle/2-this.labels.p_to/2,this.labels.p_to_left=this.toFixed(this.labels.p_to_left),this.labels.p_to_left=this.checkEdges(this.labels.p_to_left,this.labels.p_to),this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=(this.labels.p_from_left+this.labels.p_to_left+this.labels.p_to)/2-this.labels.p_single/2,this.labels.p_single_left=this.toFixed(this.labels.p_single_left)),this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single))},updateScene:function(){this.raf_id&&(cancelAnimationFrame(this.raf_id),this.raf_id=null),clearTimeout(this.update_tm),this.update_tm=null,this.options&&(this.drawHandles(),this.is_active?this.raf_id=requestAnimationFrame(this.updateScene.bind(this)):this.update_tm=setTimeout(this.updateScene.bind(this),300))},drawHandles:function(){this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&(this.coords.w_rs!==this.coords.w_rs_old&&(this.target="base",this.is_resize=!0),(this.coords.w_rs!==this.coords.w_rs_old||this.force_redraw)&&(this.setMinMax(),this.calc(!0),this.drawLabels(),this.options.grid&&(this.calcGridMargin(),this.calcGridLabels()),this.force_redraw=!0,this.coords.w_rs_old=this.coords.w_rs,this.drawShadow()),this.coords.w_rs&&(this.dragging||this.force_redraw||this.is_key)&&((this.old_from!==this.result.from||this.old_to!==this.result.to||this.force_redraw||this.is_key)&&(this.drawLabels(),this.$cache.bar[0].style.left=this.coords.p_bar_x+"%",this.$cache.bar[0].style.width=this.coords.p_bar_w+"%","single"===this.options.type?(this.$cache.s_single[0].style.left=this.coords.p_single+"%",this.$cache.single[0].style.left=this.labels.p_single_left+"%",this.options.values.length?(this.$cache.input.prop("value",this.result.from_value),this.$cache.input.data("from",this.result.from_value)):(this.$cache.input.prop("value",this.result.from),this.$cache.input.data("from",this.result.from))):(this.$cache.s_from[0].style.left=this.coords.p_from+"%",this.$cache.s_to[0].style.left=this.coords.p_to+"%",(this.old_from!==this.result.from||this.force_redraw)&&(this.$cache.from[0].style.left=this.labels.p_from_left+"%"),(this.old_to!==this.result.to||this.force_redraw)&&(this.$cache.to[0].style.left=this.labels.p_to_left+"%"),this.$cache.single[0].style.left=this.labels.p_single_left+"%",this.options.values.length?(this.$cache.input.prop("value",this.result.from_value+";"+this.result.to_value),this.$cache.input.data("from",this.result.from_value),this.$cache.input.data("to",this.result.to_value)):(this.$cache.input.prop("value",this.result.from+";"+this.result.to),this.$cache.input.data("from",this.result.from),this.$cache.input.data("to",this.result.to))),this.old_from===this.result.from&&this.old_to===this.result.to||this.is_start||this.$cache.input.trigger("change"),this.old_from=this.result.from,this.old_to=this.result.to,!this.options.onChange||"function"!=typeof this.options.onChange||this.is_resize||this.is_update||this.is_start||this.options.onChange(this.result),this.options.onFinish&&"function"==typeof this.options.onFinish&&(this.is_key||this.is_click)&&this.options.onFinish(this.result),this.is_resize=this.is_update=!1),this.force_redraw=this.is_click=this.is_key=this.is_start=!1))},drawLabels:function(){if(this.options){var t,e=this.options.values.length,n=this.options.p_values;if(!this.options.hide_from_to)if("single"===this.options.type)e=e?this.decorate(n[this.result.from]):this.decorate(this._prettify(this.result.from),this.result.from),this.$cache.single.html(e),this.calcLabels(),this.$cache.min[0].style.visibility=this.labels.p_single_left100-this.labels.p_max-1?"hidden":"visible";else{e?(this.options.decorate_both?(e=this.decorate(n[this.result.from]),e+=this.options.values_separator,e+=this.decorate(n[this.result.to])):e=this.decorate(n[this.result.from]+this.options.values_separator+n[this.result.to]),t=this.decorate(n[this.result.from]),n=this.decorate(n[this.result.to])):(this.options.decorate_both?(e=this.decorate(this._prettify(this.result.from)),e+=this.options.values_separator,e+=this.decorate(this._prettify(this.result.to))):e=this.decorate(this._prettify(this.result.from)+this.options.values_separator+this._prettify(this.result.to),this.result.from),t=this.decorate(this._prettify(this.result.from),this.result.from),n=this.decorate(this._prettify(this.result.to),this.result.to)),this.$cache.single.html(e),this.$cache.from.html(t),this.$cache.to.html(n),this.calcLabels(),n=Math.min(this.labels.p_single_left,this.labels.p_from_left),e=this.labels.p_single_left+this.labels.p_single,t=this.labels.p_to_left+this.labels.p_to;var i=Math.max(e,t);this.labels.p_from_left+this.labels.p_from>=this.labels.p_to_left?(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",this.result.from===this.result.to?(this.$cache.from[0].style.visibility="visible",this.$cache.single[0].style.visibility="hidden",i=t):(this.$cache.from[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",i=Math.max(e,t))):(this.$cache.from[0].style.visibility="visible",this.$cache.to[0].style.visibility="visible",this.$cache.single[0].style.visibility="hidden"),this.$cache.min[0].style.visibility=n100-this.labels.p_max-1?"hidden":"visible"}}},drawShadow:function(){var t=this.options,e=this.$cache,n="number"==typeof t.from_min&&!isNaN(t.from_min),i="number"==typeof t.from_max&&!isNaN(t.from_max),r="number"==typeof t.to_min&&!isNaN(t.to_min),o="number"==typeof t.to_max&&!isNaN(t.to_max);"single"===t.type?t.from_shadow&&(n||i)?(n=this.calcPercent(t.from_min||t.min),i=this.calcPercent(t.from_max||t.max)-n,n=this.toFixed(n-this.coords.p_handle/100*n),i=this.toFixed(i-this.coords.p_handle/100*i),n+=this.coords.p_handle/2,e.shad_single[0].style.display="block",e.shad_single[0].style.left=n+"%",e.shad_single[0].style.width=i+"%"):e.shad_single[0].style.display="none":(t.from_shadow&&(n||i)?(n=this.calcPercent(t.from_min||t.min),i=this.calcPercent(t.from_max||t.max)-n,n=this.toFixed(n-this.coords.p_handle/100*n),i=this.toFixed(i-this.coords.p_handle/100*i),n+=this.coords.p_handle/2,e.shad_from[0].style.display="block",e.shad_from[0].style.left=n+"%",e.shad_from[0].style.width=i+"%"):e.shad_from[0].style.display="none",t.to_shadow&&(r||o)?(r=this.calcPercent(t.to_min||t.min),t=this.calcPercent(t.to_max||t.max)-r,r=this.toFixed(r-this.coords.p_handle/100*r),t=this.toFixed(t-this.coords.p_handle/100*t),r+=this.coords.p_handle/2,e.shad_to[0].style.display="block",e.shad_to[0].style.left=r+"%",e.shad_to[0].style.width=t+"%"):e.shad_to[0].style.display="none")},toggleInput:function(){this.$cache.input.toggleClass("irs-hidden-input")},calcPercent:function(t){return this.toFixed((t-this.options.min)/((this.options.max-this.options.min)/100))},calcReal:function(t){var e=this.options.min,n=this.options.max,i=0;return 0>e&&(i=Math.abs(e),e+=i,n+=i),t=(n-e)/100*t+e,(e=this.options.step.toString().split(".")[1])?t=+t.toFixed(e.length):(t/=this.options.step,t*=this.options.step,t=+t.toFixed(0)),i&&(t-=i),tthis.options.max&&(t=this.options.max),e?+t.toFixed(e.length):this.toFixed(t)},calcWithStep:function(t){var e=Math.round(t/this.coords.p_step)*this.coords.p_step;return 100i.max_interval&&(t=e-i.max_interval):t-e>i.max_interval&&(t=e+i.max_interval),this.calcPercent(t)):t},checkDiapason:function(t,e,n){t=this.calcReal(t);var i=this.options;return e&&"number"==typeof e||(e=i.min),n&&"number"==typeof n||(n=i.max),tn&&(t=n),this.calcPercent(t)},toFixed:function(t){return+(t=t.toFixed(5))},_prettify:function(t){return this.options.prettify_enabled?this.options.prettify&&"function"==typeof this.options.prettify?this.options.prettify(t):this.prettify(t):t},prettify:function(t){return t.toString().replace(/(\d{1,3}(?=(?:\d\d\d)+(?!\d)))/g,"$1"+this.options.prettify_separator)},checkEdges:function(t,e){return this.options.force_edges?(0>t?t=0:t>100-e&&(t=100-e),this.toFixed(t)):this.toFixed(t)},validate:function(){var t,e,n=this.options,i=this.result,r=n.values,o=r.length;if("string"==typeof n.min&&(n.min=+n.min),"string"==typeof n.max&&(n.max=+n.max),"string"==typeof n.from&&(n.from=+n.from),"string"==typeof n.to&&(n.to=+n.to),"string"==typeof n.step&&(n.step=+n.step),"string"==typeof n.from_min&&(n.from_min=+n.from_min),"string"==typeof n.from_max&&(n.from_max=+n.from_max),"string"==typeof n.to_min&&(n.to_min=+n.to_min),"string"==typeof n.to_max&&(n.to_max=+n.to_max),"string"==typeof n.keyboard_step&&(n.keyboard_step=+n.keyboard_step),"string"==typeof n.grid_num&&(n.grid_num=+n.grid_num),n.max<=n.min&&(n.max=n.min?2*n.min:n.min+1,n.step=1),o)for(n.p_values=[],n.min=0,n.max=o-1,n.step=1,n.grid_num=n.max,n.grid_snap=!0,e=0;en.max)&&(n.from=n.min),(n.to>n.max||n.ton.to&&(n.from=n.to),("number"!=typeof n.step||isNaN(n.step)||!n.step||0>n.step)&&(n.step=1),("number"!=typeof n.keyboard_step||isNaN(n.keyboard_step)||!n.keyboard_step||0>n.keyboard_step)&&(n.keyboard_step=5),n.from_min&&n.fromn.from_max&&(n.from=n.from_max),n.to_min&&n.ton.to_max&&(n.to=n.to_max),i&&(i.min!==n.min&&(i.min=n.min),i.max!==n.max&&(i.max=n.max),(i.fromi.max)&&(i.from=n.from),(i.toi.max)&&(i.to=n.to)),("number"!=typeof n.min_interval||isNaN(n.min_interval)||!n.min_interval||0>n.min_interval)&&(n.min_interval=0),("number"!=typeof n.max_interval||isNaN(n.max_interval)||!n.max_interval||0>n.max_interval)&&(n.max_interval=0),n.min_interval&&n.min_interval>n.max-n.min&&(n.min_interval=n.max-n.min),n.max_interval&&n.max_interval>n.max-n.min&&(n.max_interval=n.max-n.min)},decorate:function(t,e){var n="",i=this.options;return i.prefix&&(n+=i.prefix),n+=t,i.max_postfix&&(i.values.length&&t===i.p_values[i.max]?(n+=i.max_postfix,i.postfix&&(n+=" ")):e===i.max&&(n+=i.max_postfix,i.postfix&&(n+=" "))),i.postfix&&(n+=i.postfix),n},updateFrom:function(){this.result.from=this.options.from,this.result.from_percent=this.calcPercent(this.result.from),this.options.values&&(this.result.from_value=this.options.values[this.result.from])},updateTo:function(){this.result.to=this.options.to,this.result.to_percent=this.calcPercent(this.result.to),this.options.values&&(this.result.to_value=this.options.values[this.result.to])},updateResult:function(){this.result.min=this.options.min,this.result.max=this.options.max,this.updateFrom(),this.updateTo()},appendGrid:function(){if(this.options.grid){var t,e,n=this.options;t=n.max-n.min;var i,r,o=n.grid_num,s=0,a=0,l=4,u=0,c="";for(this.calcGridMargin(),n.grid_snap?(o=t/n.step,s=this.toFixed(n.step/(t/100))):s=this.toFixed(100/o),4(i-=2)&&(i=0)),this.coords.big[t]=a,r=(a-s*(t-1))/(i+1),e=1;e<=i&&0!==a;e++)u=this.toFixed(a-r*e),c+='';c+='',u=this.calcReal(a),u=n.values.length?n.p_values[u]:this._prettify(u),c+=''+u+""}this.coords.big_num=Math.ceil(o+1),this.$cache.cont.addClass("irs-with-grid"),this.$cache.grid.html(c),this.cacheGridLabels()}},cacheGridLabels:function(){var t,e,n=this.coords.big_num;for(e=0;e100+this.coords.grid_gap&&(n[i-1]=100+this.coords.grid_gap,e[i-1]=this.toFixed(n[i-1]-this.coords.big_p[i-1]),this.coords.big_x[i-1]=this.toFixed(this.coords.big_p[i-1]-this.coords.grid_gap))),this.calcGridCollision(2,e,n),this.calcGridCollision(4,e,n),t=0;t=s);i+=t)o=this.$cache.grid_labels[r][0],o.style.visibility=n[i]<=e[r]?"visible":"hidden"},calcGridMargin:function(){this.options.grid_margin&&(this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&(this.coords.w_handle="single"===this.options.type?this.$cache.s_single.outerWidth(!1):this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100),this.coords.grid_gap=this.toFixed(this.coords.p_handle/2-.1),this.$cache.grid[0].style.width=this.toFixed(100-this.coords.p_handle)+"%",this.$cache.grid[0].style.left=this.coords.grid_gap+"%"))},update:function(e){this.input&&(this.is_update=!0,this.options.from=this.result.from,this.options.to=this.result.to,this.options=t.extend(this.options,e),this.validate(),this.updateResult(e),this.toggleInput(),this.remove(),this.init(!0))},reset:function(){this.input&&(this.updateResult(),this.update())},destroy:function(){this.input&&(this.toggleInput(),this.$cache.input.prop("readonly",!1),t.data(this.input,"ionRangeSlider",null),this.remove(),this.options=this.input=null)}},t.fn.ionRangeSlider=function(e){return this.each(function(){t.data(this,"ionRangeSlider")||t.data(this,"ionRangeSlider",new s(this,e,r++))})},function(){for(var t=0,e=["ms","moz","webkit","o"],i=0;i0)for(n in An)i=An[n],void 0!==(r=e[i])&&(t[i]=r);return t}function f(e){h(this,e),this._d=new Date(+e._d),On===!1&&(On=!0,t.updateOffset(this),On=!1)}function d(t){return t instanceof f||null!=t&&null!=t._isAMomentObject}function y(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=e>=0?Math.floor(e):Math.ceil(e)),n}function m(t,e,n){var i,r=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),s=0;for(i=0;i0;){if(i=w(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&m(r,n,!0)>=e-1)break;e--}o++}return null}function w(t){var e=null;if(!kn[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=En._abbr,require("./locale/"+t),b(e)}catch(t){}return kn[t]}function b(t,e){var n;return t&&(n=void 0===e?x(t):S(t,e))&&(En=n),En._abbr}function S(t,e){return null!==e?(e.abbr=t,kn[t]||(kn[t]=new g),kn[t].set(e),b(t),kn[t]):(delete kn[t],null)}function x(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return En;if(!n(t)){if(e=w(t))return e;t=[t]}return v(t)}function T(t,e){var n=t.toLowerCase();Ln[n]=Ln[n+"s"]=Ln[e]=t}function C(t){return"string"==typeof t?Ln[t]||Ln[t.toLowerCase()]:undefined}function D(t){var e,n,i={};for(n in t)o(t,n)&&(e=C(n))&&(i[e]=t[n]);return i}function F(e,n){return function(i){return null!=i?(R(this,e,i),t.updateOffset(this,n),this):I(this,e)}}function I(t,e){return t._d["get"+(t._isUTC?"UTC":"")+e]()}function R(t,e,n){return t._d["set"+(t._isUTC?"UTC":"")+e](n)}function M(t,e){var n;if("object"==typeof t)for(n in t)this.set(n,t[n]);else if(t=C(t),"function"==typeof this[t])return this[t](e);return this}function E(t,e,n){for(var i=""+Math.abs(t),r=t>=0;i.length=0&&Nn.test(t);)t=t.replace(Nn,n),Nn.lastIndex=0,i-=1;return t}function N(t,e,n){ti[t]="function"==typeof e?e:function(t){return t&&n?n:e}}function j(t,e){return o(ti,t)?ti[t](e._strict,e._locale):new RegExp($(t))}function $(t){return t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,r){return e||n||i||r}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function P(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),"number"==typeof e&&(i=function(t,n){n[e]=y(t)}),n=0;n11?ii:n[ri]<1||n[ri]>B(n[ni],n[ii])?ri:n[oi]<0||n[oi]>24||24===n[oi]&&(0!==n[si]||0!==n[ai]||0!==n[li])?oi:n[si]<0||n[si]>59?si:n[ai]<0||n[ai]>59?ai:n[li]<0||n[li]>999?li:-1,u(t)._overflowDayOfYear&&(eri)&&(e=ri),u(t).overflow=e),t}function J(e){t.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function X(t,e){var n=!0,i=t+"\n"+(new Error).stack;return s(function(){return n&&(J(i),n=!1),e.apply(this,arguments)},e)}function Z(t,e){pi[t]||(J(e),pi[t]=!0)}function tt(t){var e,n,i=t._i,r=hi.exec(i);if(r){for(u(t).iso=!0,e=0,n=fi.length;er&&(o-=7),oi?7:0)-(a0?t:t-1,dayOfYear:s>0?s:rt(t-1)+s}}function dt(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function yt(t,e,n){return null!=t?t:null!=e?e:n}function mt(t){var e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function gt(t){var e,n,i,r,o=[];if(!t._d){for(i=mt(t),t._w&&null==t._a[ri]&&null==t._a[ii]&&_t(t),t._dayOfYear&&(r=yt(t._a[ni],i[ni]),t._dayOfYear>rt(r)&&(u(t)._overflowDayOfYear=!0),n=it(r,0,t._dayOfYear),t._a[ii]=n.getUTCMonth(),t._a[ri]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=o[e]=i[e];for(;e<7;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[oi]&&0===t._a[si]&&0===t._a[ai]&&0===t._a[li]&&(t._nextDay=!0,t._a[oi]=0),t._d=(t._useUTC?it:nt).apply(null,o),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[oi]=24)}}function _t(t){var e,n,i,r,o,s,a;e=t._w,null!=e.GG||null!=e.W||null!=e.E?(o=1,s=4,n=yt(e.GG,t._a[ni],at(Dt(),1,4).year),i=yt(e.W,1),r=yt(e.E,1)):(o=t._locale._week.dow,s=t._locale._week.doy,n=yt(e.gg,t._a[ni],at(Dt(),o,s).year),i=yt(e.w,1),null!=e.d?(r=e.d)0&&u(e).unusedInput.push(s),a=a.slice(a.indexOf(i)+i.length),c+=i.length),$n[o]?(i?u(e).empty=!1:u(e).unusedTokens.push(o),U(o,i,e)):e._strict&&!i&&u(e).unusedTokens.push(o);u(e).charsLeftOver=l-c,a.length>0&&u(e).unusedInput.push(a),u(e).bigHour===!0&&e._a[oi]<=12&&e._a[oi]>0&&(u(e).bigHour=undefined),e._a[oi]=wt(e._locale,e._a[oi],e._meridiem),gt(e),K(e)}function wt(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(i=t.isPM(n),i&&e<12&&(e+=12),i||12!==e||(e=0),e):e}function bt(t){var e,n,i,r,o;if(0===t._f.length)return u(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Bt(){if(this._a){var t=this._isUTC?a(this._a):Dt(this._a);return this.isValid()&&m(this._a,t.toArray())>0}return!1}function Ht(){return!this._isUTC}function Vt(){return this._isUTC}function zt(){return this._isUTC&&0===this._offset}function Wt(t,e){var n,i,r,s=t,a=null;return Et(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(s={},e?s[e]=t:s.milliseconds=t):(a=bi.exec(t))?(n="-"===a[1]?-1:1,s={y:0,d:y(a[ri])*n,h:y(a[oi])*n,m:y(a[si])*n,s:y(a[ai])*n,ms:y(a[li])*n}):(a=Si.exec(t))?(n="-"===a[1]?-1:1,s={y:Yt(a[2],n),M:Yt(a[3],n),d:Yt(a[4],n),h:Yt(a[5],n),m:Yt(a[6],n),s:Yt(a[7],n),w:Yt(a[8],n)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(r=Kt(Dt(s.from),Dt(s.to)),s={},s.ms=r.milliseconds,s.M=r.months),i=new Mt(s),Et(t)&&o(t,"_locale")&&(i._locale=t._locale),i}function Yt(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Gt(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Kt(t,e){var n;return e=kt(e,t),t.isBefore(e)?n=Gt(t,e):(n=Gt(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n}function Jt(t,e){return function(n,i){var r,o;return null===i||isNaN(+i)||(Z(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period)."),o=n,n=i,i=o),n="string"==typeof n?+n:n,r=Wt(n,i),Xt(this,r,t),this}}function Xt(e,n,i,r){var o=n._milliseconds,s=n._days,a=n._months;r=null==r||r,o&&e._d.setTime(+e._d+o*i),s&&R(e,"Date",I(e,"Date")+s*i),a&&W(e,I(e,"Month")+a*i),r&&t.updateOffset(e,s||a)}function Zt(t){var e=t||Dt(),n=kt(e,this).startOf("day"),i=this.diff(n,"days",!0),r=i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse";return this.format(this.localeData().calendar(r,this,Dt(e)))}function te(){return new f(this)}function ee(t,e){return e=C(void 0!==e?e:"millisecond"),"millisecond"===e?(t=d(t)?t:Dt(t),+this>+t):(d(t)?+t:+Dt(t))<+this.clone().startOf(e)}function ne(t,e){var n;return e=C(void 0!==e?e:"millisecond"),"millisecond"===e?(t=d(t)?t:Dt(t),+this<+t):(n=d(t)?+t:+Dt(t),+this.clone().endOf(e)11?n?"pm":"PM":n?"am":"AM"}function Ve(t){A(0,[t,3],0,"millisecond")}function ze(){return this._isUTC?"UTC":""}function We(){return this._isUTC?"Coordinated Universal Time":""}function Ye(t){return Dt(1e3*t)}function Ge(){return Dt.apply(null,arguments).parseZone()}function Ke(t,e,n){var i=this._calendar[t];return"function"==typeof i?i.call(e,n):i}function Je(t){var e=this._longDateFormat[t];return!e&&this._longDateFormat[t.toUpperCase()]&&(e=this._longDateFormat[t.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t]=e),e}function Xe(){return this._invalidDate}function Ze(t){return this._ordinal.replace("%d",t)}function tn(t){return t}function en(t,e,n,i){var r=this._relativeTime[n];return"function"==typeof r?r(t,e,n,i):r.replace(/%d/i,t)}function nn(t,e){var n=this._relativeTime[t>0?"future":"past"];return"function"==typeof n?n(e):n.replace(/%s/i,e)}function rn(t){var e,n;for(n in t)e=t[n],"function"==typeof e?this[n]=e:this["_"+n]=e;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function on(t,e,n,i){var r=x(),o=a().set(i,e);return r[n](o,t)}function sn(t,e,n,i,r){if("number"==typeof t&&(e=t,t=undefined),t=t||"",null!=e)return on(t,e,n,r);var o,s=[];for(o=0;o0,c[4]=n,Cn.apply(null,c)}function Fn(t,e){return or[t]!==undefined&&(e===undefined?or[t]:(or[t]=e,!0))}function In(t){var e=this.localeData(),n=Dn(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}function Rn(){var t=sr(this.years()),e=sr(this.months()),n=sr(this.days()),i=sr(this.hours()),r=sr(this.minutes()),o=sr(this.seconds()+this.milliseconds()/1e3),s=this.asSeconds();return s?(s<0?"-":"")+"P"+(t?t+"Y":"")+(e?e+"M":"")+(n?n+"D":"")+(i||r||o?"T":"")+(i?i+"H":"")+(r?r+"M":"")+(o?o+"S":""):"P0D"}var Mn,En,An=t.momentProperties=[],On=!1,kn={},Ln={},Qn=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,Nn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,jn={},$n={},Pn=/\d/,qn=/\d\d/,Un=/\d{3}/,Bn=/\d{4}/,Hn=/[+-]?\d{6}/,Vn=/\d\d?/,zn=/\d{1,3}/,Wn=/\d{1,4}/,Yn=/[+-]?\d{1,6}/,Gn=/\d+/,Kn=/[+-]?\d+/,Jn=/Z|[+-]\d\d:?\d\d/gi,Xn=/[+-]?\d+(\.\d{1,3})?/,Zn=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ti={},ei={},ni=0,ii=1,ri=2,oi=3,si=4,ai=5,li=6;A("M",["MM",2],"Mo",function(){return this.month()+1}),A("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),A("MMMM",0,0,function(t){return this.localeData().months(this,t)}),T("month","M"),N("M",Vn),N("MM",Vn,qn),N("MMM",Zn),N("MMMM",Zn),P(["M","MM"],function(t,e){e[ii]=y(t)-1}),P(["MMM","MMMM"],function(t,e,n,i){var r=n._locale.monthsParse(t,i,n._strict);null!=r?e[ii]=r:u(n).invalidMonth=t});var ui="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ci="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),pi={};t.suppressDeprecationWarnings=!1;var hi=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,fi=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],di=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],yi=/^\/?Date\((\-?\d+)/i;t.createFromInputFallback=X("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),A(0,["YY",2],0,function(){return this.year()%100}),A(0,["YYYY",4],0,"year"),A(0,["YYYYY",5],0,"year"),A(0,["YYYYYY",6,!0],0,"year"),T("year","y"),N("Y",Kn),N("YY",Vn,qn),N("YYYY",Wn,Bn),N("YYYYY",Yn,Hn),N("YYYYYY",Yn,Hn),P(["YYYY","YYYYY","YYYYYY"],ni),P("YY",function(e,n){n[ni]=t.parseTwoDigitYear(e)}),t.parseTwoDigitYear=function(t){return y(t)+(y(t)>68?1900:2e3)};var mi=F("FullYear",!1);A("w",["ww",2],"wo","week"),A("W",["WW",2],"Wo","isoWeek"),T("week","w"),T("isoWeek","W"),N("w",Vn),N("ww",Vn,qn),N("W",Vn),N("WW",Vn,qn),q(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=y(t)});var gi={dow:0,doy:6};A("DDD",["DDDD",3],"DDDo","dayOfYear"),T("dayOfYear","DDD"),N("DDD",zn),N("DDDD",Un),P(["DDD","DDDD"],function(t,e,n){n._dayOfYear=y(t)}),t.ISO_8601=function(){};var _i=X("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var t=Dt.apply(null,arguments);return tthis?this:t});At("Z",":"),At("ZZ",""),N("Z",Jn),N("ZZ",Jn),P(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Ot(t)});var wi=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var bi=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Si=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;Wt.fn=Mt.prototype;var xi=Jt(1,"add"),Ti=Jt(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var Ci=X("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===undefined?this.localeData():this.locale(t)});A(0,["gg",2],0,function(){return this.weekYear()%100}),A(0,["GG",2],0,function(){return this.isoWeekYear()%100}),De("gggg","weekYear"),De("ggggg","weekYear"),De("GGGG","isoWeekYear"),De("GGGGG","isoWeekYear"),T("weekYear","gg"),T("isoWeekYear","GG"),N("G",Kn),N("g",Kn),N("GG",Vn,qn),N("gg",Vn,qn),N("GGGG",Wn,Bn),N("gggg",Wn,Bn),N("GGGGG",Yn,Hn),N("ggggg",Yn,Hn),q(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=y(t)}),q(["gg","GG"],function(e,n,i,r){n[r]=t.parseTwoDigitYear(e)}),A("Q",0,0,"quarter"),T("quarter","Q"),N("Q",Pn),P("Q",function(t,e){e[ii]=3*(y(t)-1)}),A("D",["DD",2],"Do","date"),T("date","D"),N("D",Vn),N("DD",Vn,qn),N("Do",function(t,e){return t?e._ordinalParse:e._ordinalParseLenient}),P(["D","DD"],ri),P("Do",function(t,e){e[ri]=y(t.match(Vn)[0],10)});var Di=F("Date",!0);A("d",0,"do","day"),A("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),A("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),A("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),A("e",0,0,"weekday"),A("E",0,0,"isoWeekday"),T("day","d"),T("weekday","e"),T("isoWeekday","E"),N("d",Vn),N("e",Vn),N("E",Vn),N("dd",Zn),N("ddd",Zn),N("dddd",Zn),q(["dd","ddd","dddd"],function(t,e,n){var i=n._locale.weekdaysParse(t);null!=i?e.d=i:u(n).invalidWeekday=t}),q(["d","e","E"],function(t,e,n,i){e[i]=y(t)});var Fi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ii="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ri="Su_Mo_Tu_We_Th_Fr_Sa".split("_");A("H",["HH",2],0,"hour"),A("h",["hh",2],0,function(){return this.hours()%12||12}),qe("a",!0),qe("A",!1),T("hour","h"),N("a",Ue),N("A",Ue),N("H",Vn),N("h",Vn),N("HH",Vn,qn),N("hh",Vn,qn),P(["H","HH"],oi),P(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),P(["h","hh"],function(t,e,n){e[oi]=y(t),u(n).bigHour=!0});var Mi=/[ap]\.?m?\.?/i,Ei=F("Hours",!0);A("m",["mm",2],0,"minute"),T("minute","m"),N("m",Vn),N("mm",Vn,qn),P(["m","mm"],si);var Ai=F("Minutes",!1);A("s",["ss",2],0,"second"),T("second","s"),N("s",Vn),N("ss",Vn,qn),P(["s","ss"],ai);var Oi=F("Seconds",!1);A("S",0,0,function(){return~~(this.millisecond()/100)}),A(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Ve("SSS"),Ve("SSSS"),T("millisecond","ms"),N("S",zn,Pn),N("SS",zn,qn),N("SSS",zn,Un),N("SSSS",Gn),P(["S","SS","SSS","SSSS"],function(t,e){e[li]=y(1e3*("0."+t))});var ki=F("Milliseconds",!1);A("z",0,0,"zoneAbbr"),A("zz",0,0,"zoneName");var Li=f.prototype;Li.add=xi,Li.calendar=Zt,Li.clone=te,Li.diff=se,Li.endOf=_e,Li.format=ce,Li.from=pe,Li.fromNow=he,Li.to=fe,Li.toNow=de,Li.get=M,Li.invalidAt=Ce,Li.isAfter=ee,Li.isBefore=ne,Li.isBetween=ie,Li.isSame=re,Li.isValid=xe,Li.lang=Ci,Li.locale=ye,Li.localeData=me,Li.max=vi,Li.min=_i,Li.parsingFlags=Te,Li.set=M,Li.startOf=ge,Li.subtract=Ti,Li.toArray=Se,Li.toDate=be,Li.toISOString=ue,Li.toJSON=ue,Li.toString=le,Li.unix=we,Li.valueOf=ve,Li.year=mi,Li.isLeapYear=st,Li.weekYear=Ie,Li.isoWeekYear=Re,Li.quarter=Li.quarters=Ae,Li.month=Y,Li.daysInMonth=G,Li.week=Li.weeks=pt,Li.isoWeek=Li.isoWeeks=ht,Li.weeksInYear=Ee,Li.isoWeeksInYear=Me,Li.date=Di,Li.day=Li.days=je,Li.weekday=$e,Li.isoWeekday=Pe,Li.dayOfYear=dt,Li.hour=Li.hours=Ei,Li.minute=Li.minutes=Ai,Li.second=Li.seconds=Oi,Li.millisecond=Li.milliseconds=ki,Li.utcOffset=Qt,Li.utc=jt,Li.local=$t,Li.parseZone=Pt,Li.hasAlignedHourOffset=qt,Li.isDST=Ut,Li.isDSTShifted=Bt,Li.isLocal=Ht,Li.isUtcOffset=Vt,Li.isUtc=zt,Li.isUTC=zt,Li.zoneAbbr=ze,Li.zoneName=We,Li.dates=X("dates accessor is deprecated. Use date instead.",Di),Li.months=X("months accessor is deprecated. Use month instead",Y),Li.years=X("years accessor is deprecated. Use year instead",mi),Li.zone=X("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",Nt);var Qi=Li,Ni={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},ji={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},$i=/\d{1,2}/,Pi={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},qi=g.prototype;qi._calendar=Ni,qi.calendar=Ke,qi._longDateFormat=ji,qi.longDateFormat=Je,qi._invalidDate="Invalid date",qi.invalidDate=Xe,qi._ordinal="%d",qi.ordinal=Ze,qi._ordinalParse=$i,qi.preparse=tn,qi.postformat=tn,qi._relativeTime=Pi,qi.relativeTime=en,qi.pastFuture=nn,qi.set=rn,qi.months=H,qi._months=ui,qi.monthsShort=V,qi._monthsShort=ci,qi.monthsParse=z,qi.week=lt,qi._week=gi,qi.firstDayOfYear=ct,qi.firstDayOfWeek=ut,qi.weekdays=ke,qi._weekdays=Fi,qi.weekdaysMin=Qe,qi._weekdaysMin=Ri,qi.weekdaysShort=Le,qi._weekdaysShort=Ii,qi.weekdaysParse=Ne,qi.isPM=Be,qi._meridiemParse=Mi,qi.meridiem=He,b("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===y(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),t.lang=X("moment.lang is deprecated. Use moment.locale instead.",b),t.langData=X("moment.langData is deprecated. Use moment.localeData instead.",x) +;var Ui=Math.abs,Bi=bn("ms"),Hi=bn("s"),Vi=bn("m"),zi=bn("h"),Wi=bn("d"),Yi=bn("w"),Gi=bn("M"),Ki=bn("y"),Ji=xn("milliseconds"),Xi=xn("seconds"),Zi=xn("minutes"),tr=xn("hours"),er=xn("days"),nr=xn("months"),ir=xn("years"),rr=Math.round,or={s:45,m:45,h:22,d:26,M:11},sr=Math.abs,ar=Mt.prototype;return ar.abs=hn,ar.add=dn,ar.subtract=yn,ar.as=vn,ar.asMilliseconds=Bi,ar.asSeconds=Hi,ar.asMinutes=Vi,ar.asHours=zi,ar.asDays=Wi,ar.asWeeks=Yi,ar.asMonths=Gi,ar.asYears=Ki,ar.valueOf=wn,ar._bubble=mn,ar.get=Sn,ar.milliseconds=Ji,ar.seconds=Xi,ar.minutes=Zi,ar.hours=tr,ar.days=er,ar.weeks=Tn,ar.months=nr,ar.years=ir,ar.humanize=In,ar.toISOString=Rn,ar.toString=Rn,ar.toJSON=Rn,ar.locale=ye,ar.localeData=me,ar.toIsoString=X("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Rn),ar.lang=Ci,A("X",0,0,"unix"),A("x",0,0,"valueOf"),N("x",Kn),N("X",Xn),P("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),P("x",function(t,e,n){n._d=new Date(y(t))}),t.version="2.10.3",e(Dt),t.fn=Qi,t.min=It,t.max=Rt,t.utc=a,t.unix=Ye,t.months=an,t.isDate=i,t.locale=b,t.invalid=p,t.duration=Wt,t.isMoment=d,t.weekdays=un,t.parseZone=Ge,t.localeData=x,t.isDuration=Et,t.monthsShort=ln,t.weekdaysMin=pn,t.defineLocale=S,t.weekdaysShort=cn,t.normalizeUnits=C,t.relativeTimeThreshold=Fn,t}),function(t){var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.rome=t()}(function(){return function t(e,n,i){function r(s,a){if(!n[s]){if(!e[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(o)return o(s,!0);throw new Error("Cannot find module '"+s+"'")}var u=n[s]={exports:{}};e[s][0].call(u.exports,function(t){var n=e[s][1][t];return r(n?n:t)},u,u.exports,t,e,n,i)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s0)&&n.shift()()},!0),function(t){n.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),i.title="browser",i.browser=!0,i.env={},i.argv=[],i.on=n,i.addListener=n,i.once=n,i.off=n,i.removeListener=n,i.removeAllListeners=n,i.emit=n,i.binding=function(){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(){throw new Error("process.chdir is not supported")}},{}],2:[function(t,e){"use strict";function n(t,e,n){function s(){m.sleeping=!0}function a(){return l()}function l(t){var n=e.getBoundingClientRect(),i=document.body.scrollTop||document.documentElement.scrollTop;return g?(t=g.read(),{x:(t.absolute?0:n.left)+t.x,y:(t.absolute?0:n.top)+i+t.y+20}):{x:n.left,y:n.top+i}}function u(t){c(t)}function c(n){if(d)throw new Error("Bullseye can't refresh after being destroyed. Create another instance instead.");if(g&&!n)return m.sleeping=!1,void g.refresh();var i=l(n);g||e===t||(i.y+=e.offsetHeight),t.style.left=i.x+"px",t.style.top=i.y+"px"}function p(){g&&g.destroy(),i.remove(window,"resize",y),d=!0}var h=n,f=e&&e.tagName;f||2!==arguments.length||(h=e),f||(e=t),h||(h={});var d=!1,y=r(c,30),m={update:h.autoupdateToCaret!==!1&&u},g=h.caret&&o(e,m);return c(),h.tracking!==!1&&i.add(window,"resize",y),{read:a,refresh:c,destroy:p,sleep:s}}var i=t("crossvent"),r=t("./throttle"),o=t("./tailormade");e.exports=n},{"./tailormade":5,"./throttle":6,crossvent:3}],3:[function(t,e){(function(t){"use strict";function n(t,e,n,i){return t.addEventListener(e,n,i)}function i(t,e,n){return t.attachEvent("on"+e,l(t,e,n))}function r(t,e,n,i){return t.removeEventListener(e,n,i)}function o(t,e,n){return t.detachEvent("on"+e,u(t,e,n))}function s(t,e){var n;p.createEvent?(n=p.createEvent("Event"),n.initEvent(e,!0,!0),t.dispatchEvent(n)):p.createEventObject&&(n=p.createEventObject(),t.fireEvent("on"+e,n))}function a(e,n,i){return function(n){var r=n||t.event;r.target=r.target||r.srcElement,r.preventDefault=r.preventDefault||function(){r.returnValue=!1},r.stopPropagation=r.stopPropagation||function(){r.cancelBubble=!0},i.call(e,r)}}function l(t,e,n){var i=u(t,e,n)||a(t,e,n);return d.push({wrapper:i,element:t,type:e,fn:n}),i}function u(t,e,n){var i=c(t,e,n);if(i){var r=d[i].wrapper;return d.splice(i,1),r}}function c(t,e,n){var i,r;for(i=0;i0)return{x:n[0].left,y:n[0].top,absolute:!0}}}return{x:0,y:0}}function d(e,n){var i=u.createElement("span"),r=e.mirror,o=e.computed;return g(r,y(t).substring(0,n)),"INPUT"===t.tagName&&(r.textContent=r.textContent.replace(/\s/g,"\xa0")),g(i,y(t).substring(n)||"."),r.appendChild(i),{x:i.offsetLeft+parseInt(o.borderLeftWidth),y:i.offsetTop+parseInt(o.borderTopWidth)}}function y(t){return w?t.value:t.innerHTML}function m(){function e(t){r[t]=n[t]}var n=l.getComputedStyle?getComputedStyle(t):t.currentStyle,i=u.createElement("div"),r=i.style;return u.body.appendChild(i),"INPUT"!==t.tagName&&(r.wordWrap="break-word"),r.whiteSpace="pre-wrap",r.position="absolute",r.visibility="hidden",a.forEach(e),c?(r.width=parseInt(n.width)-2+"px",t.scrollHeight>parseInt(n.height)&&(r.overflowY="scroll")):r.overflow="hidden",{mirror:i,computed:n}}function g(t,e){w?t.textContent=e:t.innerHTML=e}function _(e){var n=e?"remove":"add";o[n](t,"keydown",b),o[n](t,"keyup",b),o[n](t,"input",b),o[n](t,"paste",b),o[n](t,"change",b)}function v(){_(!0)}var w="INPUT"===t.tagName||"TEXTAREA"===t.tagName,b=s(p,30),S=e||{};return _(),{read:i,refresh:b,destroy:v}}var r=t("sell"),o=t("crossvent"),s=t("./throttle"),a=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing"],l=n,u=document,c=null!==l.mozInnerScreenX&&void 0!==l.mozInnerScreenX;e.exports=i}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./throttle":6,crossvent:3,sell:4}],6:[function(t,e){"use strict";function n(t,e){var n,i=-Infinity;return function(){function r(){clearTimeout(n),n=null;var o=i+e,s=Date.now();s>o?(i=s,t()):n=setTimeout(r,o-s)}n||r()}}e.exports=n},{}],7:[function(t,e){e.exports=t("./src/contra.emitter.js")},{"./src/contra.emitter.js":8}],8:[function(t,e){(function(t){!function(n,i){"use strict";function r(t,e){return Array.prototype.slice.call(t,e)}function o(t,e,n){t&&a(function(){t.apply(n||null,e||[])})}function s(t,e){var n=e||{},s={};return t===i&&(t={}),t.on=function(e,n){return s[e]?s[e].push(n):s[e]=[n],t},t.once=function(e,n){return n._once=!0,t.on(e,n),t},t.off=function(e,n){var i=arguments.length;if(1===i)delete s[e];else if(0===i)s={};else{var r=s[e];if(!r)return t;r.splice(r.indexOf(n),1)}return t},t.emit=function(){var e=r(arguments);return t.emitterSnapshot(e.shift()).apply(this,e)},t.emitterSnapshot=function(e){var i=(s[e]||[]).slice(0);return function(){var a=r(arguments),l=this||t;if("error"===e&&n["throws"]!==!1&&!i.length)throw 1===a.length?a[0]:a;return s[e]=i.filter(function(t){return n.async?o(t,a,l):t.apply(l,a),!t._once}),t}},t}var a,l=""+i;a="function"==typeof setImmediate?function(t){setImmediate(t)}:typeof t!==l&&t.nextTick?t.nextTick:function(t){setTimeout(t,0)},typeof e!==l&&e.exports?e.exports=s:(n.contra=n.contra||{},n.contra.emitter=s)}(this)}).call(this,t("FWaASH"))},{FWaASH:1}],9:[function(t,e){(function(t){"use strict";function n(t,e,n,i){return t.addEventListener(e,n,i)}function i(t,e,n,i){return t.attachEvent("on"+e,l(t,e,n),i)}function r(t,e,n,i){return t.removeEventListener(e,n,i)}function o(t,e,n,i){return t.detachEvent("on"+e,u(t,e,n),i)}function s(t,e){var n=document.createEvent("Event");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function a(e,n,i){return function(n){var r=n||t.event;r.target=r.target||r.srcElement,r.preventDefault=r.preventDefault||function(){r.returnValue=!1},r.stopPropagation=r.stopPropagation||function(){r.cancelBubble=!0},i.call(e,r)}}function l(t,e,n){var i=u(t,e,n)||a(t,e,n);return f.push({wrapper:i,element:t,type:e,fn:n}),i}function u(t,e,n){var i=c(t,e,n);if(i){var r=f[i].wrapper;return f.splice(i,1),r}}function c(t,e,n){var i,r;for(i=0;i=yt||i<0)&&(i+=yt*-n),i}function x(){if(ct.time&&Ct){var t,e,n,i,r=Tt.children,o=r.length;for(i=0;it.date()&&n.subtract(1,"days"),ct.timeValidator.call(Rt,n.toDate())!==!1)return n}function et(t,e,n){for(var i=!1;i===!1&&(t[n](1,"days"),t.month()===e.month());)i=ct.dateValidator.call(Rt,t.toDate());return i!==!1}function nt(t){var e=t.target;if(!h.contains(e,ct.styles.dayDisabled)&&h.contains(e,ct.styles.dayBodyElem)){var n=parseInt(a(e),10),i=h.contains(e,ct.styles.dayPrevMonth),r=h.contains(e,ct.styles.dayNextMonth),o=rt(e)-rt(vt);pt.add(o,"months"),(i||r)&&pt.add(i?-1:1,"months"),it(e),pt.date(n),ot(pt,Z(pt)||pt),ht=pt.clone(),ct.autoClose===!0&&E(),j()}}function it(t){vt&&h.remove(vt,ct.styles.selectedDay),t&&h.add(t,ct.styles.selectedDay),vt=t}function rt(t){for(var e;t&&t.getAttribute;){if("string"==typeof(e=t.getAttribute(Dt)))return parseInt(e,10);t=t.parentNode}return 0}function ot(t,e){return t.hour(e.hour()).minute(e.minute()).second(e.second()),t}function st(t){var e=t.target;h.contains(e,ct.styles.timeOption)&&(ot(pt,p.moment(a(e),ct.timeFormat)),ht=pt.clone(),H(),B(),!ct.date&&ct.autoClose===!0||"time"===ct.autoClose?E():D())}function at(){return pt.toDate()}function lt(t){return pt.format(t||ct.inputFormat)}function ut(){return pt.clone()}var ct,pt,ht,ft,dt,yt,mt,gt,_t,vt,wt,bt,St,xt,Tt,Ct=!1,Dt="data-rome-offset",Ft=[],It=86400,Rt=o({associated:t.associated});return n(),setTimeout(d,0),Rt}var i,r=t("crossvent"),o=t("contra.emitter"),s=t("./dom"),a=t("./text"),l=t("./parse"),u=t("./clone"),c=t("./defaults"),p=t("./momentum"),h=t("./classes"),f=t("./noop");e.exports=n},{"./classes":12,"./clone":13,"./defaults":15,"./dom":16,"./momentum":21,"./noop":22,"./parse":23,"./text":35,"contra.emitter":7,crossvent:9}],12:[function(t,e){"use strict";function n(t){return t.className.replace(a,"").split(l)}function i(t,e){t.className=e.join(" ")}function r(t,e){var n=o(t,e);n.push(e),i(t,n)}function o(t,e){var r=n(t),o=r.indexOf(e);return o!==-1&&(r.splice(o,1),i(t,r)),r}function s(t,e){return n(t).indexOf(e)!==-1}var a=/^\s+|\s+$/g,l=/\s+/;e.exports={add:r,remove:o,contains:s}},{}],13:[function(t,e){"use strict";function n(t){var e,r={};for(var o in t)e=t[o],e?i.isMoment(e)?r[o]=e.clone():e._isStylesConfiguration?r[o]=n(e):r[o]=e:r[o]=e;return r}var i=t("./momentum");e.exports=n},{"./momentum":21}],14:[function(t,e){"use strict";function n(t,e){var n,a=i.find(t);return a?a:(n=s(t)?r(t,e):o(t,e),i.assign(t,n),n)}var i=t("./index"),r=t("./input"),o=t("./inline"),s=t("./isInput");e.exports=n},{"./index":17,"./inline":18,"./input":19,"./isInput":20}],15:[function(t,e){"use strict";function n(t,e){var n,s,a=t||{};if(a.autoHideOnClick===s&&(a.autoHideOnClick=!0),a.autoHideOnBlur===s&&(a.autoHideOnBlur=!0),a.autoClose===s&&(a.autoClose=!0),a.appendTo===s&&(a.appendTo=document.body),"parent"===a.appendTo){if(!r(e.associated))throw new Error("Inline calendars must be appended to a parent node explicitly.");a.appendTo=e.associated.parentNode}if(a.invalidate===s&&(a.invalidate=!0),a.required===s&&(a.required=!1),a.date===s&&(a.date=!0),a.time===s&&(a.time=!0),a.date===!1&&a.time===!1)throw new Error("At least one of `date` or `time` must be `true`.");if(a.inputFormat===s&&(a.date&&a.time?a.inputFormat="YYYY-MM-DD HH:mm":a.date?a.inputFormat="YYYY-MM-DD":a.inputFormat="HH:mm"),a.initialValue===s?a.initialValue=null:a.initialValue=i(a.initialValue,a.inputFormat),a.min===s?a.min=null:a.min=i(a.min,a.inputFormat),a.max===s?a.max=null:a.max=i(a.max,a.inputFormat),a.timeInterval===s&&(a.timeInterval=1800),a.min&&a.max)if(a.max.isBefore(a.min)&&(n=a.max,a.max=a.min,a.min=n),a.date===!0){if(a.max.clone().subtract(1,"days").isBefore(a.min))throw new Error("`max` must be at least one day after `min`")}else if(1e3*a.timeInterval-a.min%(1e3*a.timeInterval)>a.max-a.min)throw new Error("`min` to `max` range must allow for at least one time option that matches `timeInterval`");if(a.dateValidator===s&&(a.dateValidator=Function.prototype),a.timeValidator===s&&(a.timeValidator=Function.prototype),a.timeFormat===s&&(a.timeFormat="HH:mm"),a.weekStart===s&&(a.weekStart=o.moment().weekday(0).day()),a.weekdayFormat===s&&(a.weekdayFormat="min"),"long"===a.weekdayFormat)a.weekdayFormat=o.moment.weekdays();else if("short"===a.weekdayFormat)a.weekdayFormat=o.moment.weekdaysShort();else if("min"===a.weekdayFormat)a.weekdayFormat=o.moment.weekdaysMin();else if(!Array.isArray(a.weekdayFormat)||a.weekdayFormat.length<7)throw new Error("`weekdays` must be `min`, `short`, or `long`");a.monthsInCalendar===s&&(a.monthsInCalendar=1),a.monthFormat===s&&(a.monthFormat="MMMM YYYY"),a.dayFormat===s&&(a.dayFormat="DD"),a.styles===s&&(a.styles={}),a.styles._isStylesConfiguration=!0;var l=a.styles;return l.back===s&&(l.back="rd-back"),l.container===s&&(l.container="rd-container"),l.positioned===s&&(l.positioned="rd-container-attachment"),l.date===s&&(l.date="rd-date"),l.dayBody===s&&(l.dayBody="rd-days-body"),l.dayBodyElem===s&&(l.dayBodyElem="rd-day-body"),l.dayPrevMonth===s&&(l.dayPrevMonth="rd-day-prev-month"),l.dayNextMonth===s&&(l.dayNextMonth="rd-day-next-month"),l.dayDisabled===s&&(l.dayDisabled="rd-day-disabled"),l.dayConcealed===s&&(l.dayConcealed="rd-day-concealed"),l.dayHead===s&&(l.dayHead="rd-days-head"),l.dayHeadElem===s&&(l.dayHeadElem="rd-day-head"),l.dayRow===s&&(l.dayRow="rd-days-row"),l.dayTable===s&&(l.dayTable="rd-days"),l.month===s&&(l.month="rd-month"),l.monthLabel===s&&(l.monthLabel="rd-month-label"),l.next===s&&(l.next="rd-next"),l.selectedDay===s&&(l.selectedDay="rd-day-selected"),l.selectedTime===s&&(l.selectedTime="rd-time-selected"),l.time===s&&(l.time="rd-time"),l.timeList===s&&(l.timeList="rd-time-list"),l.timeOption===s&&(l.timeOption="rd-time-option"),a}var i=t("./parse"),r=t("./isInput"),o=t("./momentum");e.exports=n},{"./isInput":20,"./momentum":21,"./parse":23}],16:[function(t,e){"use strict";function n(t){var e=t||{};e.type||(e.type="div");var n=document.createElement(e.type);return e.className&&(n.className=e.className),e.text&&(n.innerText=n.textContent=e.text),e.attributes&&Object.keys(e.attributes).forEach(function(t){n.setAttribute(t,e.attributes[t])}),e.parent&&e.parent.appendChild(n),n}e.exports=n},{}],17:[function(t,e){"use strict";function n(t){if("number"!=typeof t&&t&&t.getAttribute)return n(t.getAttribute(o));var e=s[t];return e!==r?e:null}function i(t,e){t.setAttribute(o,e.id=s.push(e)-1)}var r,o="data-rome-id",s=[];e.exports={find:n,assign:i}},{}],18:[function(t,e){"use strict";function n(t,e){var n=e||{};n.appendTo=t,n.associated=t;var r=i(n);return r.show(),r}var i=t("./calendar");e.exports=n},{"./calendar":11}],19:[function(t,e){"use strict";function n(t,e){function n(e){w=s(e||w,T),u.add(T.container,w.styles.positioned),i.add(T.container,"mousedown",f),i.add(T.container,"click",h),T.getDate=v(T.getDate),T.getDateString=v(T.getDateString),T.getMoment=v(T.getMoment),w.initialValue&&(t.value=w.initialValue.format(w.inputFormat)),x=r(T.container,t),T.on("data",g),T.on("show",x.refresh),p(),C()}function c(){p(!0),x.destroy(),x=null}function p(e){var r=e?"remove":"add";i[r](t,"click",y),i[r](t,"touchend",y),i[r](t,"focusin",y),i[r](t,"change",C),i[r](t,"keypress",C),i[r](t,"keydown",C),i[r](t,"input",C),w.invalidate&&i[r](t,"blur",d),e?(T.once("ready",n),T.off("destroyed",c)):(T.off("ready",n),T.once("destroyed",c))}function h(){S=!0,t.focus(),S=!1}function f(){function t(){b=!1}b=!0,setTimeout(t,0)}function d(){b||_()||T.emitValues()}function y(){S||T.show()}function m(){var e=t.value.trim();if(!_()){var n=l.moment(e,w.inputFormat,w.strictParse);T.setValue(n)}}function g(e){t.value=e}function _(){return w.required===!1&&""===t.value.trim()}function v(t){return function(){return _()?null:t.apply(this,arguments)}}var w=e||{};w.associated=t;var b,S,x,T=a(w),C=o(m,30);return n(w),T}var i=t("crossvent"),r=t("bullseye"),o=t("./throttle"),s=(t("./clone"),t("./defaults")),a=t("./calendar"),l=t("./momentum"),u=t("./classes");e.exports=n},{"./calendar":11,"./classes":12,"./clone":13,"./defaults":15,"./momentum":21,"./throttle":36,bullseye:2,crossvent:9}],20:[function(t,e){"use strict";function n(t){return t&&t.nodeName&&"input"===t.nodeName.toLowerCase()}e.exports=n},{}],21:[function(t,e){"use strict";function n(t){return t&&Object.prototype.hasOwnProperty.call(t,"_isAMomentObject")}var i={moment:null,isMoment:n};e.exports=i},{}],22:[function(t,e){"use strict";function n(){}e.exports=n},{}],23:[function(t,e){"use strict";function n(t,e){return"string"==typeof t?r.moment(t,e):"[object Date]"===Object.prototype.toString.call(t)?r.moment(t):r.isMoment(t)?t.clone():void 0}function i(t,e){var i=n(t,"string"==typeof e?e:null);return i&&i.isValid()?i:null}var r=t("./momentum");e.exports=i},{"./momentum":21}],24:[function(){"use strict";Array.prototype.filter||(Array.prototype.filter=function(t,e){var n=[];return this.forEach(function(i,r,o){t.call(e,i,r,o)&&n.push(i)},e),n})},{}],25:[function(){"use strict";Array.prototype.forEach||(Array.prototype.forEach=function(t,e){if(void 0===this||null===this||"function"!=typeof t)throw new TypeError;for(var n=this,i=n.length,r=0;r>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(arguments.length>1&&(n=e),i=new Array(s),r=0;r>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(arguments.length>1&&(n=e),i=0;io?(i=s,t.apply(this,arguments)):n=setTimeout(r,o-s)}n||r()}}},{}],37:[function(t,e){"use strict";function n(t){this.moment=i.moment=t}var i=t("./momentum");e.exports=n},{"./momentum":21}],38:[function(t,e){"use strict";function n(t){return function(e){var n=o(e);return function(i){var a=r.find(e),l=o(i),u=n||a&&a.getMoment();return!u||(a&&s.add(this,a),t(l,u))}}}function i(t,e){return function(n,i){function a(t){var e,n,i=r.find(t);return i?e=n=i.getMoment():Array.isArray(t)?(e=t[0],n=t[1]):e=n=t,i&&s.add(i,this),{start:o(e).startOf("day").toDate(),end:o(n).endOf("day").toDate()}}var l,u=arguments.length;return Array.isArray(n)?l=n:1===u?l=[n]:2===u&&(l=[[n,i]]),function(n){return l.map(a.bind(this))[t](e.bind(this,n))}}}var r=t("./index"),o=t("./parse"),s=t("./association"),a=n(function(t,e){return t>=e}),l=n(function(t,e){return t>e}),u=n(function(t,e){return t<=e}),c=n(function(t,e){return tt||e.end=t});e.exports={afterEq:a,after:l,beforeEq:u,before:c,except:p,only:h}},{"./association":10,"./index":17,"./parse":23}]},{},[34])(34)}),function(t){"use strict";function e(t){return"INPUT"===t.nodeName&&("text"===t.type||"password"===t.type)||"TEXTAREA"===t.nodeName}function n(n){if(n.valueExtensions)return!0;if(!e(n))return!1;if(n.valueExtensions={current:null},n.constructor&&n.constructor.prototype){var i=Object.getOwnPropertyDescriptor(n.constructor.prototype,"value");Object.defineProperty(n,"value",{get:function(){return i.get.call(this)},set:function(t){n.valueExtensions.current=t,i.set.call(this,t)}})}return t(n).on("propertychange",s).on("dragend",function(t){window.setTimeout(function(){s(t)},0)}),!0}function i(){var e=l;l=[];var n,i,r,o;for(r=0,o=e.length;r9)return void t(document).on("input",function(e){t(e.target).trigger("textchange")});var s=null,a=null,l=[],u="keyup keydown";s=function(t){var e=t.target;if(n(e)&&e.valueExtensions.current!==e.value){var r,o +;for(r=0,o=l.length;r=o&&(l.push(e),0===o&&window.setTimeout(i,0))}},t(document).on("focusin",function(t){o(),n(t.target)&&r(t.target)}).on("focusout",o).on("input",s).on("selectionchange",function(t){if(document.selection){var e=document.selection.createRange();if(e){var n=e.parentElement();n&&(t.target=n,s(t))}}})}(jQuery),/*! + * jQuery-ajaxTransport-XDomainRequest - v1.0.3 - 2014-06-06 + * https://github.com/MoonScript/jQuery-ajaxTransport-XDomainRequest + * Copyright (c) 2014 Jason Moon (@JSONMOON) + * Licensed MIT (/blob/master/LICENSE.txt) + */ +function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){if(!t.support.cors&&t.ajaxTransport&&window.XDomainRequest){var e=/^https?:\/\//i,n=/^get|post$/i,i=new RegExp("^"+location.protocol,"i");t.ajaxTransport("* text html xml json",function(r,o){if(r.crossDomain&&r.async&&n.test(r.type)&&e.test(r.url)&&i.test(r.url)){var s=null;return{send:function(e,n){var i="",a=(o.dataType||"").toLowerCase();s=new XDomainRequest,/^\d+$/.test(o.timeout)&&(s.timeout=o.timeout),s.ontimeout=function(){n(500,"timeout")},s.onload=function(){var e="Content-Length: "+s.responseText.length+"\r\nContent-Type: "+s.contentType,i={code:200,message:"success"},r={text:s.responseText};try{if("html"===a||/text\/html/i.test(s.contentType))r.html=s.responseText;else if("json"===a||"text"!==a&&/\/json/i.test(s.contentType))try{r.json=t.parseJSON(s.responseText)}catch(t){i.code=500,i.message="parseerror"}else if("xml"===a||"text"!==a&&/\/xml/i.test(s.contentType)){var o=new ActiveXObject("Microsoft.XMLDOM");o.async=!1;try{o.loadXML(s.responseText)}catch(t){o=undefined}if(!o||!o.documentElement||o.getElementsByTagName("parsererror").length)throw i.code=500,i.message="parseerror","Invalid XML: "+s.responseText;r.xml=o}}catch(t){throw t}finally{n(i.code,i.message,r,e)}},s.onprogress=function(){},s.onerror=function(){n(500,"error",{text:s.responseText})},o.data&&(i="string"===t.type(o.data)?o.data:t.param(o.data)),s.open(r.type,r.url),s.send(i)},abort:function(){s&&s.abort()}}}})}}),function(){Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),n=this,i=function(){},r=function(){return n.apply(this instanceof i&&t?this:t,e.concat(Array.prototype.slice.call(arguments)))};return i.prototype=this.prototype,r.prototype=new i,r}),Date.now||(Date.now=function(){return(new Date).getTime()})}(),function(t){"use strict";function e(){}function n(){try{return document.activeElement}catch(t){}}function i(t,e){for(var n=0,i=t.length;i>n;n++)if(t[n]===e)return!0;return!1}function r(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent?t.attachEvent("on"+e,n):void 0}function o(t,e){var n;t.createTextRange?(n=t.createTextRange(),n.move("character",e),n.select()):t.selectionStart&&(t.focus(),t.setSelectionRange(e,e))}function s(t,e){try{return t.type=e,!0}catch(t){return!1}}function a(t,e){if(t&&t.getAttribute(F))e(t);else for(var n,i=t?t.getElementsByTagName("input"):$,r=t?t.getElementsByTagName("textarea"):P,o=i?i.length:0,s=r?r.length:0,a=o+s,l=0;a>l;l++)n=o>l?i[l]:r[l-o],e(n)}function l(t){a(t,c)}function u(t){a(t,p)}function c(t,e){var n=!!e&&t.value!==e,i=t.value===t.getAttribute(F);if((n||i)&&"true"===t.getAttribute(I)){t.removeAttribute(I),t.value=t.value.replace(t.getAttribute(F),""),t.className=t.className.replace(D,"");var r=t.getAttribute(k);parseInt(r,10)>=0&&(t.setAttribute("maxLength",r),t.removeAttribute(k));var o=t.getAttribute(R);return o&&(t.type=o),!0}return!1}function p(t){var e=t.getAttribute(F);return!(""!==t.value||!e)&&(t.setAttribute(I,"true"),t.value=e,t.className+=" "+C,t.getAttribute(k)||(t.setAttribute(k,t.maxLength),t.removeAttribute("maxLength")),t.getAttribute(R)?t.type="text":"password"===t.type&&s(t,"text")&&t.setAttribute(R,"password"),!0)}function h(t){return function(){q&&t.value===t.getAttribute(F)&&"true"===t.getAttribute(I)?o(t,0):c(t)}}function f(t){return function(){p(t)}}function d(t){return function(){l(t)}}function y(t){return function(e){return b=t.value,"true"===t.getAttribute(I)&&b===t.getAttribute(F)&&i(x,e.keyCode)?(e.preventDefault&&e.preventDefault(),!1):void 0}}function m(t){return function(){c(t,b),""===t.value&&(t.blur(),o(t,0))}}function g(t){return function(){t===n()&&t.value===t.getAttribute(F)&&"true"===t.getAttribute(I)&&o(t,0)}}function _(t){var e=t.form;e&&"string"==typeof e&&(e=document.getElementById(e),e.getAttribute(M)||(r(e,"submit",d(e)),e.setAttribute(M,"true"))),r(t,"focus",h(t)),r(t,"blur",f(t)),q&&(r(t,"keydown",y(t)),r(t,"keyup",m(t)),r(t,"click",g(t))),t.setAttribute(E,"true"),t.setAttribute(F,V),(q||t!==n())&&p(t)}var v=document.createElement("input"),w=void 0!==v.placeholder;if(t.Placeholders={nativeSupport:w,disable:w?e:l,enable:w?e:u},!w){var b,S=["text","search","url","tel","email","password","number","textarea"],x=[27,33,34,35,36,37,38,39,40,8,46],T="#ccc",C="placeholdersjs",D=new RegExp("(?:^|\\s)"+C+"(?!\\S)"),F="data-placeholder-value",I="data-placeholder-active",R="data-placeholder-type",M="data-placeholder-submit",E="data-placeholder-bound",A="data-placeholder-focus",O="data-placeholder-live",k="data-placeholder-maxlength",L=100,Q=document.getElementsByTagName("head")[0],N=document.documentElement,j=t.Placeholders,$=document.getElementsByTagName("input"),P=document.getElementsByTagName("textarea"),q="false"===N.getAttribute(A),U="false"!==N.getAttribute(O),B=document.createElement("style");B.type="text/css";var H=document.createTextNode("."+C+" {color:"+T+";}");B.styleSheet?B.styleSheet.cssText=H.nodeValue:B.appendChild(H),Q.insertBefore(B,Q.firstChild);for(var V,z,W=0,Y=$.length+P.length;Y>W;W++)z=W<$.length?$[W]:P[W-$.length],(V=z.attributes.placeholder)&&(V=V.nodeValue)&&i(S,z.type)&&_(z);var G=setInterval(function(){for(var t=0,e=$.length+P.length;e>t;t++)z=t<$.length?$[t]:P[t-$.length],V=z.attributes.placeholder,V?(V=V.nodeValue)&&i(S,z.type)&&(z.getAttribute(E)||_(z),(V!==z.getAttribute(F)||"password"===z.type&&!z.getAttribute(R))&&("password"===z.type&&!z.getAttribute(R)&&s(z,"text")&&z.setAttribute(R,"password"),z.value===z.getAttribute(F)&&(z.value=V),z.setAttribute(F,V))):z.getAttribute(I)&&(c(z),z.removeAttribute(F));U||clearInterval(G)},L);r(t,"beforeunload",function(){j.disable()})}}(this),function(){"use strict";moment.noConflict=function(t){return window.moment=t,this},rome.noConflict=function(t){return window.rome=t,this},window.__st_ro=rome.noConflict(__st_rome),window.__st_mt=moment.noConflict(__st_moment)}();var Liquid={author:"Matt McCray ",version:"1.3.1",readTemplateFile:function(){throw"This liquid context does not allow includes."},registerFilters:function(t){Liquid.Template.registerFilter(t)},parse:function(t){return Liquid.Template.parse(t)}};Array.prototype.indexOf||(Array.prototype.indexOf=function(t){for(var e=0;e=0}),String.prototype.capitalize||(String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.substring(1).toLowerCase()}),String.prototype.strip||(String.prototype.strip=function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")}),Liquid.extensions={},Liquid.extensions.object={},Liquid.extensions.object.update=function(t){for(var e in t)this[e]=t[e];return this},Liquid.extensions.object.hasKey=function(t){return!!this[t]},Liquid.extensions.object.hasValue=function(t){for(var e in this)if(this[e]==t)return!0;return!1},function(){var t=!1,e=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){},this.Class.extend=function(n){function i(){!t&&this.init&&this.init.apply(this,arguments)}var r=this.prototype;t=!0;var o=new this;t=!1;for(var s in n)o[s]="function"==typeof n[s]&&"function"==typeof r[s]&&e.test(n[s])?function(t,e){return function(){var n=this._super;this._super=r[t];var i=e.apply(this,arguments);return this._super=n,i}}(s,n[s]):n[s];return i.prototype=o,i.prototype.constructor=i,i.extend=arguments.callee,i}}.call(Liquid),Liquid.Tag=Liquid.Class.extend({init:function(t,e,n){this.tagName=t,this.markup=e,this.nodelist=this.nodelist||[],this.parse(n)},parse:function(){},render:function(){return""}}),Liquid.Block=Liquid.Tag.extend({init:function(t,e,n){this.blockName=t,this.blockDelimiter="end"+this.blockName,this._super(t,e,n)},parse:function(t){this.nodelist||(this.nodelist=[]),this.nodelist.clear();var e=t.shift();for(t.push("");t.length;){if(/^\{\%/.test(e)){var n=e.match(/^\{\%\s*(\w+)\s*(.*)?\%\}$/);if(!n)throw"Tag '"+e+"' was not properly terminated with: %}";if(this.blockDelimiter==n[1])return void this.endTag();n[1]in Liquid.Template.tags?this.nodelist.push(new Liquid.Template.tags[n[1]](n[1],n[2],t)):this.unknownTag(n[1],n[2],t)}else/^\{\{/.test(e)?this.nodelist.push(this.createVariable(e)):this.nodelist.push(e);e=t.shift()}this.assertMissingDelimitation()},endTag:function(){},unknownTag:function(t){switch(t){case"else":throw this.blockName+" tag does not expect else tag";case"end":throw"'end' is not a valid delimiter for "+this.blockName+" tags. use "+this.blockDelimiter;default:throw"Unknown tag: "+t}},createVariable:function(t){var e=t.match(/^\{\{(.*)\}\}$/);if(e)return new Liquid.Variable(e[1]);throw"Variable '"+t+"' was not properly terminated with: }}"},render:function(t){return this.renderAll(this.nodelist,t)},renderAll:function(t,e){return(t||[]).map(function(t){var n="";try{n=t.render?t.render(e):t}catch(t){n=e.handleError(t)}return n})},assertMissingDelimitation:function(){throw this.blockName+" tag was never closed"}}),Liquid.Document=Liquid.Block.extend({init:function(t){this.blockDelimiter=[],this.parse(t)},assertMissingDelimitation:function(){}}),Liquid.Strainer=Liquid.Class.extend({init:function(t){this.context=t},respondTo:function(t){return t=t.toString(),!t.match(/^__/)&&!Liquid.Strainer.requiredMethods.include(t)&&t in this}}),Liquid.Strainer.filters={},Liquid.Strainer.globalFilter=function(t){for(var e in t)Liquid.Strainer.filters[e]=t[e]},Liquid.Strainer.requiredMethods=["respondTo","context"],Liquid.Strainer.create=function(t){var e=new Liquid.Strainer(t);for(var n in Liquid.Strainer.filters)e[n]=Liquid.Strainer.filters[n];return e},Liquid.Context=Liquid.Class.extend({init:function(t,e,n){this.scopes=[t?t:{}],this.registers=e?e:{},this.errors=[],this.rethrowErrors=n,this.strainer=Liquid.Strainer.create(this)},get:function(t){return this.resolve(t)},set:function(t,e){this.scopes[0][t]=e},hasKey:function(t){return!!this.resolve(t)},push:function(){var t={};return this.scopes.unshift(t),t},merge:function(t){return Liquid.extensions.object.update.call(this.scopes[0],t)},pop:function(){if(1==this.scopes.length)throw"Context stack error";return this.scopes.shift()},stack:function(t,e){var n=null;this.push();try{n=t.apply(e?e:this.strainer)}finally{this.pop()}return n},invoke:function(t,e){return this.strainer.respondTo(t)?this.strainer[t].apply(this.strainer,e):0==e.length?null:e[0]},resolve:function(t){switch(t){case null:case"nil":case"null":case"":return null;case"true":return!0;case"false":return!1;case"blank":case"empty":return"";default:if(/^'(.*)'$/.test(t))return t.replace(/^'(.*)'$/,"$1");if(/^"(.*)"$/.test(t))return t.replace(/^"(.*)"$/,"$1");if(/^(\d+)$/.test(t))return parseInt(t.replace(/^(\d+)$/,"$1"));if(/^(\d[\d\.]+)$/.test(t))return parseFloat(t.replace(/^(\d[\d\.]+)$/,"$1"));if(/^\((\S+)\.\.(\S+)\)$/.test(t)){var e=t.match(/^\((\S+)\.\.(\S+)\)$/),n=parseInt(e[1]),i=parseInt(e[2]),r=[];if(isNaN(n)||isNaN(i)){n=e[1].charCodeAt(0),i=e[2].charCodeAt(0);for(var o=i-n+1,s=0;s"}}),Liquid.Condition.operators={"==":function(t,e){return t==e},"=":function(t,e){return t==e},"!=":function(t,e){return t!=e},"<>":function(t,e){return t!=e},"<":function(t,e){return t":function(t,e){return t>e},"<=":function(t,e){return t<=e},">=":function(t,e){return t>=e},contains:function(t,e){return"[object Array]"===Object.prototype.toString.call(t)?t.indexOf(e)>=0:t.match(e)},hasKey:function(t,e){return Liquid.extensions.object.hasKey.call(t,e)},hasValue:function(t,e){return Liquid.extensions.object.hasValue.call(t,e)}},Liquid.ElseCondition=Liquid.Condition.extend({isElse:!0,evaluate:function(){return!0},toString:function(){return""}}),Liquid.Drop=Liquid.Class.extend({setContext:function(t){this.context=t},beforeMethod:function(){},invokeDrop:function(t){var e=this.beforeMethod();return!e&&t in this&&(e=this[t].apply(this)),e},hasKey:function(){return!0}});var hackObjectEach=function(t){if("function"!=typeof t)throw"Object.each requires first argument to be a function";var e=0,n=arguments[1];for(var i in this){var r=this[i],o=[i,r];o.key=i,o.value=r,t.call(n,o,e,this),e++}return null};Liquid.Template.registerTag("assign",Liquid.Tag.extend({tagSyntax:/((?:\(?[\w\-\.\[\]]\)?)+)\s*=\s*(.+)/,init:function(t,e,n){var i=e.match(this.tagSyntax);if(!i)throw"Syntax error in 'assign' - Valid syntax: assign [var] = [source]";this.to=i[1],this.from=i[2],this._super(t,e,n)},render:function(t){var e=new Liquid.Variable(this.from);return t.scopes.last()[this.to.toString()]=e.render(t),""}})),Liquid.Template.registerTag("cache",Liquid.Block.extend({tagSyntax:/(\w+)/,init:function(t,e,n){var i=e.match(this.tagSyntax);if(!i)throw"Syntax error in 'cache' - Valid syntax: cache [var]";this.to=i[1],this._super(t,e,n)},render:function(t){var e=this._super(t);return t.scopes.last()[this.to]=[e].flatten().join(""),""}})),Liquid.Template.registerTag("capture",Liquid.Block.extend({tagSyntax:/(\w+)/,init:function(t,e,n){var i=e.match(this.tagSyntax);if(!i)throw"Syntax error in 'capture' - Valid syntax: capture [var]";this.to=i[1],this._super(t,e,n)},render:function(t){var e=this._super(t);return t.scopes.last()[this.to.toString()]=[e].flatten().join(""),""}})),Liquid.Template.registerTag("case",Liquid.Block.extend({tagSyntax:/("[^"]+"|'[^']+'|[^\s,|]+)/,tagWhenSyntax:/("[^"]+"|'[^']+'|[^\s,|]+)(?:(?:\s+or\s+|\s*\,\s*)("[^"]+"|'[^']+'|[^\s,|]+.*))?/,init:function(t,e,n){this.blocks=[],this.nodelist=[];var i=e.match(this.tagSyntax);if(!i)throw"Syntax error in 'case' - Valid syntax: case [condition]";this.left=i[1],this._super(t,e,n)},unknownTag:function(t,e,n){switch(t){case"when":this.recordWhenCondition(e);break;case"else":this.recordElseCondition(e);break;default:this._super(t,e,n)}},render:function(t){var e=this,n=[],i=!0;return t.stack(function(){for(var r=0;ra-z_]+)?\s*("[^"]+"|'[^']+'|[^\s,|]+)?/,init:function(t,e,n){this.nodelist=[],this.blocks=[],this.pushBlock("if",e),this._super(t,e,n)},unknownTag:function(t,e,n){["elsif","else"].include(t)?this.pushBlock(t,e):this._super(t,e,n)},render:function(t){var e=this,n="";return t.stack(function(){for(var i=0;i0;){var s=i.shift(),r=i.shift().match(this.tagSyntax);if(!r)throw"Syntax Error in tag '"+t+"' - Valid syntax: "+t+" [expression]";var a=new Liquid.Condition(r[1],r[2],r[3]);a[s](o),o=a}n=o}n.attach([]),this.blocks.push(n),this.nodelist=n.attachment}})),Liquid.Template.registerTag("ifchanged",Liquid.Block.extend({render:function(t){var e=this,n="";return t.stack(function(){var i=e.renderAll(e.nodelist,t).join("");i!=t.registers.ifchanged&&(n=i,t.registers.ifchanged=n)}),n}})),Liquid.Template.registerTag("include",Liquid.Tag.extend({tagSyntax:/((?:"[^"]+"|'[^']+'|[^\s,|]+)+)(\s+(?:with|for)\s+((?:"[^"]+"|'[^']+'|[^\s,|]+)+))?/,init:function(t,e,n){var i=(e||"").match(this.tagSyntax);if(!i)throw"Error in tag 'include' - Valid syntax: include '[template]' (with|for) [object|collection]";this.templateName=i[1],this.templateNameVar=this.templateName.substring(1,this.templateName.length-1),this.variableName=i[3],this.attributes={};var r=e.match(/(\w*?)\s*\:\s*("[^"]+"|'[^']+'|[^\s,|]+)/g);r&&r.each(function(t){t=t.split(":"),this.attributes[t[0].strip()]=t[1].strip()},this),this._super(t,e,n)},render:function(t){var e=this,n=Liquid.readTemplateFile(t.get(this.templateName)),i=Liquid.parse(n),r=t.get(this.variableName||this.templateNameVar),o="";return t.stack(function(){e.attributes.each=hackObjectEach,e.attributes.each(function(e){t.set(e.key,t.get(e.value))}),r instanceof Array?o=r.map(function(n){return t.set(e.templateNameVar,n),i.render(t)}):(t.set(e.templateNameVar,r),o=i.render(t))}),o=[o].flatten().join("")}})),Liquid.Template.registerTag("unless",Liquid.Template.tags["if"].extend({render:function(t){var e=this,n="";return t.stack(function(){var i=e.blocks[0];if(!i.evaluate(t))return void(n=e.renderAll(i.attachment,t));for(var r=1;r":">","<":"<",'"':""","'":"'"},size:function(t){return t.length?t.length:0},downcase:function(t){return t.toString().toLowerCase()},upcase:function(t){return t.toString().toUpperCase()},capitalize:function(t){return t.toString().capitalize()},escape:function(t){var e=this;return t.replace(/[&<>"']/g,function(t){return e._HTML_ESCAPE_MAP[t]})},h:function(t){var e=this;return t.replace(/[&<>"']/g,function(t){return e._HTML_ESCAPE_MAP[t]})},truncate:function(t,e,n){return t&&""!=t?(e=e||50,n=n||"...",t.slice(0,e),t.length>e?t.slice(0,e)+n:t):""},truncatewords:function(t,e,n){if(!t||""==t)return"";e=parseInt(e||15),n=n||"...";var i=t.toString().split(" "),r=Math.max(e,0);return i.length>r?i.slice(0,r).join(" ")+n:t},truncate_words:function(t,e,n){if(!t||""==t)return"";e=parseInt(e||15),n=n||"...";var i=t.toString().split(" "),r=Math.max(e,0);return i.length>r?i.slice(0,r).join(" ")+n:t},strip_html:function(t){return t.toString().replace(/<.*?>/g,"")},strip_newlines:function(t){return t.toString().replace(/\n/g,"")},join:function(t,e){return e=e||" ",t.join(e)},split:function(t,e){return e=e||" ",t.split(e)},sort:function(t){return t.sort()},reverse:function(t){return t.reverse()},replace:function(t,e,n){return n=n||"",t.toString().replace(new RegExp(e,"g"),n)},replace_first:function(t,e,n){return n=n||"",t.toString().replace(new RegExp(e,""),n)},newline_to_br:function(t){return t.toString().replace(/\n/g,"
\n")},date:function(t,e){var n;return t instanceof Date&&(n=t),n instanceof Date||"now"!=t||(n=new Date),n instanceof Date||"number"!=typeof t||(n=new Date(1e3*t)),n instanceof Date||"string"!=typeof t||(n=new Date(Date.parse(t))),n instanceof Date?n.strftime(e):t},first:function(t){return t[0]},last:function(t){return t=t,t[t.length-1]},minus:function(t,e){return(Number(t)||0)-(Number(e)||0)},plus:function(t,e){return(Number(t)||0)+(Number(e)||0)},times:function(t,e){return(Number(t)||0)*(Number(e)||0)},divided_by:function(t,e){return(Number(t)||0)/(Number(e)||0)},modulo:function(t,e){return(Number(t)||0)%(Number(e)||0)},map:function(t,e){t=t||[];for(var n=[],i=0;i<']|&(?!([a-zA-Z]+|(#\d+));)/g,function(t){return e._HTML_ESCAPE_MAP[t]})},remove:function(t,e){return t.toString().replace(new RegExp(e,"g"),"")},remove_first:function(t,e){return t.toString().replace(e,"")},prepend:function(t,e){return""+(e||"").toString()+(t||"").toString()},append:function(t,e){return""+(t||"").toString()+(e||"").toString()}}),(new Date).strftime||function(){Date.ext={},Date.ext.util={},Date.ext.util.xPad=function(t,e,n){for(void 0===n&&(n=10);parseInt(t,10)1;n/=10)t=e.toString()+t;return t.toString()},Date.prototype.locale="en-GB",document.getElementsByTagName("html")&&document.getElementsByTagName("html")[0].lang&&(Date.prototype.locale=document.getElementsByTagName("html")[0].lang),Date.ext.locales={},Date.ext.locales.en={a:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],A:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],b:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],B:["January","February","March","April","May","June","July","August","September","October","November","December"],c:"%a %d %b %Y %T %Z",p:["AM","PM"],P:["am","pm"],x:"%d/%m/%y",X:"%T"},"undefined"!=typeof JSON?Date.ext.locales["en-US"]=JSON.parse(JSON.stringify(Date.ext.locales.en)):Date.ext.locales["en-US"]=Date.ext.locales.en,Date.ext.locales["en-US"].c="%a %d %b %Y %r %Z",Date.ext.locales["en-US"].x="%D",Date.ext.locales["en-US"].X="%r",Date.ext.locales["en-GB"]=Date.ext.locales.en,Date.ext.locales["en-AU"]=Date.ext.locales["en-GB"],Date.ext.formats={a:function(t){return Date.ext.locales[t.locale].a[t.getDay()]},A:function(t){return Date.ext.locales[t.locale].A[t.getDay()]},b:function(t){return Date.ext.locales[t.locale].b[t.getMonth()]},B:function(t){return Date.ext.locales[t.locale].B[t.getMonth()]},c:"toLocaleString",C:function(t){return Date.ext.util.xPad(parseInt(t.getFullYear()/100,10),0)},d:["getDate","0"],e:["getDate"," "],g:function(t){return Date.ext.util.xPad(parseInt(Date.ext.util.G(t)/100,10),0)},G:function(t){var e=t.getFullYear(),n=parseInt(Date.ext.formats.V(t),10),i=parseInt(Date.ext.formats.W(t),10);return i>n?e++:0===i&&n>=52&&e--,e},H:["getHours","0"],I:function(t){var e=t.getHours()%12;return Date.ext.util.xPad(0===e?12:e,0)},j:function(t){var e=t-new Date(t.getFullYear()+"/1/1 GMT");e+=6e4*t.getTimezoneOffset();var n=parseInt(e/6e4/60/24,10)+1;return Date.ext.util.xPad(n,0,100)},m:function(t){return Date.ext.util.xPad(t.getMonth()+1,0)},M:["getMinutes","0"],p:function(t){return Date.ext.locales[t.locale].p[t.getHours()>=12?1:0]},P:function(t){return Date.ext.locales[t.locale].P[t.getHours()>=12?1:0]},S:["getSeconds","0"],u:function(t){var e=t.getDay();return 0===e?7:e},U:function(t){var e=parseInt(Date.ext.formats.j(t),10),n=6-t.getDay(),i=parseInt((e+n)/7,10);return Date.ext.util.xPad(i,0)},V:function(t){var e=parseInt(Date.ext.formats.W(t),10),n=new Date(t.getFullYear()+"/1/1").getDay(),i=e+(n>4||n<=1?0:1);return 53==i&&new Date(t.getFullYear()+"/12/31").getDay()<4?i=1:0===i&&(i=Date.ext.formats.V(new Date(t.getFullYear()-1+"/12/31"))),Date.ext.util.xPad(i,0)},w:"getDay",W:function(t){var e=parseInt(Date.ext.formats.j(t),10),n=7-Date.ext.formats.u(t),i=parseInt((e+n)/7,10);return Date.ext.util.xPad(i,0,10)},y:function(t){return Date.ext.util.xPad(t.getFullYear()%100,0)},Y:"getFullYear",z:function(t){var e=t.getTimezoneOffset(),n=Date.ext.util.xPad(parseInt(Math.abs(e/60),10),0),i=Date.ext.util.xPad(e%60,0);return(e>0?"-":"+")+n+i},Z:function(t){return t.toString().replace(/^.*\(([^)]+)\)$/,"$1")},"%":function(){return"%"}},Date.ext.aggregates={c:"locale",D:"%m/%d/%y",h:"%b",n:"\n",r:"%I:%M:%S %p",R:"%H:%M",t:"\t",T:"%H:%M:%S",x:"locale",X:"locale"},Date.ext.aggregates.z=Date.ext.formats.z(new Date),Date.ext.aggregates.Z=Date.ext.formats.Z(new Date),Date.ext.unsupported={},Date.prototype.strftime=function(t){this.locale in Date.ext.locales||(this.locale.replace(/-[a-zA-Z]+$/,"")in Date.ext.locales?this.locale=this.locale.replace(/-[a-zA-Z]+$/,""):this.locale="en-GB");for(var e=this;t.match(/%[cDhnrRtTxXzZ]/);)t=t.replace(/%([cDhnrRtTxXzZ])/g,function(t,n){var i=Date.ext.aggregates[n];return"locale"==i?Date.ext.locales[e.locale][n]:i});var n=t.replace(/%([aAbBCdegGHIjmMpPSuUVwWyY%])/g,function(t,n){var i=Date.ext.formats[n];return"string"==typeof i?e[i]():"function"==typeof i?i.call(e,e):"object"==typeof i&&"string"==typeof i[0]?Date.ext.util.xPad(e[i[0]](),i[1]):n});return e=null,n}}();/*! + * Cross-Browser Split 1.1.1 + * Copyright 2007-2012 Steven Levithan + * Available under the MIT License + * ECMAScript compliant, uniform cross-browser split method + */ +var split;split=split||function(t){var e,n=String.prototype.split,i=/()??/.exec("")[1]===t;return e=function(e,r,o){if("[object RegExp]"!==Object.prototype.toString.call(r))return n.call(e,r,o);var s,a,l,u,c=[],p=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.extended?"x":"")+(r.sticky?"y":""),h=0,r=new RegExp(r.source,p+"g");for(e+="",i||(s=new RegExp("^"+r.source+"$(?!\\s)",p)),o=o===t?-1>>>0:o>>>0;(a=r.exec(e))&&!((l=a.index+a[0].length)>h&&(c.push(e.slice(h,a.index)),!i&&a.length>1&&a[0].replace(s,function(){for(var e=1;e1&&a.index=o));)r.lastIndex===a.index&&r.lastIndex++;return h===e.length?!u&&r.test("")||c.push(""):c.push(e.slice(h)),c.length>o?c.slice(0,o):c},String.prototype.split=function(t,n){return e(this,t,n)},e}(),"undefined"!=typeof exports&&("undefined"!=typeof module&&module.exports&&(exports=module.exports=Liquid),exports.Liquid=Liquid),Liquid.registerFilters({sectionify:function(t,e,n){function i(t){return t.find("em").first().text().length}var r=null;if(e){var o=jQuery("
"+e+"
");if(n){var s=jQuery("
"+n+"
");i(o)>i(s)&&(r=o.text())}else r=o.text()}return r&&t.indexOf("#")<0&&(t=t+"#sts="+r),t},imgix:function(t,e,n){if(jQuery.isArray(t)&&(t=t[0]),!t)return t;t=String(t).replace(/&/g,"&"),t=encodeURIComponent(t);var i={w:e,h:n,dpr:window.devicePixelRatio};return"//swiftype2.imgix.net/"+t+"?"+jQuery.param(jQuery.extend({},{fit:"clip"},i))},dateInLocale:function(t,e){var n=new Date(Date.parse(t)),i=new IntlMessageFormat("{date, date, "+e+"}",_st_tmp_global_locale),r={date:n};return i.format(r)},numberInLocale:function(t){var e={number:t};return new IntlMessageFormat("{number, number}",_st_tmp_global_locale).format(e)},currencyInLocale:function(t,e){var n={number:{}};n.number[e]={style:"currency",currency:e};var i={number:t};return new IntlMessageFormat("{number, number, "+e+"}",_st_tmp_global_locale,n).format(i)},escapeUrl:function(t){if(jQuery.isArray(t)&&(t=t[0]),t)return String(t).replace(/&/g,"&")}}),Liquid.Template.registerTag("translate",Liquid.Tag.extend({tagSyntax:/(\w+)/,init:function(t,e,n){var i=e.match(this.tagSyntax);if(!i)throw"Syntax error in 'translate' - Valid syntax: translate [message]";this.message=i[1],this._super(t,e,n)},_extractNameAndValueFrom:function(t,e){var n;try{n=e.get(t)}catch(t){return null}return void 0!==n&&null!==n?[t.replace(/[^A-Z0-9_]/gi,"_"),n]:[t,null]},_effectiveMessageAndValuesFrom:function(t,e){for(var n="",i={},r=t,o=/^([^{]+){([^},\s]+)/im;;){var s=r.match(o);if(!s){n+=r;break}var a=s[1],l=s[2],u=r.substring(s[0].length);n+=a;var c=this._extractNameAndValueFrom(l,e);c?(n+="{"+c[0],i[c[0]]=c[1]):n+="{"+l,r=u}return[n,i]},_localeStringsToLookFor:function(t){for(var e=t.split("-"),n=[],i=e.length;i>0;--i){var r=e.slice(0,i);n.push(r.join("-"))}return n},render:function(t){for(var e=t.findVariable("i18n"),n=e.locale,i=e.localizationMessages,r=null,o=this._localeStringsToLookFor(n),s=0;s').hide().insertAfter("body")[0].contentWindow,c=function(){return i(o.document[s][l])},(u=function(t,e){if(t!==e){var n=o.document;n.open().close(),n[s].hash="#"+t}})(i()))}var r,o,u,c,h={};return h.start=function(){if(!r){var o=i();u||n(),function n(){var p=i(),h=c(o);p!==o?(u(o=p,h),t(e).trigger(a)):h!==o&&(e[s][l]=e[s][l].replace(/#.*/,"")+"#"+h),r=setTimeout(n,t[a+"Delay"])}()}},h.stop=function(){o||(r&&clearTimeout(r),r=0)},h}()}(jQuery,this),function(t,e){"use strict";var n=t._InternalSwiftype=t._InternalSwiftype||{};n.Utils=n.Utils||{},n.Utils.compareObjects=function(t,e){var i=!1,r=!1;if(null!==t&&void 0!==t||(i=!0),null!==e&&void 0!==e||(r=!0),i!==r)return!1;if(i)return!0;var o=[],s=[];for(var a in t)t.hasOwnProperty(a)&&o.push(a);for(var l in e)e.hasOwnProperty(l)&&s.push(l);if(o.length!==s.length)return!1;for(var u,c,p=0;p":">",'"':""","'":"'"};return String(t).replace(/[&<>"']/g,function(t){return e[t]})},n.Utils.truncateString=function(t,e){return"string"==typeof t&&t.length>e?t.slice(0,e-3)+"...":t},n.Utils.safelyDeleteProperty=function(t,e){try{delete e[t]}catch(n){e[t]=undefined}},n.Utils._compileTemplate=function(t){return Liquid.parse(t)},n.Utils.getDataOrClassValue=function(t,i,r){t=e(t);var o=t.data(i);if(!n.Utils.isBlank(o))return o;var s=(t.attr("class")||"").split(/\s+/);return e.each(s,function(t,e){if(e.substring(0,i.length)===i){var o=e.substring(i.length+1);if(!n.Utils.isBlank(o))return r&&(o=o.replace("_nextlevel_"," "),o=o.replace("_domid_","#"),o=o.replace(/^domid_/,"#"),o=o.replace("_cssclass_","."),o=o.replace(/^cssclass_/,".")),o}}),null},n.Utils.eventIsMiddleClick=function(t){return("click"===t.type||"mousedown"===t.type)&&(2===t.which||t.ctrlKey||t.metaKey)},n.Utils.eventIsLeftClick=function(t){return("click"===t.type||"mousedown"===t.type)&&1===t.which},n.Utils.bindOnEventsTo=function(t,n){n=this._adjustEventTypesForIESupport(n);var i=e.makeArray(arguments).slice(2);e(t).on(n,i[0],i[1],i[2])},n.Utils.bindOneEventsTo=function(t,n){n=this._adjustEventTypesForIESupport(n);var i=e.makeArray(arguments).slice(2);e(t).one(n,i[0],i[1],i[2])},n.Utils._adjustEventTypesForIESupport=function(t){var n=t.split(" ");return e.map(n,function(t){switch(t){case"input":return"textchange";default:return t}}).join(" ")},n.Utils.getCompiledTemplate=function(i,r,o,s){var a=i[r];return"string"==typeof a&&(a=function(){var i=n.Utils._compileTemplate(a);return{render:function(n){t._st_tmp_global_locale=o;var r=e.extend({},n),a=e.extend({},n.i18n||{});r.i18n=a,r.i18n.locale=o,r.i18n.localizationMessages=s;var l=i.render(r);return t._st_tmp_global_locale=undefined,l}}}(),i[r]=a),a},n.Utils.allCssClassesOn=function(t){t=e(t);var n=t.attr("class");return n?n.split(/\s+/):[]},n.Utils.hasClassMatching=function(t,i){var r=n.Utils.allCssClassesOn(t),o=!1;return e.each(r,function(t,e){e.match(i)&&(o=!0)}),o},n.Utils.describeElement=function(t){if(!t)return"(null)";t=e(t);var n=t.prop("tagName"),i=t.attr("id");if(i)return n+"#"+i;var r=t.attr("class");return r?n+"."+r:'(anonymous "'+n+'")'},n.Utils.convertObjectToQueryParams=function(t){return e.param(t)},n.Utils.convertQueryParamsToObject=function(t){return e.deparam(t)},n.Utils._addRemoveClass=function(t,n,i,r){t=e(t),n||i?(i&&t.hasClass(i)&&t.removeClass(i),n&&!t.hasClass(n)&&t.addClass(n)):r()},n.Utils._addRemoveClassWithTimeout=function(t,e,i,r){setTimeout(function(){n.Utils._addRemoveClass(t,e,i,r)},100)},n.Utils.elementShow=function(t){e.each(e(t),function(t,i){var r=n.Utils.getDataOrClassValue(i,"st-on-show"),o=n.Utils.getDataOrClassValue(i,"st-on-hide");n.Utils._addRemoveClassWithTimeout(i,r,o,function(){e(i).show()})})},n.Utils.elementHide=function(t){e.each(e(t),function(t,i){var r=n.Utils.getDataOrClassValue(i,"st-on-show"),o=n.Utils.getDataOrClassValue(i,"st-on-hide");n.Utils._addRemoveClassWithTimeout(i,o,r,function(){e(i).hide()})})},n.Utils.removeInlineDisplayStyle=function(t){e(t).attr("style",function(t,e){if(e)return e.replace(/display[^;]+;?/g,"")})},n.Utils.isInputLikeElement=function(t){return t=e(t),t.is("input")||t.is("textarea")},n.Utils.isFormElement=function(t){return t=e(t),t.is("form")},n.Utils.ieVersion=function(){for(var t,e=5,n=document.createElement("div"),i=n.getElementsByTagName("i");n.innerHTML="",i[0];);var r=e>6?e:t;return undefined,r},n.Utils.isMobile=function(){return/iPhone|iPad|iPod|Android|Windows Phone/.test(navigator.userAgent)},n.Utils.addParamsToUrl=function(t,n){var i="string"===e.type(n)?n:e.param(n);return t+=t.indexOf("?")<0?"?"+i:"&"+i},n.Utils.convertToFullPath=function(t){switch(t.indexOf("//")){case 0:t=window.location.protocol+t;break;default:t.indexOf("http")===-1&&(t="/"===t[0]?window.location.protocol+"//"+window.location.host+t:window.location.protocol+"//"+window.location.host+"/"+t)}return t},n.Utils.getHash=function(){return window.location.href.split("#")[1]||""},n.Utils.pushToGA=function(t){var e=encodeURIComponent(t);"undefined"!=typeof window._gaq&&window._gaq.push(["_trackPageview","/search?stq="+e]),"undefined"!=typeof window.ga&&window.ga("send","pageview","/search?stq="+e)},n.Utils.fireGAEvent=function(t,e,n,i){"undefined"!=typeof window._gaq&&window._gaq.push(["_trackEvent",t,e,n,i]),"undefined"!=typeof window.ga&&window.ga("send","event",t,e,n,i)},n.Utils.stringOperator=function(t,e,n){return{and:function(t,e){return t&&e},or:function(t,e){return t||e}}[t](e,n)},n.Utils.isEmptyObject=function(t){return e.isEmptyObject(t)},n.Utils.debounce=function(t,e,n){var i;return function(){var r=this,o=arguments,s=function(){i=null,n||t.apply(r,o)},a=n&&!i;clearTimeout(i),i=setTimeout(s,e),a&&t.apply(r,o)}},n.Utils.generateUrl=function(t,e,n){var i="__PLACEHOLDER__",r=t.replace(i,e);return void 0!==n&&(r=r+"."+n),r}}(window,jQuery),function(global,$,moment,rome){"use strict";var Swiftype=global._InternalSwiftype=global._InternalSwiftype||{};global._InternalSwiftypeError=function(t,e,n){this.level=e,this.message=n,this.contextObject=t};var pSwiftypeError=global._InternalSwiftypeError.prototype;pSwiftypeError.toString=function(){return this.contextObject+": "+this.level.toUpperCase()+": "+this.message},Swiftype.CssBehaviorClasses={adornments:{show_only_on_empty_query:"st-query-not-present",show_only_on_nonempty_query:"st-query-present"}};var DEBUG="debug",WARN="warn",FATAL="fatal";Swiftype.HashManager=function(t,e){this._installIndex=t,this._anchorHashChangedCallback=e,this._delimiter="-",$(window).on("hashchange",this._anchorHashChanged.bind(this))};var pHashManager=Swiftype.HashManager.prototype;pHashManager._anchorHashChanged=function(){this._anchorHashChangedCallback(this.getAnchorParams())},pHashManager._getHash=function(){return window.location.href.split("#")[1]||""},pHashManager._getGlobalAnchorParamsHash=function(){return Swiftype.Utils.convertQueryParamsToObject(this._getHash())},pHashManager._parseHashKey=function(t){var e=t.split(this._delimiter),n=e.length>1?parseInt(e.pop(),10):0,i=e.join(this._delimiter);return isNaN(n)&&(n=0,i=t),{installIndex:n,key:i}},pHashManager._getAnchorParamsHash=function(){var t=this,e={};return $.each(this._getGlobalAnchorParamsHash(),function(n,i){var r=t._parseHashKey(n);r.installIndex===t._installIndex&&(e[r.key]=i)}),e},pHashManager.getAnchorParams=function(){return new Swiftype.AnchorParams(null,this._getAnchorParamsHash())},pHashManager.scopeAnchorParamsHash=function(t){if(0===this._installIndex)return t;var e=this,n={};return $.each(t,function(t,i){n[t+e._delimiter+e._installIndex]=i}),n},pHashManager.updateHash=function(t){var e=this,n={};$.each(this._getGlobalAnchorParamsHash(),function(t,i){e._parseHashKey(t).installIndex!==e._installIndex&&(n[t]=i)}),$.extend(n,this.scopeAnchorParamsHash(t));var i=new Swiftype.AnchorParams(null,n);window.location.hash=i.toAnchorString()},Swiftype.Install=function(t,e,n){if("string"!=typeof t)throw"This is not a valid install key: '"+t+"'; it must be a string.";if(t=Swiftype.Utils.trimString(t),20!==t.length)throw"This is not a valid install key: '"+t+"'; it must be of length 20.";this._readyListeners=[],this._searchCompleteListeners=[],this._installKey=t,this._userScriptConfiguration=e,this._isDefaultInstall=0===n,this._userServerConfiguration=null,this._configuration=$.extend({},this._userScriptConfiguration),this._dependentResourceLoadingTimeoutAfter=null,this._dependentResourceLoadingTimeoutId=null,this._hashManager=new Swiftype.HashManager(n,this._fireListeners.bind(this,"anchorHashChanged")),this._fetchUserServerConfiguration(),this._setDebugLevel(),this._searchHistory=new Swiftype.SearchHistory.forInstallKey(t)};var pInstall=Swiftype.Install.prototype;pInstall.toString=function(){return"[Swiftype.Install '"+this._installKey+"']"},pInstall.isDefaultInstall=function(){return this._isDefaultInstall},pInstall.cookieSearchQuery=function(t){var e=t.apiAjaxDataParameters();this._searchHistory.trackQueryForActiveInstall(e)},pInstall.cookieSearchResult=function(t){var e=t.getQuery(),n=e.apiAjaxDataParameters(),i=t._apiResult.id;this._searchHistory.trackClickForActiveInstall(n,i)},pInstall._normalizeInstallKey=function(t){return Swiftype.Utils.trimString(t).replace("-","_")},pInstall.matchesKey=function(t){return this._normalizeInstallKey(t)===this._normalizeInstallKey(this._installKey)},pInstall.getInstallDataAttribute=function(){return this._installKey},pInstall.getHashManager=function(){return this._hashManager},pInstall._userServerConfigurationUrl=function(){return Swiftype.Utils.generateUrl("//s.swiftypecdn.com/install/v2/config/__PLACEHOLDER__",this._installKey,"json")},pInstall._fetchUserServerConfiguration=function(){var t=this._userServerConfigurationUrl();$.ajax({type:"GET",url:t,success:this._processConfiguration.bind(this),error:this._userServerConfigurationRetrievalFailed.bind(this)})},pInstall._processConfiguration=function(t){if(this._userServerConfiguration=t,this._configuration=$.extend(!0,this._userServerConfiguration,this._userScriptConfiguration),this._validConfiguration())this._convertStringHooksToFunctions(),this._localizationMessages=this._configuration.install.localization_messages,this._locale=this._configuration.install.locale.toLowerCase(),this._primaryDocType=this._configuration.install.primary_doc_type,this._loadDependentResources();else{var e='Unable to retrieve configuration for install "'+this._installKey+'" at "'+this._userServerConfigurationUrl()+'"';this._configFetchError.error&&this._configFetchError.exception&&(e+="; got: "+this._configFetchError.error+" / "+this._configFetchError.exception),e+=". Swiftype will not work on this page.",this.log(this,FATAL,e)}},pInstall._userServerConfigurationRetrievalFailed=function(t,e,n){this._configFetchError={error:e,exception:n},this._processConfiguration({})},pInstall._validConfiguration=function(){return!!this._configuration.install},pInstall._convertStringHooksToFunctions=function(){var functionHooks={};$.each(this._userServerConfiguration.install.hooks,function(hookName,hookFunction){functionHooks[hookName]=eval(hookFunction)}),this._userServerConfiguration.install.hooks=functionHooks},pInstall.getLocale=function(){return this._locale},pInstall.getPrimaryDocType=function(){return this._primaryDocType},pInstall.getLocalizationMessages=function(){return this._localizationMessages},pInstall.addReadyListener=function(t){this._readyListeners===!1?t():this._readyListeners.push(t)},pInstall.addSearchCompleteListener=function(t){this._searchCompleteListeners.push(t)},pInstall._dependentStylesheetResources=function(){if(!this._dependentStylesheetResourcesMemoized){var t=this;this._dependentStylesheetResourcesMemoized=$.map(this._configuration.install.web.dependent_resources.stylesheets||[],function(e){return new Swiftype.Install.DependentStylesheet(t,e)})}return this._dependentStylesheetResourcesMemoized},pInstall._dependentJavascriptResourcesList=function(){return(this._configuration.install.web.dependent_resources.javascripts||[]).concat(this._dependentJavascriptPolyfillList())},pInstall._dependentJavascriptPolyfillList=function(){var t=[];return global.Intl||t.push(this._configuration.install.web.dependent_resources.polyfills.intl+this._locale+".js"),t},pInstall._dependentJavascriptResources=function(){if(!this._dependentJavascriptResourcesMemoized){var t=this;this._dependentJavascriptResourcesMemoized=$.map(this._dependentJavascriptResourcesList(),function(e){return new Swiftype.Install.DependentJavascript(t,e)})}return this._dependentJavascriptResourcesMemoized},pInstall._inlineStylesheetResources=function(){return new Swiftype.Install.InlineStylesheet(this,this._configuration.install.web.dependent_resources.inline_stylesheet)},pInstall._ieStylesheetResources=function(){var t,e=this,n=Swiftype.Utils.ieVersion();if(n){var i=(this._webConfig().dependent_resources.browser_stylesheets||{})["ie"+n];i&&(t=new Swiftype.Install.DependentStylesheet(e,i))}return t||[]},pInstall._dependentResources=function(){return this._dependentResourcesMemoized||(this._dependentResourcesMemoized=this._dependentStylesheetResources().concat(this._dependentJavascriptResources()).concat(this._inlineStylesheetResources()).concat(this._ieStylesheetResources())),this._dependentResourcesMemoized},pInstall._loadDependentResources=function(){$.each(this._dependentResources(),function(t,e){e.load()}),this._areDependentResourcesLoaded()?this._allDependentResourcesDidLoad():(this._dependentResourceLoadingTimeoutAfter=Date.now()+15e3,this._dependentResourceLoadingTimeoutId=global.setInterval(this._checkDependentResourcesLoaded.bind(this),100))},pInstall._areDependentResourcesLoaded=function(){if(!this._areDependentResourcesLoadedMemoized){var t=!0;$.each(this._dependentResources(),function(e,n){n.isLoaded()||(t=!1)}),this._areDependentResourcesLoadedMemoized=t}return this._areDependentResourcesLoadedMemoized},pInstall._checkDependentResourcesLoaded=function(){var t=this._areDependentResourcesLoaded();(t||Date.now()>=this._dependentResourceLoadingTimeoutAfter)&&(global.clearInterval(this._dependentResourceLoadingTimeoutId),this._dependentResourceLoadingTimeoutAfter=null,t?this._allDependentResourcesDidLoad():this._allDependentResourcesDidFailToLoad())},pInstall._queryElementLocator=function(){return this._queryElementLocatorMemoized||(this._queryElementLocatorMemoized=new Swiftype.QueryElementLocator(this,document.body)),this._queryElementLocatorMemoized},pInstall._webConfig=function(){return this._configuration.install.web},pInstall._templatesConfig=function(){return this._webConfig().templates["default"]},pInstall._createInjectionPoint=function(t){var e=$("
");e.addClass("st-injected-content-generated"),this._queryElementLocator().allocateToInstall(e);var n=this._webConfig().ui_bindings.injected_content.attach_points[t];this._setLocaleClassToElement(e);var i=/^#(\S+)$/,r=/^\.(\-?[_A-Za-z]+[_a-zA-Z0-9-]*)$/;return $.each(n,function(t,n){var o=i.exec(n);if(o)return e.attr("id",o[1]),e;var s=r.exec(n);return s?(e.addClass(s[1]),e):void 0}),e},pInstall._handleGlobalEvents=function(){var t=this;$(window).resize(function(e){t._fireListeners("windowResized",e)})},pInstall._setLocaleClassToElement=function(t){var e=this._configuration.install.locale,n=this._configuration.install.rtl_locales;$.inArray(e,$.parseJSON(n))>=0&&t.addClass("swiftype-rtl")},pInstall._findInjectionPoint=function(t){var e=this._webConfig().ui_bindings.injected_content.attach_points[t],n=this,i=null;return $.each(e,function(t,e){$(e).each(function(t,e){if(e=$(e),n._queryElementLocator().belongsToInstall(e))return i=e,!0})}),i},pInstall._findOrCreateInjectionPoint=function(t){var e=this._findInjectionPoint(t);return e?this._queryElementLocator().allocateToInstall(e):(e=this._createInjectionPoint(t),$(document.body).append(e)),e},pInstall._addInjectedContentIfNeeded=function(){var t=this,e=this._templatesConfig().injected_content;e&&!Swiftype.Utils.isEmptyObject(e)&&$.each(e,function(n,i){var r=t._findOrCreateInjectionPoint(n);i&&new Swiftype.InjectedContent(r,e,n,t.getLocale(),t.getLocalizationMessages()).attach()})},pInstall._setupConstantCrawl=function(){new Swiftype.ConstantCrawl(this._configuration.install.endpoints.constant_crawl).attach()},pInstall._setupUi=function(){this._addInjectedContentIfNeeded(),this._setupConstantCrawl(),this._searchContext=new Swiftype.QueryContext(this,"search",this._templatesConfig().search,this._webConfig().ui_bindings.search,this._webConfig().ui.search,this._configuration.install.hooks),this._autocompleteContext=new Swiftype.QueryContext(this,"autocomplete",this._templatesConfig().autocomplete,this._webConfig().ui_bindings.autocomplete,this._webConfig().ui.autocomplete,this._configuration.install.hooks),this._autocompleteContext.setupUi(),this._searchContext.setupUi(),this._handleGlobalEvents(),this._readyListeners&&($.each(this._readyListeners,function(t,e){e()}),this._readyListeners=!1)},pInstall.getSearchContext=function(){return this._searchContext},pInstall._fireListeners=function(){this._searchContext._fireListeners.apply(this._searchContext,arguments),this._autocompleteContext._fireListeners.apply(this._autocompleteContext,arguments)},pInstall._allDependentResourcesDidLoad=function(){var t=this;$(function(){t._setupUi()})},pInstall._allDependentResourcesDidFailToLoad=function(){this._allDependentResourcesDidLoad()},pInstall._setDebugLevel=function(){this._outputDebugMessages=!1,this.getHashManager().getAnchorParams().getValue("sdebug")&&(this._outputDebugMessages=!0)},pInstall.log=function(t,e,n){this._outputDebugMessages&&window.console&&console.log(new global._InternalSwiftypeError(t,e,n))},pInstall._wrapApiResults=function(t,e){return new Swiftype.Results(t,e,this.getPrimaryDocType())},pInstall._wrapSuccessCallback=function(t,e){var n=this;return function(i,r,o){e(n._wrapApiResults(t,i),r,o),$.each(n._searchCompleteListeners,function(e,n){n(t)})}},pInstall.performSearch=function(t,e,n){var i=this._configuration.install.endpoints[t.queryType()],r=this,o={type:"POST",url:i,xhrFields:{withCredentials:!0},data:t.apiAjaxDataParameters(),success:r._wrapSuccessCallback(t,e),error:n};this.log(this,DEBUG,"Asking Swiftype to perform the following query: "+JSON.stringify(o)),$.ajax(o)},pInstall.currentQueryDidChange=function(t,e,n){this._searchContext.someQueryChanged(t,e,n),this._autocompleteContext.someQueryChanged(t,e,n)},pInstall._trackAndSendToSearchResult=function(t,e,n,i){n=Swiftype.Utils.convertToFullPath(n);var r={_st_tracking:e.toTrackingParams(),_st_url:n},o=Swiftype.Utils.addParamsToUrl(t,r);this._sendToUrl(o,i)},pInstall._directlySendToSearchResult=function(t,e,n){this._sendToUrl(e,n)},pInstall._sendToUrl=function(t,e){e?window.open(t,"_blank"):window.location=t},pInstall.sendToSearchResult=function(t,e,n){var i=this._webConfig().analytics[t.getQuery().queryType()],r=this._configuration.install.endpoints.track_and_redirect_to_result;this.cookieSearchResult(t),i&&r?this._trackAndSendToSearchResult(r,t,e,n):this._directlySendToSearchResult(t,e,n)},pInstall._searchResultsPageUrl=function(){return this._webConfig().ui.search_results_page_url},pInstall.onSearchResultsPage=function(){var t=this._searchResultsPageUrl();if(t){var e=null;return e=0===t.indexOf("http://")||0===t.indexOf("https://")||0===t.indexOf("//")?window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search:window.location.pathname+window.location.search,t===e||t+"/"===e||t===e+"/"}return!0},pInstall.sendUserToSearchResultsPageFor=function(t){var e=this._searchResultsPageUrl();if(!this._searchResultsPageUrl())throw new Error("No Search Results Page URL configured.");var n=this.getHashManager().scopeAnchorParamsHash(t.toAnchorParams()),i=new Swiftype.AnchorParams(null,n);window.location=e+"#"+i.toAnchorString()},Swiftype.Install.InlineStylesheet=function(t,e){this._install=t,this._loaded=!1,this._inlineCss=e};var pInlineStylesheet=Swiftype.Install.InlineStylesheet.prototype;pInlineStylesheet.toString=function(){return"[Swiftype.Install.InlineStylesheet]"},pInlineStylesheet.load=function(){this.isLoaded()||($("head").append(""),this._loaded=!0)},pInlineStylesheet.isLoaded=function(){return this._loaded},Swiftype.Install.DependentStylesheet=function(t,e){this._install=t,this._url=e,this._loadRequested=!1,this._loaded=!1,this._link=null};var pDependentStylesheet=Swiftype.Install.DependentStylesheet.prototype;pDependentStylesheet.toString=function(){return"[Swiftype.Install.DependentStylesheet "+this._url+"]"},pDependentStylesheet._tagAttachPoint=function(){return this._tagAttachPointMemoized||(this._tagAttachPointMemoized=document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]),this._tagAttachPointMemoized},pDependentStylesheet._inferDetectionRulesFromTag=function(){"sheet"in this._link?(this._sheetPropertyName="sheet",this._rulesPropertyName="cssRules"):(this._sheetPropertyName="styleSheet",this._rulesPropertyName="rules")},pDependentStylesheet.load=function(){this._loadRequested||(this._link=document.createElement("link"),this._link.rel="stylesheet",this._link.type="text/css",this._link.href=this._url,this._tagAttachPoint().appendChild(this._link),this._inferDetectionRulesFromTag(),this._loadRequested=!0)},pDependentStylesheet.isLoaded=function(){if(!this._loaded){if(!this._loadRequested)return!1;this._link[this._sheetPropertyName]&&(this._loaded=!0)}return this._loaded},Swiftype.Install.DependentJavascript=function(t,e){this._install=t,this._url=e,this._loadRequested=!1,this._loaded=!1};var pDependentJavascript=Swiftype.Install.DependentJavascript.prototype;pDependentJavascript.toString=function(){return"[Swiftype.Install.DependentJavascript "+this._url+"]"},pDependentJavascript._didLoad=function(){this._loaded=!0},pDependentJavascript.load=function(){if(!this._loadRequested){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src=this._url;var e=document.getElementsByTagName("script")[0];if(e.parentNode.insertBefore(t,e),t.addEventListener)t.addEventListener("load",this._didLoad.bind(this),!1);else{var n=this;t.attachEvent("onreadystatechange",function(){/complete|loaded/.test(t.readyState)&&n._didLoad()})}}},pDependentJavascript.isLoaded=function(){return this._loaded},Swiftype.Result=function(t,e,n){this._resultSet=t,this._sequenceInThisPage=e,this._apiResult=n};var pResult=Swiftype.Result.prototype;pResult.toString=function(){return"[Swiftype.Result: Result "+this._sequenceInThisPage+" in this page for "+this._resultSet+"]"},pResult.getQuery=function(){return this._resultSet.getQuery()},pResult.getQueryType=function(){return this.getQuery().queryType()},pResult.getResultSet=function(){return this._resultSet},pResult._escapeHtml=function(t){return"string"!=typeof t?t:Swiftype.Utils.escapeHtml(t)},pResult._highlightFor=function(t){return this._apiResult.highlight[t]},pResult._rawFor=function(t){return this._apiResult[t]},pResult._arrayFor=function(t){var e=this._rawFor(t);return $.isArray(e)?e:[e]},pResult._scalarFor=function(t){var e=this._rawFor(t);return $.isArray(e)?e[0]:e},pResult._truncate=function(t){return Swiftype.Utils.truncateString(t,300)},pResult._templateResult=function(t){return this._highlightFor(t)||this._escapeHtml(this._truncate(this._scalarFor(t)))},pResult._templateFullResult=function(t){return this._escapeHtml(this._scalarFor(t))},pResult._templateArrayResult=function(t){var e=this;return $.map(this._arrayFor(t),function(t){return e._escapeHtml(t)})},pResult._templateRawResult=function(t){return this._rawFor(t)},pResult._syntheticTemplateRenderingContextProperties=function(){return{__rank:this.getSequenceInThisPage(),doc_id:this._apiResult.id}},pResult._mapToTemplateRenderingContext=function(t){var e=this,n=$.extend({},this._syntheticTemplateRenderingContextProperties());return $.each(this._apiResult,function(i){n[i]=t.call(e,i)}),n},pResult.toTemplateRenderingContext=function(){return this._toTemplateRenderingContextMemoized||(this._toTemplateRenderingContextMemoized={result:this._mapToTemplateRenderingContext(this._templateResult),full_result:this._mapToTemplateRenderingContext(this._templateFullResult),array_result:this._mapToTemplateRenderingContext(this._templateArrayResult),raw_result:this._mapToTemplateRenderingContext(this._templateRawResult)}),this._toTemplateRenderingContextMemoized},pResult.toTrackingParams=function(){return{doc_id:this._apiResult.id,query:this.getQuery().toTrackingParams(),query_type:this.getQueryType()}},pResult.getSequenceInThisPage=function(){return this._sequenceInThisPage},pResult.getOverallSequence=function(){return this._resultSet.currentPageStart()+this.getSequenceInThisPage()},pResult.getTemplateRenderingContext=function(){return this._getTemplateRenderingContextMemoized||(this._getTemplateRenderingContextMemoized=$.extend({},this._resultSet.getTemplateRenderingContext(),this.toTemplateRenderingContext())),this._getTemplateRenderingContextMemoized},Swiftype.ResultSet=function(t,e,n,i){this._resultObject=t,this._setName=e,this._apiMetadata=n,this._resultArray=[];var r=this;$.each(i,function(t,e){var n=new Swiftype.Result(r,t,e);r._resultArray.push(n)})};var pResultSet=Swiftype.ResultSet.prototype;pResultSet.getSetName=function(){return this._setName},pResultSet.getQuery=function(){return this._resultObject.getQuery()},pResultSet.currentPageNumber=function(){return this._apiMetadata.current_page},pResultSet.facets=function(){return this._apiMetadata.facets},pResultSet.lastPageNumber=function(){return this._apiMetadata.num_pages},pResultSet.totalResultCount=function(){return this._apiMetadata.total_result_count},pResultSet._perPage=function(){return this._apiMetadata.per_page},pResultSet.currentPageStart=function(){return(this.currentPageNumber()-1)*this._perPage()+1},pResultSet._currentPageEnd=function(){return this.currentPageNumber()===this.lastPageNumber()?this.totalResultCount():this.currentPageNumber()*this._perPage()},pResultSet._numPages=function(){return this._apiMetadata.num_pages},pResultSet.toString=function(){return"[Swiftype.ResultSet for '"+this._setName+"' for "+this._resultObject+": page "+this.currentPageNumber()+" of "+this.lastPageNumber()+", "+this.totalResultCount()+" total results]"},pResultSet.toTemplateRenderingContext=function(){if(!this._toTemplateRenderingContextMemoized){var t={current_page:this.currentPageNumber(),current_page_start:this.currentPageStart(),current_page_end:this._currentPageEnd(),num_pages:this.lastPageNumber(),per_page:this._perPage(),total_records_for_this_set:this._apiMetadata.total_result_count,records:[],spelling_suggestions:[],spelling_suggestion:null};$.each(this._resultArray,function(e,n){t.records.push(n.toTemplateRenderingContext())});var e=this.getSpellingSuggestions();$.each(e,function(e,n){t.spelling_suggestions.push(n.getTemplateRenderingContext())}),e.length>0&&(t.spelling_suggestion=e[0].getTemplateRenderingContext()),this._toTemplateRenderingContextMemoized=t}return this._toTemplateRenderingContextMemoized},pResultSet.getTemplateRenderingContext=function(){return this._getTemplateRenderingContextMemoized||(this._getTemplateRenderingContextMemoized=$.extend({},this._resultObject.getTemplateRenderingContext(),this.toTemplateRenderingContext())),this._getTemplateRenderingContextMemoized},pResultSet.eachResult=function(t){$.each(this._resultArray,t)},pResultSet.countOfResultsOnThisPage=function(){return this._resultArray.length},pResultSet.getSpellingSuggestions=function(){var t=this._apiMetadata.spelling_suggestion,e=[];return t&&e.push(new Swiftype.SpellingSuggestionResult(t.text,t.score)),e},Swiftype.SpellingSuggestionResult=function(t,e){this._text=t,this._score=e};var pSpellingSuggestionResult=Swiftype.SpellingSuggestionResult.prototype;pSpellingSuggestionResult.toString=function(){return"[Swiftype.SpellingSuggestionResult: '"+this._text+"', score "+this._score+"]"},pSpellingSuggestionResult.getText=function(){return this._text},pSpellingSuggestionResult.getScore=function(){return this._score},pSpellingSuggestionResult.potentiallyMergeWith=function(t){if(t._text===this._text){var e=this._score;return t._score>this._score&&(e=t._score),new Swiftype.SpellingSuggestionResult(this._text,e)}return null},pSpellingSuggestionResult.getTemplateRenderingContext=function(){return this._toTemplateRenderingContextMemoized||(this._toTemplateRenderingContextMemoized={text:Swiftype.Utils.escapeHtml(this._text),score:this._score}),this._toTemplateRenderingContextMemoized},Swiftype.Results=function(t,e,n){this._query=t,this._errors=e.errors,this._resultSetsByName={},this._primaryDocType=n;var i=this;$.each(e.info,function(t,n){var r=e.records[t]||[];i._resultSetsByName[t]=new Swiftype.ResultSet(i,t,n,r)})};var pResults=Swiftype.Results.prototype;pResults.toString=function(){return"[Swiftype.Results for "+this._query+"; results: "+this.totalRecordsAcrossAllSets()+"]"},pResults.getQuery=function(){return this._query},pResults.isEmptyQuery=function(){return this.getQuery().isEmptyQuery()},pResults.toTemplateRenderingContext=function(){if(!this._toTemplateRenderingContextMemoized){var t={query:this._query.toTemplateRenderingContext(),total_records_across_all_sets:this.totalRecordsAcrossAllSets(),total_results:this.totalRecordsAcrossAllSets(),errors:this._errors,spelling_suggestion:null,spelling_suggestions:[],sets:{}},e=this.getAllSpellingSuggestions();$.each(e,function(e,n){t.spelling_suggestions.push(n.getTemplateRenderingContext())}),e.length>0&&(t.spelling_suggestion=e[0].getTemplateRenderingContext()),$.each(this._resultSetsByName,function(e,n){t.sets[e]=n.toTemplateRenderingContext()}),this._toTemplateRenderingContextMemoized=t}return this._toTemplateRenderingContextMemoized},pResults.getTemplateRenderingContext=function(){return this._getTemplateRenderingContextMemoized||(this._getTemplateRenderingContextMemoized=this.toTemplateRenderingContext()),this._getTemplateRenderingContextMemoized},pResults._resultSetNames=function(){var t=$.map(this._resultSetsByName,function(t,e){return e});return t.sort(),t},pResults._resultSetCount=function(){return this._resultSetNames().length},pResults._getResultSet=function(t){return this._resultSetsByName[t]},pResults.firstResultSet=function(){return this._getResultSet(this._primaryDocType)},pResults._eachResultSet=function(t){$.each(this._resultSetsByName,function(e,n){t(n)})},pResults.totalRecordsAcrossAllSets=function(){var t=0;return this._eachResultSet(function(e){t+=e.totalResultCount()}),t},pResults.hasAnyResults=function(){return this.totalRecordsAcrossAllSets()>0},pResults._uniqifySpellingSuggestions=function(t){for(var e=[],n=0;n-1&&(e[t]=n)})},pQuery.setFilterDataByDocumentTypeSlugAndFilterField=function(t,e,n){null!==n&&null!==e?(this._filterDataByDocumentTypeSlugAndFilterField[t]=this._filterDataByDocumentTypeSlugAndFilterField[t]||{},this._filterDataByDocumentTypeSlugAndFilterField[t][e]=n):this._filterDataByDocumentTypeSlugAndFilterField[t]&&(Swiftype.Utils.safelyDeleteProperty(e,this._filterDataByDocumentTypeSlugAndFilterField[t]),$.isEmptyObject(this._filterDataByDocumentTypeSlugAndFilterField[t])&&Swiftype.Utils.safelyDeleteProperty(t,this._filterDataByDocumentTypeSlugAndFilterField))},pQuery.setFacetDataByDocumentTypeSlug=function(t,e){if(null!==e){var n=this._facetDataByDocumentTypeSlug[t];n?n.indexOf(e)<0&&(this._facetDataByDocumentTypeSlug[t]=n.concat(e)):this._facetDataByDocumentTypeSlug[t]=[].concat(e)}else Swiftype.Utils.safelyDeleteProperty(t,this._facetDataByDocumentTypeSlug)},pQuery.getFilterDataByDocumentTypeSlugAndFilterField=function(){return this._filterDataByDocumentTypeSlugAndFilterField},pQuery.getFacetDataByDocumentTypeSlug=function(){return this._facetDataByDocumentTypeSlug},pQuery.toAnchorParams=function(){return{stq:this.getQueryText(),stp:this.getPageNumber(),sort_field:this.getSortFieldByDocumentTypeSlug(),sort_direction:this.getSortDirectionByDocumentTypeSlug(),filters:this.getFilterDataByDocumentTypeSlugAndFilterField(),facets:this.getFacetDataByDocumentTypeSlug()}},pQuery.toTrackingParams=function(){return{q:this.getQueryText(),page:this.getPageNumber(),sort_field:this.getSortFieldByDocumentTypeSlug(),sort_direction:this.getSortDirectionByDocumentTypeSlug(),filters:this.getFilterDataByDocumentTypeSlugAndFilterField(),facets:this.getFacetDataByDocumentTypeSlug()}},pQuery.toTemplateRenderingContext=function(){var t={type:this._queryType,text:Swiftype.Utils.escapeHtml(this.getQueryText())};return this.getPageNumber()&&(t.page=this.getPageNumber()),t},Swiftype.InjectedContent=function(t,e,n,i,r){this._injectionPoint=t,this._templates=e,this._templateName=n,this._locale=i,this._localizationMessages=r};var pInjectedContent=Swiftype.InjectedContent.prototype;pInjectedContent.attach=function(){var t=Swiftype.Utils.getCompiledTemplate(this._templates,this._templateName,this._locale,this._localizationMessages);if(t){var e={},n=t.render(e);this._injectionPoint.html(n)}},Swiftype.ConstantCrawl=function(t){this._endpoint=t};var pConstantCrawl=Swiftype.ConstantCrawl.prototype;pConstantCrawl.attach=function(){var t=new Image,e={};e.url=window.location.href,""!==document.referrer&&(e.r=document.referrer),t.src=Swiftype.Utils.addParamsToUrl(this._endpoint,e)},Swiftype.QueryElementLocator=function(t,e,n,i){this._install=t,this._baseScope=$(e),this._objectClassNameToCssSelectorArrayHash=n,this._classContainingObject=i};var pQueryElementLocator=Swiftype.QueryElementLocator.prototype;pQueryElementLocator.toString=function(){return"[Swiftype.QueryElementLocator for "+this._install+", base scope "+this._baseScope+", hash "+this._objectClassNameToCssSelectorArrayHash+"]"},pQueryElementLocator.log=function(t,e,n){this._install.log(t,e,n)};var INSTALL_KEY_DATA_ATTRIBUTE_NAME="st-install-key";pQueryElementLocator.belongsToInstall=function(t,e){var n,i=this;return $(t).parents().addBack(t).each(function(t,e){return!(n=Swiftype.Utils.getDataOrClassValue(e,INSTALL_KEY_DATA_ATTRIBUTE_NAME))}),n?i._install.matchesKey(n):!e&&this._install.isDefaultInstall()},pQueryElementLocator.allocateToInstall=function(t){if(!this.belongsToInstall(t,!0)){var e=this._install.getInstallDataAttribute();t.attr("data-"+INSTALL_KEY_DATA_ATTRIBUTE_NAME,e),t.addClass("st-install-"+e)}},pQueryElementLocator.forEachMatchingElement=function(t){var e=this;if(!this._objectClassNameToCssSelectorArrayHash)throw"objectClassNameToCssSelectorArrayHash is falsey";$.each(this._objectClassNameToCssSelectorArrayHash,function(n,i){var r=e._classContainingObject[n];if(!r)throw"There is no object class named '"+n+"' in: "+e._classContainingObject;$.each(i,function(n,i){e._baseScope.find(i).each(function(n,i){e.belongsToInstall(i)&&t.call(i,r,i,n)})})})},Swiftype.QueryContext=function(t,e,n,i,r,o){this._install=t,this._queryType=e,this._searchCache=new Swiftype.LRUCache(100),this._queryComposer=new Swiftype.QueryComposer(this,i,r.query_composer,o.query_filter),this._resultsDisplay=new Swiftype.ResultsDisplay(this,n,i,r.results_display,o.result_clicked_filter),this._uiConfiguration=r};var pQueryContext=Swiftype.QueryContext.prototype;pQueryContext.toString=function(){return"[Swiftype.QueryContext '"+this._queryType+"' for "+this._install+"]"},pQueryContext.getInstall=function(){return this._install},pQueryContext.getQueryComposer=function(){return this._queryComposer};var EMPTY_QUERY_RESULTS={errors:{},info:{},record_count:0,records:{}};pQueryContext._createResultsForEmptyQuery=function(t){return new Swiftype.Results(t,EMPTY_QUERY_RESULTS,this._install.getPrimaryDocType())},pQueryContext.setVisibility=function(t,e){var n=e;if("toggle"===n&&(n=!this.getVisibility(t)),n!==!0&&n!==!1)throw"Invalid newState for setVisibility: '"+n+"'";switch(t){case"queryComposer":this._queryComposer.setVisible(n);break;case"resultsDisplay":this._resultsDisplay.setVisible(n);break;case"all":this._queryComposer.setVisible(n),this._resultsDisplay.setVisible(n);break;default:throw"Invalid target for visibility: '"+t+"'"}},pQueryContext.getVisibility=function(t){switch(t){case"queryComposer":return this._queryComposer.isVisible();case"resultsDisplay":return this._resultsDisplay.isVisible();case"all":return this._queryComposer.isVisible()&&this._resultsDisplay.isVisible();case"any":return this._queryComposer.isVisible()||this._resultsDisplay.isVisible();default:throw"Invalid target for visibility: '"+t+"'"}},pQueryContext.visibilityChanged=function(t,e){this._fireListeners("visibilityChanged",t,e)},pQueryContext._isSearchContext=function(){return"search"===this._queryType},pQueryContext.pushQueryToGA=function(t){this._isSearchContext()&&Swiftype.Utils.pushToGA(t.getQueryText())},pQueryContext.cookieSearchQuery=function(t){this._isSearchContext()&&this.getInstall().cookieSearchQuery(t)},pQueryContext.setupUi=function(){this._isSearchContext()&&(this._queryComposer.addAnchorHashInput(),this._resultsDisplay.addAnchorHashOutput()),this._queryComposer.modifyDomAsNeeded(),this._resultsDisplay.modifyDomAsNeeded(),this._queryComposer.attach(),this._resultsDisplay.attach(),this.setVisibility("queryComposer",this._uiConfiguration.query_composer.initially_visible),this.setVisibility("resultsDisplay",this._uiConfiguration.results_display.initially_visible),this._queryComposer.uiSetupComplete(),this._resultsDisplay.uiSetupComplete()},pQueryContext.newQuery=function(){return new Swiftype.Query(this._queryType)},pQueryContext._searchResultsCacheHit=function(t){this._searchResultsAvailable(t)},pQueryContext._searchResultsDidReturn=function(t){this.log(this,DEBUG,"Server responded with results: "+t),this._searchCache.put(t.getQuery().toCacheKey(),t),this._searchResultsAvailable(t),this._queryComposer.propagateQuery()},pQueryContext._searchResultsDidFail=function(t,e,n){this.log(this,"warn","Server could not perform query "+t+": "+n)},pQueryContext._searchResultsCacheMiss=function(t){this._install.performSearch(t,this._searchResultsDidReturn.bind(this),this._searchResultsDidFail.bind(this))},pQueryContext._getListeners=function(){return[this._queryComposer,this._resultsDisplay]},pQueryContext._fireListeners=function(t){var e=[];e=e.concat(Array.prototype.slice.call(arguments,1)),$.each(this._getListeners(),function(n,i){i[t]&&i[t].apply(i,e)})},pQueryContext._searchResultsAvailable=function(t){this._fireListeners("searchResultsAvailable",t)},pQueryContext.log=function(t,e,n){this._install.log(t,e,n)},pQueryContext.currentQueryDidChange=function(t,e){this._install.currentQueryDidChange(this,t,e)},pQueryContext.someQueryChanged=function(t,e,n){this._fireListeners("someQueryChanged",t,e,n)},pQueryContext._charactersRequiredToQuery=function(){return this._uiConfiguration.query_composer.characters_required_to_query||0},pQueryContext.canRunQuery=function(t){var e=t.getQueryText();return!("string"==typeof e&&e.length>0&&e.length0&&$.each(this._permanentQueryTransforms,function(e,n){n(t)}),this._queryFilterHook){var e=t.clone();t=this._queryFilterHook(e)===!1?null:e.clone()}return t},pQueryComposer._setAndPropagateQuery=function(t){this._currentQuery=t,this.propagateQuery()},pQueryComposer.propagateQuery=function(){var t=this;$.each(this._queryInputs,function(e,n){n.propagateQuery(t._currentQuery)})},pQueryComposer._composeSearch=function(t){var e=null;return t?(e=this._currentQuery?this._currentQuery.clone():this._context.newQuery(),t(e)):(e=this._context.newQuery(),$.each(this._queryInputs,function(t,n){n.updateQuery(e)})),this._normalizeQuery(e)},pQueryComposer.runSearch=function(t){var e=this._composeSearch(t);return null!==e&&!!this._context.canRunQuery(e)&&(this._context.cookieSearchQuery(e),this._context.pushQueryToGA(e),!this._context.sendUserToSearchResultsPageIfNecessary(e)&&(this._setAndPropagateQuery(e),this._context.setVisibility("resultsDisplay",!0),this._context.getSearchResults(this._currentQuery),!0))},pQueryComposer.uiSetupComplete=function(){$.each(this._queryInputs,function(t,e){e.uiSetupComplete&&e.uiSetupComplete()})},pQueryComposer.searchResultsAvailable=function(t){this._currentQuery&&this._currentQuery.isEqualToQuery(t.getQuery())&&this._context.currentQueryDidChange(this,t)},pQueryComposer.setLastActiveQueryInput=function(t,e){this._lastActiveQueryInputs[t]!==e&&(this.log(this,DEBUG,"Setting last active input for '"+t+"' to: "+e.toString()),this._lastActiveQueryInputs[t]=e)},pQueryComposer.isLastActiveQueryInput=function(t,e){return this._lastActiveQueryInputs[t]===e},pQueryComposer.someQueryChanged=function(t){t!==this._context&&this._uiConfiguration.hide_on_other_query&&this._context.setVisible(!1)},pQueryComposer.windowResized=function(t){$.each(this._queryInputs,function(e,n){n.windowResized(t)})},pQueryComposer.anchorHashChanged=function(t){var e,n;this._currentQuery&&(e=this._currentQuery.clone(),n=this._context.newQuery(),n.mutateFromPageAnchor(t)),this._currentQuery&&e.isEqualToQuery(n)||$.each(this._queryInputs,function(e,n){n.anchorHashChanged(t)})},Swiftype.QueryInputs=Swiftype.QueryInputs||{},Swiftype.QueryInputs.Base=function(t,e){this._queryComposer=t,this._element=$(e)};var pQueryInputBase=Swiftype.QueryInputs.Base.prototype;pQueryInputBase.toString=function(){return"["+this._className+" on "+Swiftype.Utils.describeElement(this._element)+" for "+this._queryComposer+"]"},pQueryInputBase.log=function(t,e,n){this._queryComposer.log(t,e,n)},pQueryInputBase._describeElement=function(t){return Swiftype.Utils.describeElement(t)},pQueryInputBase.validate=function(){return!0},pQueryInputBase.getElement=function(){return $(this._element)},pQueryInputBase.isDefaultTargetFor=function(){return!1},pQueryInputBase.setLastActive=function(){this._inputCategory&&this._queryComposer.setLastActiveQueryInput(this._inputCategory,this)},pQueryInputBase._isLastActive=function(){return this._queryComposer.isLastActiveQueryInput(this._inputCategory,this)},pQueryInputBase.attach=function(){},pQueryInputBase._updateQuery=function(){},pQueryInputBase.updateQuery=function(t){this._isLastActive()&&this._updateQuery(t)},pQueryInputBase.propagateQuery=function(t){this._changeToReflectSearch(t)},pQueryInputBase.windowResized=function(){},pQueryInputBase.anchorHashChanged=function(){},pQueryInputBase._changeToReflectSearch=function(){},pQueryInputBase.handleInvalid=function(){},Swiftype.AnchorParams=function(t,e){t=this._universalAnchorString(t),this._anchorStringToHash(t),e&&this._updateAnchorHash(e)};var pAnchorParams=Swiftype.AnchorParams.prototype;pAnchorParams._universalAnchorString=function(t){var e=t;return e?"#"===e[0]&&(e=e.substring(1)):e="",e},pAnchorParams.toAnchorString=function(){return Swiftype.Utils.convertObjectToQueryParams(this._anchorHash)},pAnchorParams._anchorStringToHash=function(t){this._anchorHash=Swiftype.Utils.convertQueryParamsToObject(t)},pAnchorParams._updateAnchorHash=function(t){var e=this;$.each(t,function(t,n){e._anchorHash[t]=n||""})},pAnchorParams.getValue=function(t){return this._anchorHash[t]},pAnchorParams.hasKey=function(t){return this._anchorHash.hasOwnProperty(t)},Swiftype.QueryInputs.InputAnchorHash=function(t){Swiftype.QueryInputs.Base.call(this,t),this._className="Swiftype.QueryInputs.InputAnchorHash",this._inputCategory="searchText"},Swiftype.QueryInputs.InputAnchorHash.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.Base.prototype);var pInputAnchorHash=Swiftype.QueryInputs.InputAnchorHash.prototype;pInputAnchorHash._getInstallHashManager=function(){return this._queryComposer._getInstall().getHashManager()},pInputAnchorHash._updateQuery=function(t){var e=this._getInstallHashManager().getAnchorParams();t.mutateFromPageAnchor(e)},pInputAnchorHash.uiSetupComplete=function(){this._getInstallHashManager().getAnchorParams().hasKey("stq")&&(this.setLastActive(),this._queryComposer.runSearch())},pInputAnchorHash.anchorHashChanged=function(t){t.hasKey("stq")&&(this.setLastActive(),this._queryComposer.runSearch())},Swiftype.QueryInputs.QueryTextField=function(t,e){Swiftype.QueryInputs.Base.call(this,t,e),this._className="Swiftype.QueryInputs.QueryTextField",this._inputCategory="searchText"},Swiftype.QueryInputs.QueryTextField.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.Base.prototype);var pQueryTextField=Swiftype.QueryInputs.QueryTextField.prototype;pQueryTextField.validate=function(){return!(!Swiftype.QueryInputs.Base.prototype.validate.call(this)||!Swiftype.Utils.isInputLikeElement(this._element)&&(this.log(this,WARN,"QueryTextField can only be specified for 'input' or 'textarea' elements. Currently specified on "+this._describeElement(this._element)),1))},pQueryTextField.isDefaultTargetFor=function(){return!0},pQueryTextField._updateQuery=function(t){var e=this._element.val();Swiftype.Utils.isBlank(e)||t.setQueryText(e)},pQueryTextField._getIEVersion=function(){return this._ieVersion||(this._ieVersion=Swiftype.Utils.ieVersion()),this._ieVersion},pQueryTextField._changeToReflectSearch=function(t){t.isEmptyQuery()?this._element.val(""):this._element.is(":focus")||this._getIEVersion()<8||this._element.val(t.getQueryText())},pQueryTextField.attach=function(){this._element.attr("autocomplete","off").attr("autocorrect","off").attr("autocapitalize","off")},Swiftype.QueryInputs.SubmitTextField=function(t,e){Swiftype.QueryInputs.QueryTextField.call(this,t,e),this._className="Swiftype.QueryInputs.SubmitTextField",this._inputCategory="searchText"},Swiftype.QueryInputs.SubmitTextField.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.QueryTextField.prototype);var pSubmitTextField=Swiftype.QueryInputs.SubmitTextField.prototype;pSubmitTextField.attach=function(){var t=this;Swiftype.Utils.bindOnEventsTo(t._element,"input",function(){t.setLastActive()}),Swiftype.Utils.bindOnEventsTo(t._element,"keydown",function(e){13===e.which&&(t._element.blur(),t.setLastActive(),e.preventDefault(),t._queryComposer.runSearch())}),Swiftype.Utils.bindOnEventsTo(t._element.parents("form").not('[name="aspnetForm"]').not("#aspnetForm"),"submit",function(e){t.setLastActive(),e.preventDefault(),t._queryComposer.runSearch()}),Swiftype.QueryInputs.QueryTextField.prototype.attach.call(t)},Swiftype.QueryInputs.KeypressTextField=function(t,e){Swiftype.QueryInputs.QueryTextField.call(this,t,e),this._className="Swiftype.QueryInputs.KeypressTextField",this._inputCategory="suggestText"},Swiftype.QueryInputs.KeypressTextField.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.QueryTextField.prototype);var pKeypressTextField=Swiftype.QueryInputs.KeypressTextField.prototype;pKeypressTextField.attach=function(){var t=this;Swiftype.Utils.bindOnEventsTo(this._element,"input",function(e){t.setLastActive(),e.preventDefault(),t._queryComposer.runSearch()}),Swiftype.QueryInputs.QueryTextField.prototype.attach.call(this)},Swiftype.QueryInputs.Trigger=function(t,e){Swiftype.QueryInputs.Base.call(this,t,e),this._className="Swiftype.QueryInputs.Trigger",this._inputCategory="trigger"},Swiftype.QueryInputs.Trigger.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.Base.prototype);var pTrigger=Swiftype.QueryInputs.Trigger.prototype;pTrigger.attach=function(){var t=this;Swiftype.Utils.bindOnEventsTo(this._element,"click",function(e){t.setLastActive(),e.preventDefault(),t._queryComposer.runSearch()})},Swiftype.QueryInputs.PaginationInput=function(t,e){Swiftype.QueryInputs.Base.call(this,t,e),this._className="Swiftype.QueryInputs.PaginationInput",this._inputCategory="pagination"},Swiftype.QueryInputs.PaginationInput.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.Base.prototype);var pPaginationInput=Swiftype.QueryInputs.PaginationInput.prototype;pPaginationInput._maybeChangeToPageNumber=function(t,e){if("string"==typeof t&&t.match(/^\s*\d+\s*$/)&&(t=parseInt(t)),"number"!=typeof t)return!1;t>0&&(this.setLastActive(),e.preventDefault(),this._queryComposer.runSearch(function(e){e.setPageNumber(t)}))},pPaginationInput.attach=function(){var t=this;Swiftype.Utils.bindOnEventsTo(this._element,"click","[data-st-page]",function(e){t._maybeChangeToPageNumber($(this).data("st-page"),e)}),Swiftype.Utils.bindOnEventsTo(this._element,"change",function(e){var n=$(this).find(":selected"),i=$(n).data("st-page");t._maybeChangeToPageNumber(i,e)})},Swiftype.QueryInputs.RefiningInput=function(t,e){Swiftype.QueryInputs.Base.call(this,t,e),this._className="Swiftype.QueryInputs.RefiningInput",this._inputCategory="refining"},Swiftype.QueryInputs.RefiningInput.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.Base.prototype);var pRefiningInput=Swiftype.QueryInputs.RefiningInput.prototype;pRefiningInput.attach=function(){var t=this;this._setClassAttributes(),Swiftype.Utils.bindOnEventsTo(this._element,"click",t._dataElementIdentifierSelector,function(e){e.preventDefault(),t._currentStateChanged(this)}),Swiftype.Utils.bindOnEventsTo(this._element,"change","select",function(e){var n=$(this).find(":selected");$(n).hasClass(t._elementIdentifierClass)&&(e.preventDefault(),t._currentStateChanged(n))})},pRefiningInput.validate=function(){return this._setClassAttributes(),this._elementMusthaveDataAttributes(this._element,this._dataDocumentTypePostfix)},pRefiningInput._elementMusthaveDataAttributes=function(t,e,n){e=[].concat(e);var i=this,r=!0;return $.each(e,function(e,o){var s=i._toDataAttribute(o),a=Swiftype.Utils.getDataOrClassValue(t,o),l=i._element.find("."+o).length>0;a!==undefined||l?!Swiftype.Utils.isBlank(a)||n||l||(i.log(i,WARN,"Element's data attribute "+s+" should have a valid/none empty value; check "+i._describeElement(this._element)),r=!1):(i.log(i,WARN,"Element must have data attribute "+s+" or respective class; you may need to add it to: "+i._describeElement(this._element)),r=!1)}),r},pRefiningInput._describeElement=function(t){Swiftype.Utils.describeElement(t)},pRefiningInput._toDataAttribute=function(t){return"data-"+t},pRefiningInput._setClassAttributes=function(){this._dataDocumentTypePostfix="st-document-type",this._elementIdentifierClass="st-"+this._inputCategory+"-element",this._dataElementIdentifierSelector="."+this._elementIdentifierClass,this._activeClass="st-"+this._inputCategory+"-active-item",this._activeSelector="."+this._activeClass,this._dataFieldPostfix="st-document-field",this._dataValuesPostfix="st-"+this._inputCategory+"-values",this._dataTypePostfix="st-"+this._inputCategory+"-type",this._dataDirectionPostfix="st-"+this._inputCategory+"-direction",this._dataFromPostfix="st-"+this._inputCategory+"-from",this._dataToPostfix="st-"+this._inputCategory+"-to",this._documentType=this._getDocumentTypeForElement(this._element)},pRefiningInput._markDomElementAsActive=function(t,e){var n=this._activeClass||"active";t=$(t),e?t.addClass(n):t.removeClass(n)},pRefiningInput._propActiveElements=function(){var t=this._activeClass||"active",e=this;$.each(this._getAllElements(),function(n,i){i=$(i),!i.hasClass(t)&&i.attr(":checked")||i.hasClass(t)&&!i.attr(":checked")?e._propElementCheckedWithRetry(i,!0):e._propElementCheckedWithRetry(i,!1),i.hasClass(t)?i.prop("selected",!0):i.prop("selected",!1)})},pRefiningInput._propElementCheckedWithRetry=function(t,e){t.prop("checked",e),setTimeout(function(){t.prop("checked")!==e&&t.prop("checked",e)},300)},pRefiningInput._getAllElements=function(){return $(this._element).find(this._dataElementIdentifierSelector)},pRefiningInput._getValuesForElement=function(t){return Swiftype.Utils.getDataOrClassValue(t,this._dataValuesPostfix)},pRefiningInput._getFromForElement=function(t){return Swiftype.Utils.getDataOrClassValue(t,this._dataFromPostfix)},pRefiningInput._getToForElement=function(t){return Swiftype.Utils.getDataOrClassValue(t,this._dataToPostfix)},pRefiningInput._getTypeForElement=function(t){return Swiftype.Utils.getDataOrClassValue(t,this._dataTypePostfix)},pRefiningInput._getDirectionForElement=function(t){return Swiftype.Utils.getDataOrClassValue(t,this._dataDirectionPostfix)},pRefiningInput._getDocumentFieldForElement=function(t){return Swiftype.Utils.getDataOrClassValue(t,this._dataFieldPostfix)},pRefiningInput._getDocumentTypeForElement=function(t){return Swiftype.Utils.getDataOrClassValue(t,this._dataDocumentTypePostfix)},pRefiningInput._changeToReflectSearch=function(){},Swiftype.QueryInputs.FilterInput=function(t,e){Swiftype.QueryInputs.RefiningInput.call(this,t,e),this._className="Swiftype.QueryInputs.FilterInput",this._inputCategory="filter"},Swiftype.QueryInputs.FilterInput.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.RefiningInput.prototype);var pFilterInput=Swiftype.QueryInputs.FilterInput.prototype;pFilterInput._setClassAttributes=function(){Swiftype.QueryInputs.RefiningInput.prototype._setClassAttributes.call(this),this._documentField=this._getDocumentFieldForElement(this._element)},pFilterInput.validate=function(){var t=this,e=Swiftype.QueryInputs.RefiningInput.prototype.validate.call(this);return e=e&&this._elementMusthaveDataAttributes(this._element,this._dataFieldPostfix),$.each(t._getAllElements(),function(n,i){e=e&&t._elementMusthaveDataAttributes(i,t._dataValuesPostfix)}),e},pFilterInput._currentStateChanged=function(t){var e=this,n=e._getFilterType(t),i=e._getFilterValues(t);e.setLastActive(),e._queryComposer.runSearch(function(t){var r=null;n&&i.length>0&&(r={type:n,values:i},t._pageNumber=1),t.setFilterDataByDocumentTypeSlugAndFilterField(e._documentType,e._documentField,r)})},pFilterInput._getFilterType=function(t){var e=this._getTypeForElement(this._element),n=this._getTypeForElement(t);return!n&&e||(e=n),e},pFilterInput._getFilterValues=function(t){return this._getValuesForElement(t)},pFilterInput._changeToReflectSearch=function(t){var e,n=this,i=t.getFilterDataByDocumentTypeSlugAndFilterField()[this._documentType];if(i&&(e=i[this._documentField])){var r=e.values;r=[].concat(r),$.each(n._getAllElements(),function(t,e){var i=n._getValuesForElement(e);i=[].concat(i);var o,s=n._getFilterType(e);$.each(i,function(t,e){o=e&&(r.indexOf(e)>=0||r.indexOf(e.toString())>=0)?o===undefined||Swiftype.Utils.stringOperator(s,o,!0):o!==undefined&&Swiftype.Utils.stringOperator(s,o,!1)}),n._markDomElementAsActive(e,o)})}i&&e||$.each(n._getAllElements(),function(t,e){n._markDomElementAsActive(e,!1)}),this._propActiveElements()},Swiftype.QueryInputs.FilterInputRelatedGroup=function(t,e){Swiftype.QueryInputs.FilterInput.call(this,t,e),this._className="Swiftype.QueryInputs.FilterInputRelatedGroup",this._inputCategory="filter"},Swiftype.QueryInputs.FilterInputRelatedGroup.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.FilterInput.prototype);var pFilterInputRelatedGroup=Swiftype.QueryInputs.FilterInputRelatedGroup.prototype;pFilterInputRelatedGroup.validate=function(){return Swiftype.QueryInputs.FilterInput.prototype.validate.call(this)&&this._elementMusthaveDataAttributes(this._element,this._dataTypePostfix)},pFilterInputRelatedGroup._getFilterType=function(){return this._getTypeForElement(this._element)},pFilterInputRelatedGroup._getFilterValues=function(t){var e=this,n=[],i=this._getValuesForElement(t);$(t).hasClass(this._activeClass)||(n=n.concat(i));var r=$(this._element).find(this._dataElementIdentifierSelector+this._activeSelector);return $.each(r,function(r,o){$(o).is($(t))||(i=e._getValuesForElement(o),n.indexOf(i)===-1&&(n=n.concat(i)))}),n},Swiftype.QueryInputs.FilterInputRange=function(t,e){Swiftype.QueryInputs.FilterInput.call(this,t,e),this._className="Swiftype.QueryInputs.FilterInputRange",this._inputCategory="filter"},Swiftype.QueryInputs.FilterInputRange.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.FilterInput.prototype);var pFilterInputRange=Swiftype.QueryInputs.FilterInputRange.prototype;pFilterInputRange.attach=function(){var t=this;Swiftype.QueryInputs.FilterInput.prototype.attach.call(this),Swiftype.Utils.bindOnEventsTo(this._element,"field_change",this._fromDataClassSelector+","+this._toDataClassSelector,function(e){e.preventDefault(),t._currentStateChanged(this)})},pFilterInputRange.validate=function(){var t=this,e=Swiftype.QueryInputs.RefiningInput.prototype.validate.call(this);return e=e&&this._elementMusthaveDataAttributes(this._element,this._dataFieldPostfix),$.each(t._getAllElements(),function(n,i){e=e&&t._elementMusthaveDataAttributes(i,[t._dataFromPostfix,t._dataToPostfix])}),e},pFilterInputRange._setClassAttributes=function(){Swiftype.QueryInputs.FilterInput.prototype._setClassAttributes.call(this),this._fromDataClassSelector="."+this._dataFromPostfix,this._toDataClassSelector="."+this._dataToPostfix},pFilterInputRange._currentStateChanged=function(t){var e=this,n="range",i=e._getFromData(t),r=e._getToData(t);e.setLastActive(),e._queryComposer.runSearch(function(t){var o=null;!n||Swiftype.Utils.isBlank(i)||Swiftype.Utils.isBlank(r)||(o={type:n,from:i,to:r},t._pageNumber=1), +t.setFilterDataByDocumentTypeSlugAndFilterField(e._documentType,e._documentField,o)})},pFilterInputRange._getFromData=function(t){var e=this._getFromForElement(t);return Swiftype.Utils.isBlank(e)?this._element.find(this._fromDataClassSelector).first().val():e},pFilterInputRange._getToData=function(t){var e=this._getToForElement(t);return Swiftype.Utils.isBlank(e)?this._element.find(this._toDataClassSelector).first().val():e},pFilterInputRange._changeToReflectSearch=function(t){var e,n=this,i=t.getFilterDataByDocumentTypeSlugAndFilterField()[this._documentType];if(i&&(e=i[this._documentField])){var r=e.from,o=e.to;this._setFromDataOnElement(r),this._setFromToOnElement(o);var s=this._element.find(this._sliderBarSelector);s.attr("data-from",r),s.attr("data-to",o),$.each(n._getAllElements(),function(t,e){var i=n._getFromForElement(e),s=n._getToForElement(e);n._convertToFormat(i,"from")===n._convertToFormat(r,"from")&&n._convertToFormat(s,"to")===n._convertToFormat(o,"to")?n._markDomElementAsActive(e,!0):n._markDomElementAsActive(e,!1)})}i&&e||$.each(n._getAllElements(),function(t,e){n._markDomElementAsActive(e,!1)}),this._propActiveElements()},pFilterInputRange._setFromDataOnElement=function(t){this._element.find(this._fromDataClassSelector).val(t)},pFilterInputRange._setFromToOnElement=function(t){this._element.find(this._toDataClassSelector).val(t)},pFilterInputRange._convertToFormat=function(t){return Number(t)},Swiftype.QueryInputs.FilterInputRangeSlidebar=function(t,e){Swiftype.QueryInputs.FilterInputRange.call(this,t,e),this._className="Swiftype.QueryInputs.FilterInputRangeSlidebar",this._inputCategory="filter",this._sliderBarSelector=".st-filter-range-slidebar"},Swiftype.QueryInputs.FilterInputRangeSlidebar.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.FilterInputRange.prototype);var pFilterInputRangeSlidebar=Swiftype.QueryInputs.FilterInputRangeSlidebar.prototype;pFilterInputRangeSlidebar.attach=function(){var t=this;Swiftype.QueryInputs.FilterInputRange.prototype.attach.call(this),Swiftype.Utils.bindOnEventsTo(this._element,"change",this._sliderBarSelector,function(e){e.preventDefault(),t._fireChangeHiddenFields(t,this)})},pFilterInputRangeSlidebar._changeToReflectSearch=function(t){Swiftype.QueryInputs.FilterInputRange.prototype._changeToReflectSearch.call(this,t),this._element.find(this._sliderBarSelector).ionRangeSlider()},pFilterInputRangeSlidebar._fireChangeHiddenFields=Swiftype.Utils.debounce(function(t,e){var n=$(e).data("ionRangeSlider");n&&(t._element.find(t._fromDataClassSelector).val(n.old_from),t._element.find(t._toDataClassSelector).val(n.old_to).trigger("field_change"))},500),Swiftype.QueryInputs.FilterInputRangeDate=function(t,e){Swiftype.QueryInputs.FilterInputRange.call(this,t,e),this._className="Swiftype.QueryInputs.FilterInputRangeDate",this._inputCategory="filter",this._datePickerSelector=".st-filter-datepicker"},Swiftype.QueryInputs.FilterInputRangeDate.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.FilterInputRange.prototype);var ROME_DATE_FORMAT="MM-DD-YYYY",pFilterInputRangeDate=Swiftype.QueryInputs.FilterInputRangeDate.prototype;pFilterInputRangeDate._changeToReflectSearch=function(t){Swiftype.QueryInputs.FilterInputRange.prototype._changeToReflectSearch.call(this,t);var e=this._element.find("."+this._dataFromPostfix).first(),n=this._element.find("."+this._dataToPostfix).first();if(e.length&&n.length){e=e[0],n=n[0];var i=rome(e,{time:!1,dateValidator:rome.val.beforeEq(n),inputFormat:ROME_DATE_FORMAT}),r=rome(n,{time:!1,dateValidator:rome.val.afterEq(e),inputFormat:ROME_DATE_FORMAT});this._element.parents(".st-position-container").scroll(function(){$(i.container).is(":visible")&&i.show(),$(r.container).is(":visible")&&r.show()})}},pFilterInputRangeDate._getFromData=function(t){return new moment(Swiftype.QueryInputs.FilterInputRange.prototype._getFromData.call(this,t),ROME_DATE_FORMAT).format()},pFilterInputRangeDate._getToData=function(t){return new moment(Swiftype.QueryInputs.FilterInputRange.prototype._getToData.call(this,t),ROME_DATE_FORMAT).format()},pFilterInputRangeDate._setFromDataOnElement=function(t){this._element.find(this._fromDataClassSelector).val(moment(t).format(ROME_DATE_FORMAT))},pFilterInputRangeDate._setFromToOnElement=function(t){this._element.find(this._toDataClassSelector).val(moment(t).format(ROME_DATE_FORMAT))},Swiftype.QueryInputs.FilterInputPredefinedRangeDate=function(t,e){Swiftype.QueryInputs.FilterInputRange.call(this,t,e),this._className="Swiftype.QueryInputs.FilterInputPredefinedRangeDate",this._inputCategory="filter"},Swiftype.QueryInputs.FilterInputPredefinedRangeDate.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.FilterInputRange.prototype);var pFilterInputPredefinedRangeDate=Swiftype.QueryInputs.FilterInputPredefinedRangeDate.prototype;pFilterInputPredefinedRangeDate._getFromData=function(t){var e=Swiftype.QueryInputs.FilterInputRange.prototype._getFromData.call(this,t);return this._beginningOfDay(e)},pFilterInputPredefinedRangeDate._getToData=function(t){var e=Swiftype.QueryInputs.FilterInputRange.prototype._getToData.call(this,t);return this._endOfDay(e)},pFilterInputPredefinedRangeDate._currentTimestamp=function(){return moment().unix()},pFilterInputPredefinedRangeDate._beginningOfDay=function(t){var e=this._toDate(t);return e.startOf("day"),e.format()},pFilterInputPredefinedRangeDate._endOfDay=function(t){var e=this._toDate(t);return e.endOf("day"),e.format()},pFilterInputPredefinedRangeDate._toDate=function(t){return new moment(1e3*(t+this._currentTimestamp()))},pFilterInputPredefinedRangeDate._convertToFormat=function(t,e){var n;if(isFinite(t))switch(t=Number(t),e){case"from":n=this._beginningOfDay(t);break;case"to":n=this._endOfDay(t);break;default:n=this._beginningOfDay(t)}else n=t;return n},Swiftype.QueryInputs.FilterInputReset=function(t,e){Swiftype.QueryInputs.FilterInput.call(this,t,e),this._className="Swiftype.QueryInputs.FilterInputReset",this._inputCategory="filter"},Swiftype.QueryInputs.FilterInputReset.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.FilterInput.prototype);var pFilterInputReset=Swiftype.QueryInputs.FilterInputReset.prototype;pFilterInputReset.validate=function(){var t=Swiftype.QueryInputs.RefiningInput.prototype.validate.call(this);return t=t&&this._elementMusthaveDataAttributes(this._element,this._dataFieldPostfix)},pFilterInputReset._getFilterType=function(){return null},pFilterInputReset._getFilterValues=function(){return null},Swiftype.QueryInputs.SortInput=function(t,e){Swiftype.QueryInputs.RefiningInput.call(this,t,e),this._className="Swiftype.QueryInputs.SortInput",this._inputCategory="sort"},Swiftype.QueryInputs.SortInput.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.RefiningInput.prototype);var pSortInput=Swiftype.QueryInputs.SortInput.prototype;pSortInput.validate=function(){var t=this,e=Swiftype.QueryInputs.RefiningInput.prototype.validate.call(this);return $.each(t._getAllElements(),function(n,i){e=e&&t._elementMusthaveDataAttributes(i,[t._dataFieldPostfix,t._dataDirectionPostfix],!0)}),e},pSortInput._currentStateChanged=function(t){var e=this,n=this._getSortDirection(t),i=this._getSortField(t);e.setLastActive(),e._queryComposer.runSearch(function(t){t._pageNumber=1,t.setSortFieldByDocumentTypeSlug(e._documentType,i),t.setSortDirectionByDocumentTypeSlug(e._documentType,n)})},pSortInput._getSortDirection=function(t){return this._getDirectionForElement(t)},pSortInput._getSortField=function(t){return this._getDocumentFieldForElement(t)},pSortInput._changeToReflectSearch=function(t){var e=this,n=t.getSortFieldByDocumentTypeSlug()[this._documentType],i=t.getSortDirectionByDocumentTypeSlug()[this._documentType];n&&i?$.each(e._getAllElements(),function(t,r){var o=e._getSortField(r),s=e._getSortDirection(r);n===o&&i===s?e._markDomElementAsActive(r,!0):e._markDomElementAsActive(r,!1)}):$.each(e._getAllElements(),function(t,n){e._markDomElementAsActive(n,!1)}),this._propActiveElements()},Swiftype.QueryInputs.SortInputReset=function(t,e){Swiftype.QueryInputs.SortInput.call(this,t,e),this._className="Swiftype.QueryInputs.SortInputReset"},Swiftype.QueryInputs.SortInputReset.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.SortInput.prototype);var pSortInputReset=Swiftype.QueryInputs.SortInputReset.prototype;pSortInputReset.validate=function(){return Swiftype.QueryInputs.RefiningInput.prototype.validate.call(this)},pSortInputReset._getSortDirection=function(){return null},pSortInputReset._getSortField=function(){return null},Swiftype.QueryInputs.FacetInput=function(t,e){Swiftype.QueryInputs.RefiningInput.call(this,t,e),this._className="Swiftype.QueryInputs.FacetInput",this._inputCategory="facet"},Swiftype.QueryInputs.FacetInput.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.RefiningInput.prototype);var pFacetInput=Swiftype.QueryInputs.FacetInput.prototype;pFacetInput.attach=function(){this._setClassAttributes(),this._queryComposer.addToPermanentQueryTransforms(this._queryTransformFunction(this._element))},pFacetInput.validate=function(){var t=Swiftype.QueryInputs.RefiningInput.prototype.validate.call(this);return t=t&&this._elementMusthaveDataAttributes(this._element,this._dataFieldPostfix)},pFacetInput._queryTransformFunction=function(t){var e=this,n=this._getDocumentFieldForElement(t);return function(t){t.setFacetDataByDocumentTypeSlug(e._documentType,n)}},Swiftype.QueryInputs.SpellingSuggestion=function(t,e){Swiftype.QueryInputs.Base.call(this,t,e),this._className="Swiftype.QueryInputs.SpellingSuggestion",this._inputCategory="suggestion"},Swiftype.QueryInputs.SpellingSuggestion.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.Base.prototype);var pSpellingSuggestion=Swiftype.QueryInputs.SpellingSuggestion.prototype;pSpellingSuggestion.attach=function(){var t=this;Swiftype.Utils.bindOnEventsTo(this._element,"click","[data-st-search-suggestion]",function(e){var n=$(this).attr("data-st-search-suggestion");n&&(t.setLastActive(),e.preventDefault(),t._queryComposer.runSearch(function(t){t.setQueryText(n)}))})},Swiftype.ResultsDisplay=function(t,e,n,i,r){this._context=t,this._templates=e,this._uiBindings=n,this._uiConfiguration=i,this._resultClickedFilterHook=r,this._queryOutputs=[]};var pResultsDisplay=Swiftype.ResultsDisplay.prototype;pResultsDisplay.toString=function(){return"[Swiftype.ResultsDisplay for "+this._context+"]"},pResultsDisplay.log=function(t,e,n){this._context.log(t,e,n)},pResultsDisplay._addQueryOutput=function(t){t.validate()?this._queryOutputs.push(t):t.handleInvalid()},pResultsDisplay.setVisible=function(t){t=!!t,"undefined"!=typeof this._visible&&t===this._visible||(this._visible=t,this._context.visibilityChanged("resultsDisplay",this._visible))},pResultsDisplay.isVisible=function(){return!!this._visible},pResultsDisplay._getInstall=function(){return this._context.getInstall()},pResultsDisplay.setVisibility=function(){this._context.setVisibility.apply(this._context,arguments)},pResultsDisplay.getVisibility=function(){return this._context.getVisibility.apply(this._context,arguments)},pResultsDisplay.visibilityChanged=function(){for(var t=["visibilityChanged"],e=0;e")},pTemplatedQueryOutput._singleTopLevelElementName=function(){return"div"},pTemplatedQueryOutput._createToplevelStructure=function(){var t=this._element.contents(),e=!1;if(t.each(function(t,n){1!==n.nodeType&&(e=!0)}),e){var n=$(this._createSingleToplevelElement());n.addClass(Swiftype.CssBehaviorClasses.adornments.show_only_on_empty_query),n.html(this._element.html()),this._element.html(n[0].outerHTML)}else t.addClass(Swiftype.CssBehaviorClasses.adornments.show_only_on_empty_query)},pTemplatedQueryOutput._createOutputElement=function(){var t=this._outputElementName();return $("<"+t+">")},pTemplatedQueryOutput._outputElementName=function(){return"div"},pTemplatedQueryOutput._outputElementShownOnlyWithNonemptyQueries=function(){return!0},pTemplatedQueryOutput._getOutputElement=function(){return this._outputElement||(this._outputElement=$(this._createOutputElement()),this._outputElementShownOnlyWithNonemptyQueries()&&this._outputElement.addClass(Swiftype.CssBehaviorClasses.adornments.show_only_on_nonempty_query),this._outputElement.appendTo(this._element)),this._outputElement},pTemplatedQueryOutput._bindAsNeeded=function(){},pTemplatedQueryOutput._attach=function(){this._createToplevelStructure(),this._bindAsNeeded(),this._showEmptyQueryElements()},Swiftype.QueryOutputs.ChromeControl=function(t,e){Swiftype.QueryOutputs.Base.call(this,t,e),this._className="Swiftype.QueryOutputs.ChromeControl"},Swiftype.QueryOutputs.ChromeControl.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.Base.prototype);var pChromeControl=Swiftype.QueryOutputs.ChromeControl.prototype;pChromeControl._getSetVisibilityArguments=function(){var t="toggle",e="all";return Swiftype.Utils.hasClassMatching(this._element,/\-show\-/)?t=!0:Swiftype.Utils.hasClassMatching(this._element,/\-toggle\-/)?t="toggle":Swiftype.Utils.hasClassMatching(this._element,/\-hide\-/)&&(t=!1),Swiftype.Utils.hasClassMatching(this._element,/\-inputs$/)?e="queryComposer":Swiftype.Utils.hasClassMatching(this._element,/\-outputs$/)&&(e="resultsDisplay"),[e,t]},pChromeControl._attach=function(){var t=this;Swiftype.Utils.bindOnEventsTo(this._element,"click",function(e){t._applyVisibilityChanges(),e.preventDefault()})},pChromeControl._applyVisibilityChanges=function(){var t=this._getSetVisibilityArguments();this.setVisibility.apply(this,t)},Swiftype.QueryOutputs.OutputAnchorHash=function(t,e){Swiftype.QueryOutputs.Base.call(this,t,e),this._className="Swiftype.QueryOutputs.OutputAnchorHash",this._initial=!1},Swiftype.QueryOutputs.OutputAnchorHash.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.Base.prototype);var pOutputAnchorHash=Swiftype.QueryOutputs.OutputAnchorHash.prototype;pOutputAnchorHash._getInstallHashManager=function(){return this._resultsDisplay._getInstall().getHashManager()},pOutputAnchorHash._attach=function(){this._initial=!0},pOutputAnchorHash.visibilityChanged=function(t,e){"resultsDisplay"===t&&(e||this._initial||this._getInstallHashManager().updateHash({}),this._initial=!1)},pOutputAnchorHash._currentSearchChanged=function(t){this._getInstallHashManager().updateHash(t.getQuery().toAnchorParams())},pOutputAnchorHash.anchorHashChanged=function(t){t.hasKey("stq")||this.setVisibility("resultsDisplay",!1)},Swiftype.QueryOutputs.ChromeEscape=function(t,e){Swiftype.QueryOutputs.Base.call(this,t,e),this._className="Swiftype.QueryOutputs.ChromeEscape"},Swiftype.QueryOutputs.ChromeEscape.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.Base.prototype);var pChromeEscape=Swiftype.QueryOutputs.ChromeEscape.prototype;pChromeEscape._attach=function(){var t=this;Swiftype.Utils.bindOnEventsTo("body","keydown",function(e){27===e.which&&t.setVisibility("resultsDisplay",!1)})},pChromeEscape.validate=function(){return!(!Swiftype.QueryOutputs.Base.prototype.validate.call(this)||0===$("body").length&&(this.log(this,WARN,"'Esc' event requires 'body' element to be present and it cannot be found."),1))},Swiftype.QueryOutputs.MobileMetaTag=function(t,e){Swiftype.QueryOutputs.Base.call(this,t,e),this._className="Swiftype.QueryOutputs.MobileMetaTag"},Swiftype.QueryOutputs.MobileMetaTag.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.Base.prototype);var pMobileMetaTag=Swiftype.QueryOutputs.MobileMetaTag.prototype;pMobileMetaTag._getExistingViewport=function(){return this._existingViewportRead||(this._existingViewport=$("head meta[name=viewport]").first(),this._existingViewport.length>0&&(this._viewport=this._existingViewport,this._existingViewportContent=this._existingViewport.attr("content")),this._existingViewportRead=!0),this._existingViewport},pMobileMetaTag._hasExistingViewport=function(){return this._getExistingViewport().length>0},pMobileMetaTag._setViewportContentTo=function(t){this._hasExistingViewport()?this._getExistingViewport().attr("content",t):void 0===t||null===t?this._viewport&&(this._viewport.remove(),this._viewport=null):(this._viewport||($("head").prepend(''),this._viewport=$("head meta[name=viewport]")),this._viewport.attr("content",t))},pMobileMetaTag.visibilityChanged=function(){this.getVisibility("resultsDisplay")?this._setViewportContentTo("width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"):this._hasExistingViewport()?this._setViewportContentTo(this._existingViewportContent):this._setViewportContentTo("width=device-width, initial-scale=1.0, maximum-scale=1.0")},Swiftype.QueryOutputs.ChromeElement=function(t,e){Swiftype.QueryOutputs.Base.call(this,t,e),this._className="Swiftype.QueryOutputs.ChromeElement"},Swiftype.QueryOutputs.ChromeElement.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.Base.prototype);var pChromeElement=Swiftype.QueryOutputs.ChromeElement.prototype;pChromeElement._showOrHide=function(t){var e=$(this._element);t?Swiftype.Utils.elementShow(e):Swiftype.Utils.elementHide(e)},pChromeElement.visibilityChanged=function(){Swiftype.Utils.hasClassMatching(this._element,/\-input$/i)?this._showOrHide(this.getVisibility("queryComposer")):Swiftype.Utils.hasClassMatching(this._element,/\-output$/i)?this._showOrHide(this.getVisibility("resultsDisplay")):this._showOrHide(this.getVisibility("any"))},Swiftype.QueryOutputs.ChromeOverlayElement=function(t,e){Swiftype.QueryOutputs.ChromeElement.call(this,t,e),this._className="Swiftype.QueryOutputs.ChromeOverlayElement"},Swiftype.QueryOutputs.ChromeOverlayElement.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.ChromeElement.prototype);var pChromeOverlayElement=Swiftype.QueryOutputs.ChromeOverlayElement.prototype;pChromeOverlayElement._showOrHide=function(t){$("body").toggleClass("st-ui-overlay-active",t),t&&window.scrollTo(0,0),Swiftype.QueryOutputs.ChromeElement.prototype._showOrHide.call(this,t)},Swiftype.QueryOutputs.ResultList=function(t,e,n){Swiftype.QueryOutputs.TemplatedQueryOutput.call(this,t,e,n),this._className="Swiftype.QueryOutputs.ResultList"},Swiftype.QueryOutputs.ResultList.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.TemplatedQueryOutput.prototype);var pResultList=Swiftype.QueryOutputs.ResultList.prototype,SWIFTYPE_RESULT_DATA_NAME="__swiftype_result",SWIFTYPE_SEARCH_RESULT_TARGET_URL_DATA_NAME="st-url";pResultList._bindAsNeeded=function(){var t=this,e=this._getOutputElement();Swiftype.Utils.bindOnEventsTo(e,"mousedown","[data-"+SWIFTYPE_SEARCH_RESULT_TARGET_URL_DATA_NAME+"]",function(e){Swiftype.Utils.eventIsLeftClick(e)&&t._sendToSearchResultViaElements(this,Swiftype.Utils.eventIsMiddleClick(e))}),Swiftype.Utils.bindOnEventsTo(e,"click","[data-"+SWIFTYPE_SEARCH_RESULT_TARGET_URL_DATA_NAME+"]",function(t){t.preventDefault()}),Swiftype.Utils.bindOnEventsTo(e,"mousedown","a",function(e){Swiftype.Utils.eventIsLeftClick(e)&&(t._sendToSearchResultViaElements(this,Swiftype.Utils.eventIsMiddleClick(e),$(this).attr("href")),e.preventDefault())}),Swiftype.Utils.bindOnEventsTo(e,"click","a",function(t){t.preventDefault()})},pResultList._addDataToResult=function(t,e){t.addClass(SWIFTYPE_RESULT_DATA_NAME),t.data(SWIFTYPE_RESULT_DATA_NAME,e)},pResultList._getTemplateRenderingContext=function(t){return t.getTemplateRenderingContext()},pResultList._renderResults=function(t){var e=this,n=t.firstResultSet();if(!n)return void e.log(e,WARN,"Server returned no result sets at all; skipping result rendering entirely: "+t);var i=this._getCompiledTemplate(e._templates.result_item,n.getSetName());i?(n.eachResult(function(t,n){var r=e._getTemplateRenderingContext(n),o=i.render(r),s=$(o);e._addDataToResult(s,n),$(e._getOutputElement()).append(s)}),$(e._element).scrollTop(0)):e.log(e,WARN,"Skipping rendering of "+n.countOfResultsOnThisPage()+" records for result set '"+n.getSetName()+"', because we have no template for that kind of set.")},pResultList._currentSearchChanged=function(t){this._getOutputElement().html(""),t.isEmptyQuery()||this._renderResults(t),Swiftype.QueryOutputs.TemplatedQueryOutput.prototype._currentSearchChanged.call(this,t)},Swiftype.QueryOutputs.SetFocusOnInput=function(t,e){Swiftype.QueryOutputs.Base.call(this,t,e),this._className="Swiftype.QueryOutputs.SetFocusOnInput"},Swiftype.QueryOutputs.SetFocusOnInput.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.Base.prototype);var pSetFocusOnInput=Swiftype.QueryOutputs.SetFocusOnInput.prototype;pSetFocusOnInput._currentSearchChanged=function(t){Swiftype.Utils.isMobile()||$(this._element).focus(),Swiftype.QueryOutputs.Base.prototype._currentSearchChanged.call(this,t)},pSetFocusOnInput._setFocusToElementWithTimeout=function(){var t=this;Swiftype.Utils.isMobile()||setTimeout(function(){$(t._element).focus()},100)},pSetFocusOnInput.visibilityChanged=function(){this._setFocusToElementWithTimeout()},Swiftype.QueryOutputs.LimitedShowList=function(t,e){Swiftype.QueryOutputs.Base.call(this,t,e),this._className="Swiftype.QueryOutputs.LimitedShowList",this._listElementSelector=".st-limited-show-element",this._actionElementSelector=".st-limited-show-action",this._hideClass="st-list-hide",this._listElements=undefined,this._actionElement=undefined,this._initialShow=4,this._increment=5},Swiftype.QueryOutputs.LimitedShowList.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.Base.prototype);var pLimitedShowList=Swiftype.QueryOutputs.LimitedShowList.prototype;pLimitedShowList.attach=function(){var t=this;Swiftype.Utils.bindOnEventsTo(this._element,"click",this._actionElementSelector,function(e){e.preventDefault(),t._currentShownNumber=t._currentShownNumber+t._increment;var n=t._currentShownNumber+1;t._element.find(t._listElementSelector+":lt("+n+")").removeClass(t._hideClass),t._hideActionElementIfAllVisible()})},pLimitedShowList._currentSearchChanged=function(){this._element.find(this._listElementSelector+":gt("+this._initialShow+")").addClass(this._hideClass),this._currentShownNumber=this._initialShow,this._hideActionElementIfAllVisible()},pLimitedShowList._hideActionElementIfAllVisible=function(){var t=this._element.find(this._listElementSelector),e=t.filter("."+this._hideClass);0!==t.length&&0!==e.length||this._element.find(this._actionElementSelector).addClass(this._hideClass)},Swiftype.QueryOutputs.TargetedQueryOutput=function(t,e){Swiftype.QueryOutputs.Base.call(this,t,e),this._className="Swiftype.QueryOutputs.TargetedQueryOutput",this._targetElements=undefined},Swiftype.QueryOutputs.TargetedQueryOutput.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.Base.prototype);var pTargetedQueryOutput=Swiftype.QueryOutputs.TargetedQueryOutput.prototype;pTargetedQueryOutput._defaultTargets=function(){var t=this,e=this._resultsDisplay.findQueryElements(function(e){return e.isDefaultTargetFor(t)});return $.map(e,function(t){return t.getElement()[0]})},pTargetedQueryOutput._attach=function(){this._setTargetElements(),this._targetElements&&this._attachToTarget()},pTargetedQueryOutput._setTargetElements=function(){var t=new Swiftype.QueryElementLocator(this._context.getInstall(),document),e=$(this._getTargetSelector()||this._defaultTargets()).filter(function(){return t.belongsToInstall(this)});e&&e.length>0&&(this._targetElements=e)},pTargetedQueryOutput._getTargetSelector=function(){return Swiftype.Utils.getDataOrClassValue(this._element,"st-target-element",!0)},pTargetedQueryOutput._getTargetElements=function(){return this._targetElements||this._setTargetElements(),this._targetElements},pTargetedQueryOutput._attachToTarget=function(){},pTargetedQueryOutput.handleInvalid=function(){$(this._element).remove(),this.log(this,WARN,"Target not found for "+this._getTargetSelector()+". Removing element from DOM: "+this._describeElement(this._element))},pTargetedQueryOutput.validate=function(){return!(!Swiftype.QueryOutputs.Base.prototype.validate.call(this)||!this._getTargetElements()&&(this.log(this,WARN,"This element requires a target, but none is specified; you may need to specify 'data-st-target-element' on "+this._describeElement(this._element)),1))},Swiftype.QueryOutputs.AdjoinedElement=function(t,e){Swiftype.QueryOutputs.TargetedQueryOutput.call(this,t,e),this._className="Swiftype.QueryOutputs.AdjoinedElement",this._lastActiveTarget=null},Swiftype.QueryOutputs.AdjoinedElement.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.TargetedQueryOutput.prototype);var pAdjoinedElement=Swiftype.QueryOutputs.AdjoinedElement.prototype;pAdjoinedElement._attachToTarget=function(){var t=this;$.each(this._targetElements,function(e,n){Swiftype.Utils.bindOnEventsTo(n,"input click focus",t._moveRestyleElement.bind(t,this))})},pAdjoinedElement._moveRestyleElement=function(t){this._lastActiveTarget=t;var e=this._element[0],n=t.getBoundingClientRect(),i=$(t).offset();e.style.position="absolute",e.style.top=$(t).outerHeight()+i.top+1+"px",e.style.left=i.left+"px",n.width&&(e.style.width=parseInt(n.width)-2+"px"),e.style.zIndex=999999},pAdjoinedElement._moveRestyleLastActiveTarget=function(){this._lastActiveTarget&&this._moveRestyleElement(this._lastActiveTarget)},pAdjoinedElement.validate=function(){return!(!Swiftype.QueryOutputs.TargetedQueryOutput.prototype.validate.call(this)||!Swiftype.Utils.isInputLikeElement(this._targetElements)&&(this.log(this,WARN,"Adjoined element can only be attached to 'input' or 'textarea' element. Currently specified on "+this._describeElement(this._targetElements)),1))},pAdjoinedElement.windowResized=function(){this._moveRestyleLastActiveTarget()},Swiftype.QueryOutputs.FieldDependentVisibility=function(t,e){Swiftype.QueryOutputs.TargetedQueryOutput.call(this,t,e),this._className="Swiftype.QueryOutputs.FieldDependentVisibility"},Swiftype.QueryOutputs.FieldDependentVisibility.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.TargetedQueryOutput.prototype);var pFieldDependentVisibility=Swiftype.QueryOutputs.FieldDependentVisibility.prototype;pFieldDependentVisibility._attachToTarget=function(){this._setShowHideEvents()},pFieldDependentVisibility._shouldBeShown=function(t){if(t.is(":hidden"))return!1;if(this._escapedByUser)return!1;var e=!1;return $.each(this._targetElements,function(t,n){$(n).is(":focus")&&(e=!0)}),e},pFieldDependentVisibility._showOrHideAppropriately=function(t){this._shouldBeShown(t)?Swiftype.Utils.elementShow(this._element):Swiftype.Utils.elementHide(this._element)},pFieldDependentVisibility._setShowHideEvents=function(){var t=this;$.each(this._getTargetElements(),function(e,n){Swiftype.Utils.bindOnEventsTo(n,"focus click input blur keydown",function(e){ +27===e.which?t._escapedByUser=!0:t._escapedByUser=!1,t._showOrHideAppropriately($(n))})})},pFieldDependentVisibility.validate=function(){if(!Swiftype.QueryOutputs.TargetedQueryOutput.prototype.validate.call(this))return!1;var t=$(this._getTargetElements());return!!Swiftype.Utils.isInputLikeElement(t)},pFieldDependentVisibility.someQueryChanged=function(t,e){this._currentSearchChanged(e)},pFieldDependentVisibility._currentSearchChanged=function(t){Swiftype.QueryOutputs.TargetedQueryOutput.prototype._currentSearchChanged.call(this,t);var e=this;$.each(this._getTargetElements(),function(t,n){$(n).is(":hidden")||e._showOrHideAppropriately($(n))})},Swiftype.QueryOutputs.FieldAndQueryDependentVisibility=function(t,e){Swiftype.QueryOutputs.FieldDependentVisibility.call(this,t,e),this._className="Swiftype.QueryOutputs.FieldAndQueryDependentVisibility"},Swiftype.QueryOutputs.FieldAndQueryDependentVisibility.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.FieldDependentVisibility.prototype);var pFieldAndQueryDependentVisibility=Swiftype.QueryOutputs.FieldAndQueryDependentVisibility.prototype;pFieldAndQueryDependentVisibility._shouldBeShown=function(t){return!!this._hasQuery&&Swiftype.QueryOutputs.FieldDependentVisibility.prototype._shouldBeShown.call(this,t)},pFieldAndQueryDependentVisibility._currentSearchChanged=function(t){this._hasQuery=!t.isEmptyQuery(),Swiftype.QueryOutputs.FieldDependentVisibility.prototype._currentSearchChanged.call(this,t)},Swiftype.QueryOutputs.FieldAndResultsDependentVisibility=function(t,e){Swiftype.QueryOutputs.FieldAndQueryDependentVisibility.call(this,t,e),this._className="Swiftype.QueryOutputs.FieldAndResultsDependentVisibility"},Swiftype.QueryOutputs.FieldAndResultsDependentVisibility.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.FieldAndQueryDependentVisibility.prototype);var pFieldAndResultsDependentVisibility=Swiftype.QueryOutputs.FieldAndResultsDependentVisibility.prototype;pFieldAndResultsDependentVisibility._shouldBeShown=function(t){return!!this._lastQueryWasFromOurContext&&!!this._hasResults&&Swiftype.QueryOutputs.FieldAndQueryDependentVisibility.prototype._shouldBeShown.call(this,t)},pFieldAndResultsDependentVisibility._currentSearchChanged=function(t){this._hasResults=t.hasAnyResults(),Swiftype.QueryOutputs.FieldAndQueryDependentVisibility.prototype._currentSearchChanged.call(this,t)},pFieldAndResultsDependentVisibility.someQueryChanged=function(t,e,n){this._lastQueryWasFromOurContext=this._isOurContext(t),Swiftype.QueryOutputs.FieldAndQueryDependentVisibility.prototype.someQueryChanged.call(this,t,e,n)},Swiftype.QueryOutputs.KeyboardNavigableList=function(t,e){Swiftype.QueryOutputs.TargetedQueryOutput.call(this,t,e),this._className="Swiftype.QueryOutputs.KeyboardNavigableList",this._activeResultIndex=null,this._maximumResultIndex=0},Swiftype.QueryOutputs.KeyboardNavigableList.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.TargetedQueryOutput.prototype);var pKeyboardNavigableList=Swiftype.QueryOutputs.KeyboardNavigableList.prototype;pKeyboardNavigableList._attachToTarget=function(){this._setKeyStrokeEvents()},pKeyboardNavigableList._allToplevelDomElementsThatAreSearchResults=function(){var t=function(t,e){return e=$(e),void 0!==e.data(SWIFTYPE_RESULT_DATA_NAME)};return $(this._element).find("*").filter(t)},pKeyboardNavigableList._activeQueryClass=function(){if(!this._activeQueryClassMemoized){var t=Swiftype.Utils.getDataOrClassValue(this._element,"st-active-query-class");t=t||"st-keyboard-active-item",this._activeQueryClassMemoized=t}return this._activeQueryClassMemoized},pKeyboardNavigableList._allToplevelDomElementsForResultIndex=function(t){var e=function(e,n){n=$(n);var i=n.data(SWIFTYPE_RESULT_DATA_NAME);return!(!i||i.getSequenceInThisPage()!==t)};return $(this._allToplevelDomElementsThatAreSearchResults()).filter(e)},pKeyboardNavigableList._getActiveResultIndex=function(){return this._activeResultIndex},pKeyboardNavigableList._resultSet=function(){var t=this._allToplevelDomElementsThatAreSearchResults(),e=t[0];return e?$(e).data(SWIFTYPE_RESULT_DATA_NAME).getResultSet():null},pKeyboardNavigableList._currentSearchChanged=function(t){this._setActiveResultIndex(null);var e=this._resultSet();e&&e.countOfResultsOnThisPage()?this._maximumResultIndex=e.countOfResultsOnThisPage()-1:this._maximumResultIndex=null,Swiftype.QueryOutputs.TargetedQueryOutput.prototype._currentSearchChanged.call(this,t)},pKeyboardNavigableList._setActiveResultIndex=function(t){if(this._allToplevelDomElementsThatAreSearchResults().removeClass(this._activeQueryClass()),"number"==typeof t)if(t<0||"undefined"!=typeof this._maximumResultIndex&&t>this._maximumResultIndex)this._activeResultIndex=null;else{this._activeResultIndex=t;var e=this._allToplevelDomElementsForResultIndex(t);e.addClass(this._activeQueryClass())}else this._activeResultIndex=null},pKeyboardNavigableList._nextResult=function(){var t=this._getActiveResultIndex();"number"==typeof t?this._setActiveResultIndex(t+1):this._setActiveResultIndex(0)},pKeyboardNavigableList._previousResult=function(){var t=this._getActiveResultIndex();"number"==typeof t?this._setActiveResultIndex(t-1):this._setActiveResultIndex(this._maximumResultIndex)},pKeyboardNavigableList._goToResult=function(){var t=this._getActiveResultIndex();if("number"==typeof t){var e=this._allToplevelDomElementsForResultIndex(t);if(e.length>0)return this._sendToSearchResultViaElements(e),!0}return!1},pKeyboardNavigableList._hasActiveResult=function(){return"number"==typeof this._getActiveResultIndex()},pKeyboardNavigableList._setKeyStrokeEvents=function(){var t=this;$(this._getTargetElements()).keydown(function(e){switch(e.which){case 13:t._element.is(":visible")&&t._goToResult()&&(e.preventDefault(),e.stopImmediatePropagation());break;case 38:e.preventDefault(),t._previousResult();break;case 40:e.preventDefault(),t._nextResult();break;case 27:t._hasActiveResult()&&(t._setActiveResultIndex(null),e.preventDefault())}})},Swiftype.QueryOutputs.SimpleTemplateOutput=function(t,e,n,i){Swiftype.QueryOutputs.TemplatedQueryOutput.call(this,t,e,n),this._className="Swiftype.QueryOutputs.SimpleTemplateOutput",this._templateName=i},Swiftype.QueryOutputs.SimpleTemplateOutput.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.TemplatedQueryOutput.prototype);var pSimpleTemplateOutput=Swiftype.QueryOutputs.SimpleTemplateOutput.prototype;pSimpleTemplateOutput._getTemplate=function(){return this._getCompiledTemplate(this._templates,this._templateName)},pSimpleTemplateOutput._currentSearchChanged=function(t){if(t.isEmptyQuery())this._getOutputElement().html("");else{var e=this._getTemplate();if(e){var n=e.render(this._getTemplateRenderingContext(t));this._getOutputElement().html(n)}}};var QUERY_OUTPUT_CLASS_TO_TEMPLATE_NAME={ResultSummary:"result_summary",ResultPagination:"result_pagination",SpellingSuggestion:"spelling_suggestion",SortOutput:"sort_dropdown",FacetOutput:"filter_checkbox"};$.each(QUERY_OUTPUT_CLASS_TO_TEMPLATE_NAME,function(t,e){Swiftype.QueryOutputs[t]=function(n,i,r){Swiftype.QueryOutputs.SimpleTemplateOutput.call(this,n,i,r),this._className="Swiftype.QueryOutputs."+t,this._templateName=e},Swiftype.QueryOutputs[t].prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.SimpleTemplateOutput.prototype)}),$.each(["ResultSummary","SpellingSuggestion"],function(t,e){Swiftype.QueryOutputs[e].prototype._getTemplateRenderingContext=function(t){return t.firstResultSet().getTemplateRenderingContext()}});var pResultPagination=Swiftype.QueryOutputs.ResultPagination.prototype;pResultPagination._currentSearchChanged=function(t){Swiftype.QueryOutputs.SimpleTemplateOutput.prototype._currentSearchChanged.call(this,t),t.firstResultSet()&&$(this._element).find("option[data-st-page="+t.firstResultSet().currentPageNumber()+"]").attr("selected","selected")},pResultPagination.getPaginationConfig=function(){return this.getResultsDisplay().getUiConfiguration().result_pagination},pResultPagination._paginationPageNumbers=function(t){var e=[],n=t.currentPageNumber(),i=t.lastPageNumber(),r=parseInt(this.getPaginationConfig().max_numbers_to_show);if(r>0){var o=1;i>r&&(o=Math.min(n-parseInt(r/2),i-r)+1,o=Math.max(o,1));for(var s=o;s<=Math.min(o+r-1,i);++s)e.push(s)}return e},pResultPagination._getTemplateRenderingContext=function(t){var e=t.firstResultSet().getTemplateRenderingContext(),n=this._paginationPageNumbers(t.firstResultSet());return $.extend(e,{page_numbers:n})};var pSortOutput=Swiftype.QueryOutputs.SortOutput.prototype;pSortOutput.validate=function(){return!!Swiftype.QueryOutputs.SimpleTemplateOutput.prototype.validate.call(this)&&(this._documentType=Swiftype.Utils.getDataOrClassValue(this._element,"st-document-type"),this._visualOrder=Swiftype.Utils.getDataOrClassValue(this._element,"st-visual-order"),this._findSortConfiguration(),this._sortConfig?(this._templateName=this._sortConfig.template_name,!0):(this.log(this,WARN,"Sort "+this._describeElement(this._element)+" is not configured correctly"),!1))},pSortOutput._findSortConfiguration=function(){var t=this;$.each(this.getResultsDisplay().getUiConfiguration().sort[this._documentType],function(e,n){Number(n.visual_order)===Number(t._visualOrder)&&(t._sortConfig=n)})},pSortOutput._getTemplateRenderingContext=function(t){var e=t.firstResultSet().getTemplateRenderingContext();return $.extend(e,{sort_values:this._sortConfig.values})};var pFacetOutput=Swiftype.QueryOutputs.FacetOutput.prototype;pFacetOutput.attach=function(){this._templateName=this._facetConfig.template_name,this._gotInitialResults=!1,this._initialMinValue=undefined,this._initialMaxValue=undefined,this._previousQueryText=undefined,this._facetHeaderSelector=".st-search-facet-header",this._sortBy=Swiftype.Utils.getDataOrClassValue(this._element,"st-sort-order")||"count",Swiftype.QueryOutputs.SimpleTemplateOutput.prototype.attach.call(this)},pFacetOutput.validate=function(){return!!Swiftype.QueryOutputs.SimpleTemplateOutput.prototype.validate.call(this)&&(this._documentType=Swiftype.Utils.getDataOrClassValue(this._element,"st-document-type"),this._documentField=Swiftype.Utils.getDataOrClassValue(this._element,"st-document-field"),this._visualOrder=Swiftype.Utils.getDataOrClassValue(this._element,"st-visual-order"),this._findFacetConfigurationByDocumentFieldAndVisualOrder(),!!this._facetConfig||(this.log(this,WARN,"Facet "+this._describeElement(this._element)+" is not configured correctly"),!1))},pFacetOutput._findFacetConfigurationByDocumentFieldAndVisualOrder=function(){var t=this;$.each(this.getResultsDisplay().getUiConfiguration().facets[this._documentType],function(e,n){n[0]===t._documentField&&Number(n[1].visual_order)===Number(t._visualOrder)&&(t._facetConfig=n[1])})};var FACETS_TO_HIDE_WHEN_NO_DATA=["filter_checkbox"];pFacetOutput._facetData=function(t){var e=t.facets(),n=e[this._documentField]||{},i=$.map(n,function(t,e){return[[e,t]]});if(i=this._sortFacets(i),!this._gotInitialResults){this._gotInitialResults=!0,this._previousQueryText=t.getQuery()._queryText;var r=$.map(Object.keys(n),function(t){var e=Number(t);return isFinite(e)?e:0});this._initialMinValue=Math.floor(Math.min.apply(null,r)),this._initialMaxValue=Math.ceil(Math.max.apply(null,r))}var o={facets:i,label:this._facetConfig.label,predefined_ranges:this._facetConfig.predefined_ranges,from_label:this._facetConfig.from_label,to_label:this._facetConfig.to_label,submit_label:this._facetConfig.submit_label,hide_count:this._facetConfig.hide_count};return isFinite(this._initialMinValue)&&isFinite(this._initialMaxValue)&&(o.min_value=this._initialMinValue,o.max_value=this._initialMaxValue,o.show=!0),0===i.length&&FACETS_TO_HIDE_WHEN_NO_DATA.indexOf(this._facetConfig.template_name)>-1&&(o.hide_header=!0),o},pFacetOutput._sortFacets=function(t){var e;switch(this._sortBy){case"count":e=function(t,e){return e[1]-t[1]};break;case"alphabetical":e=function(t,e){return t[0]=0)return this.scrollIntoView(!0),!1})}},pSectionScroller._normalizeText=function(t){var e=t.replace(/\s+/g,"");return e=e.toLowerCase()},Swiftype=Swiftype||{},Swiftype.WidgetManager=function(){this._widgetsByInstallKey={},this._installsByInstallKey={},this._defaultInstall=null,this._installCount=0};var pWidgetManager=Swiftype.WidgetManager.prototype;pWidgetManager.install=function(t,e,n){n=n||{};var i;this._installsByInstallKey[t]||(this._defaultInstall?i=new Swiftype.Install(t,n,this._installCount):(i=new Swiftype.Install(t,n,this._installCount),this._defaultInstall=i),this._installsByInstallKey[t]=i,this._installCount++)},pWidgetManager.search=function(t,e){var n=this._installsByInstallKey[t];if(!n)throw"Install with key '"+t+"' not found!";n.addReadyListener(function(){n.getSearchContext().getQueryComposer().runSearch(e)})},pWidgetManager.onSearchComplete=function(t,e){var n;if(null===e||void 0===e?(e=t,n=this._defaultInstall):n=this._installsByInstallKey[t],!n)throw"No install found!";n.addSearchCompleteListener(e)},pWidgetManager.onInstallReady=function(t,e){null!==e&&void 0!==e||(e=t,t=null);var n;if(!(n=t?this._installsByInstallKey[t]:this._defaultInstall))throw t?"Install with key '"+t+"' not found!":"No default install found!";n.addReadyListener(e)},pWidgetManager.conversion=function(t){$.ajax({url:"//api.swiftype.com/api/v1/public/conversions/log_conversion_event",xhrFields:{withCredentials:!0},data:{key:t}})},$(function(){(new Swiftype.SectionScroller).scroll()})}(window,jQuery,window.__st_mt,window.__st_ro),function(t,e){"use strict";var n=new t._InternalSwiftype.WidgetManager,i=function(t){window.console&&console.log(t)},r=function(){var t=Array.prototype.slice.call(arguments);n[t.shift()].apply(n,t)},o=function(){t[t.SwiftypeObject]=r,t[t.SwiftypeObject]._stLoaded=!0,t[t.SwiftypeObject]._widgetManager=n};if(t.SwiftypeObject){var s=t[t.SwiftypeObject];if(e.isFunction(s)&&s._stLoaded)i(new t._InternalSwiftypeError(s,"warn","Swiftype widget code has already been included, please only include one on every page."));else if(e.isFunction(s)&&e.isArray(s.q)){o();for(var a=s.q,l=0;l>>16)*b&65535)<<16)};function t(a,b){this.b=b||Array(Math.ceil(a/32));if(!b)for(var c=0;cthis.b.length)throw Error("Index is out of bounds.");var b=Math.floor(a/32);this.b[b]|=1<this.b.length)throw Error("Index is out of bounds.");var b=Math.floor(a/32);return!!(this.b[b]&1<>>17,d=r(d,461845907),d^=ga[c]||0,d=d<<13|d>>>19,d=r(d,5)+3864292196,d^=4,d^=d>>>16,d=r(d,2246822507),d^=d>>>13,d=r(d,3266489909),d^=d>>>16,d=(d>>>0)%this.b;else{d=ga[c]||0;var e,f,g=a.length%4,k=a.length-g;for(f=0;f>>17,e=r(e,461845907),d^=e,d=d<<13|d>>>19,d=r(d,5)+3864292196;e=0;switch(g){case 3:e^=(a.charCodeAt(f+2)&4294967295)<<16;case 2:e^=(a.charCodeAt(f+1)&4294967295)<<8;case 1:e^=(a.charCodeAt(f+0)&4294967295)<<0,e=r(e,3432918353),e=e<<15|e>>>17,e=r(e,461845907),d^=e}d^=a.length;d=r(d^d>>>16,2246822507);d=r(d^d>>>13,3266489909);d=((d^d>>>16)>>>0)%this.b}if(!this.g.has(d))return!1}return!0};function ha(a){a.length%4&&(a+=Array(5-a.length%4).join("="));a=a.replace(/\-/g,"+").replace(/\_/g,"/");if(window.atob)a=window.atob(a);else{a=a.replace(/=+$/,"");if(1==a.length%4)throw Error("'atob' failed: The string to be decoded is not correctly encoded.");for(var b=0,c,d,e=0,f="";d=a.charAt(e++);~d&&(c=b%4?64*c+d:d,b++%4)?f+=String.fromCharCode(255&c>>(-2*b&6)):0)d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(d);a=f}c=[];for(b=0;ba.documentMode:1))b="i";else{a:{if(/AppleWebKit/.test(b)&&/Android/.test(b)&&!/OPR|Chrome|CrMo|CriOS/.test(b)&&(a=/Android ([^;)]+)/.exec(b))&&a[1]){a=parseFloat(a[1]);a=3.1<=a&&4.1>a;break a}a=!1}if(!a)a:{if(/Silk/.test(b)&&/Linux|Ubuntu|Android/.test(b)&&(b=/Silk\/([\d\._]+)/.exec(b))&&b[1]){a=2<=parseFloat(b[1]);break a}a=!1}b=a?"j":"k"}return b};function H(a){this.b=a}function I(a,b){return a.b.replace(/\{([^\{\}]+)\}/g,function(a,d){if("?"==d.charAt(0)){for(var e=d.slice(1).split(","),f=[],g=0;gparseInt(a[1],10)||536===parseInt(a[1],10)&&11>=parseInt(a[2],10))}return Q}ua.prototype.start=function(){this.g.serif=this.m.b.offsetWidth;this.g["sans-serif"]=this.o.b.offsetWidth;this.F=m();wa(this)};function xa(a,b,c){for(var d in P)if(P.hasOwnProperty(d)&&b===a.g[P[d]]&&c===a.g[P[d]])return!0;return!1} +function wa(a){var b=a.i.b.offsetWidth,c=a.j.b.offsetWidth,d;(d=b===a.g.serif&&c===a.g["sans-serif"])||(d=va()&&xa(a,b,c));d?m()-a.F>=a.I?va()&&xa(a,b,c)&&(!a.A||a.A.hasOwnProperty(a.b.b))?R(a,a.D):R(a,a.H):ya(a):R(a,a.D)}function ya(a){setTimeout(h(function(){wa(this)},a),50)}function R(a,b){setTimeout(h(function(){y(this.i.b);y(this.j.b);y(this.m.b);y(this.o.b);b(this.b)},a),0)};function za(a,b,c,d,e,f,g){this.i=a;this.u=b;this.b=d;this.m=c;this.g=e||3E3;this.o=f||void 0;this.j=g}za.prototype.start=function(){var a=this.m.g.document,b=this,c=m(),d=new Promise(function(d,e){function k(){m()-c>=b.g?e():a.fonts.load(b.b.style+" "+b.b.weight+" 300px "+(b.j?F(b.b):b.b.b),b.o).then(function(a){1<=a.length?d():setTimeout(k,25)},function(){e()})}k()}),e=new Promise(function(a,c){setTimeout(c,b.g)});Promise.race([e,d]).then(function(){b.i(b.b)},function(){b.u(b.b)})};function S(a,b,c,d){this.w=a;this.b=b;this.g=0;this.o=this.m=!1;this.A=c;this.u=d}var T=null; +function Aa(a,b,c){var d={},e=b.b.length;if(!e&&c)C(a.b);else{a.g+=e;c&&(a.m=c);var f=[];K(b,function(b){var c=a.b;c.i&&z(c.g,[c.b.b("wf",b.b,E(b),"loading")]);D(c,"fontloading",b);c=null;if(null===T)if(window.FontFace){var e=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent),p=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent);T=e?42 + + + + + + diff --git a/nav.php b/nav.php new file mode 100644 index 0000000..3d92c1c --- /dev/null +++ b/nav.php @@ -0,0 +1,5 @@ + + diff --git a/page.php b/page.php new file mode 100755 index 0000000..1290236 --- /dev/null +++ b/page.php @@ -0,0 +1,90 @@ + + + +
+ +
+
+
+ + + + + +
+ +
+ +
+

+ +
+ + + + + + + + +

+ +
+ +
+
+ + + +
+ + + + + +
+
+ + + + + + + \ No newline at end of file diff --git a/sidebar.php b/sidebar.php new file mode 100644 index 0000000..aa0d174 --- /dev/null +++ b/sidebar.php @@ -0,0 +1,57 @@ + +
+ + + + +
  • +
    +

    +
    +
    +
    +
    + + + +
      + 'header-menu', + 'container' => false, + 'menu_class' => 'clearfix my-menu-item', + 'items_wrap' => '%3$s', + + ) + ); + ?> +
    +
  • + diff --git a/single.php b/single.php new file mode 100755 index 0000000..fbbfda5 --- /dev/null +++ b/single.php @@ -0,0 +1,132 @@ + + + +
    + +
    +
    +
    + + + + + +
    + + + + + + +
    + + + + + + +
    +
    + + + + + + + + + \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..aa6fa81 --- /dev/null +++ b/style.css @@ -0,0 +1,1575 @@ +/* +Theme Name: Antikythera +Author: Chris Punches +Description: Derp +Version: 0.0.1 +Tags: Bagira +*/ + +@charset "utf-8"; +/*! normalize.css v3.0.2 | MIT License | git.io/normalize */ +html{ + font-family:sans-serif; + -ms-text-size-adjust:100%; + -webkit-text-size-adjust:100% +} +body{ + margin:0; + color: #1a1a1a; +} +article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{ + display:block +} + +header{ + text-align:center; + position: center; +} + +.header_title_logo { + color: #FFFFFF; + text-shadow: 2px 2px 5px blue; +} + +.header_subtitle_logo { + color: white; + text-shadow: 2px 2px 5px red; +} + +.logoGlow { + -webkit-filter: drop-shadow(12px 12px 7px rgba(0,0,0,0.5)); +} +.logoGlow:hover { + -webkit-filter: drop-shadow(12px 12px 7px rgba(255,255,255,0.5)); +} + +audio,canvas,progress,video{ + display:inline-block; + vertical-align:baseline +} +audio:not([controls]){ + display:none; + height:0 +} +[hidden],template{ + display:none +} +a{ + background-color:transparent +} +a:active,a:hover{ + outline:0 +} +abbr[title]{ + border-bottom:1px dotted +} +b,strong{ + font-weight:700 +} +dfn{ + font-style:italic +} +h1{ + font-size:2em; + margin:.67em 0 +} +mark{ + background:#ff0; + color:#000 +} +small{ + font-size:80% +} +sub,sup{ + font-size:75%; + line-height:0; + position:relative; + vertical-align:baseline +} +sup{ + top:-.5em +} +sub{ + bottom:-.25em +} +img{ + border:0 +} +svg:not(:root){ + overflow:hidden +} +figure{ + margin:1em 40px +} +hr{ + box-sizing:content-box; + height:0 +} +pre{ + overflow:auto +} +code,kbd,pre,samp{ + font-family:monospace,monospace; + font-size:1em +} +button,input,optgroup,select,textarea{ + color:inherit; + font:inherit; + margin:0 +} +button{ + overflow:visible +} +button,select{ + text-transform:none +} +button,html input[type=button],input[type=reset],input[type=submit]{ + -webkit-appearance:button; + cursor:pointer +} +button[disabled],html input[disabled]{ + cursor:default +} +button::-moz-focus-inner,input::-moz-focus-inner{ + border:0; + padding:0 +} +input{ + line-height:normal +} +input[type=checkbox],input[type=radio]{ + box-sizing:border-box; + padding:0 +} +input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{ + height:auto +} +input[type=search]{ + -webkit-appearance:textfield; + box-sizing:content-box +} +input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{ + -webkit-appearance:none +} +fieldset{ + border:1px solid silver; + margin:0 2px; + padding:.35em .625em .75em +} +legend{ + border:0; + padding:0 +} +textarea{ + overflow:auto +} +optgroup{ + font-weight:700 +} +table{ + border-collapse:collapse; + border-spacing:0 +} +td,th{ + padding:0 +} +*{ + -ms-box-sizing:border-box; + box-sizing:border-box; + outline:0; + margin:0; + padding:0 +} +html{ + height:100%; + max-height:100%; + font-size:62.5%; + -webkit-tap-highlight-color:transparent +} +body{ + height:100%; + max-height:100%; + font-family:futura-pt,Helvetica,Arial,"Hiragino Sans GB","Hiragino Sans GB W3",Microsoft JhengHei,WenQuanYi Micro Hei,"Microsoft YaHei",sans-serif; + font-size:1.8rem; + line-height:1.5em; + color:#414141; + -webkit-font-feature-settings:'kern' 1; + -moz-font-feature-settings:'kern' 1; + -o-font-feature-settings:'kern' 1; + text-rendering:geometricPrecision; +// background-image: url('images/background.jpg'); +// -moz-background-size: 100% 100%; +// -o-background-size: 100% 100%; +// -webkit-background-size: 100% 100%; +// background-size: 100% 100%; +} +::-moz-selection{ + background:#d6edff +} +::selection{ + background:#d6edff +} +h1,h2,h3,h4,h5,h6{ + -webkit-font-feature-settings:'dlig' 1,'liga' 1,'lnum' 1,'kern' 1; + -moz-font-feature-settings:'dlig' 1,'liga' 1,'lnum' 1,'kern' 1; + -o-font-feature-settings:'dlig' 1,'liga' 1,'lnum' 1,'kern' 1; + text-rendering:geometricPrecision; + margin:0 0 .4em 0 +} +h1{ + font-size:1.8em +} +h2{ + font-size:1.6em +} +h3{ + font-size:1.4em +} +h4{ + font-size:1.2em +} +h5{ + font-size:1em +} +h6{ + font-size:1em +} +a{ + color:#414141; + text-decoration:none; + transition:all .24s ease; + text-shadow: 1px 1px 1px #FFFFFF; +} +a:hover{ + text-decoration:none +} +pre{ + tab-size:2; + -moz-tab-size:2; + -o-tab-size:2; + -webkit-tab-size:2 +} +::-webkit-input-placeholder{ + color:#b5b5b5; + font-weight:300 +} +:-moz-placeholder{ + color:#b5b5b5; + font-weight:300 +} +::-moz-placeholder{ + color:#b5b5b5; + font-weight:300 +} +:-ms-input-placeholder{ + color:#b5b5b5; + font-weight:300 +} +.clearfix{ + zoom:1; + list-style: none; +} +.clearfix:after,.clearfix:before{ + content:" "; + display:table +} +.clearfix:after{ + clear:both +} + +.my-menu-item { + text-align: left; + width: 100%; +} + +.hidden{ + text-indent:-9999px; + visibility:hidden; + display:none +} +.vertical{ + display:table-cell; + vertical-align:middle +} +.right{ + float:right +} +.left{ + float:left +} +body.bio-open .site-sidebar{ + -webkit-transform:translate3d(0,0,0); + transform:translate3d(0,0,0) +} +body.bio-open .site-wrapper{ + -webkit-transform:translate3d(-280px,0,0); + transform:translate3d(-280px,0,0) +} +body.bio-open .site-wrapper .overlay{ + opacity:1; + visibility:visible +} +.site-wrapper{ + position:relative; + min-height:100%; + overflow:hidden; + transition:all .24s ease; + z-index:10 +} +.site-wrapper .overlay{ + position:absolute; + top:0; + left:0; + width:100%; + height:100%; + content:""; + opacity:0; + background-color:rgba(0,0,0,.5); + transition:all .24s ease; + visibility:hidden; + z-index:9999 +} +.dark-btn{ + display:inline-block; + background:rgba(0,0,0,.3); + border:1px solid #000; + padding:0 15px; + font-size:13px; + font-family:futura-pt,Helvetica,Arial,"Hiragino Sans GB","Hiragino Sans GB W3",Microsoft JhengHei,WenQuanYi Micro Hei,"Microsoft YaHei",sans-serif; + text-align:center; + color:#c2c2c2; + width: 100%; +} + +.dark-btn:hover{ + color:#f5f5f5; + background-color:#009688 +} +.dark-btn .icon{ + margin-right:5px; + font-size:16px; + vertical-align:middle; + line-height:44px +} +.dark-btn .text{ + vertical-align:middle; + line-height:44px +} +#loading-bar-wrapper{ + position:fixed; + width:100%; + top:0; + left:0; + overflow:visible; + z-index:999 +} +#loading-bar{ + position:relative; + width:0; + height:2px; + background-color:rgba(255,156,10,.8); + transition:all .5s ease +} +.tomorrow-comment,pre .comment,pre .title{ + color:#8e908c +} +.tomorrow-red,pre .attribute,pre .css .class,pre .css .id,pre .css .pseudo,pre .html .doctype,pre .regexp,pre .ruby .constant,pre .tag,pre .variable,pre .xml .doctype,pre .xml .pi,pre .xml .tag .title{ + color:#c82829 +} +.tomorrow-orange,pre .built_in,pre .constant,pre .literal,pre .number,pre .params,pre .preprocessor{ + color:#f5871f +} +.tomorrow-yellow,pre .class,pre .css .rules .attribute,pre .ruby .class .title{ + color:#eab700 +} +.tomorrow-green,pre .header,pre .inheritance,pre .ruby .symbol,pre .string,pre .value,pre .xml .cdata{ + color:#718c00 +} +.tomorrow-aqua,pre .css .hexcolor{ + color:#3e999f +} +.tomorrow-blue,pre .coffeescript .title,pre .function,pre .javascript .title,pre .perl .sub,pre .python .decorator,pre .python .title,pre .ruby .function .title,pre .ruby .title .keyword{ + color:#4271ae +} +.tomorrow-purple,pre .javascript .function,pre .keyword{ + color:#8959a8 +} +pre code{ + display:block; + background:#fff; + color:#4d4d4c; + line-height:1.5; + border:1px solid #ccc; + padding:10px +} +.site-header{ + position:relative; + width:100%; + overflow:hidden; + -webkit-user-select:none; + -moz-user-select:none; + -ms-user-select:none; + user-select:none; + padding:20px +} +.site-header .square{ + position:center; + display:block; + font-weight:400; + cursor:pointer; + overflow:hidden +} +.site-header .square.logo{ + float:left +} +.site-header .square.me{ + position:fixed; + top:20px; + right:20px; + visibility:visible; + opacity:1; + transition:all .24s; + z-index:65535 +} +.site-header .square.me.active{ + opacity:0; + visibility:hidden +} +.site-header .square span{ + display:block; + float:left; + width:30px; + height:30px; + line-height:30px; + vertical-align:middle; + text-align:center; + transition:all .24s; + + +} + +.container +{ + display: flex; + align-items: center; + justify-content: center; +} +.item +{ + border-radius: 3px; +} + +.site-header .square span.b{ + background:#414141; + color:#fff +} +.site-header .square span.b:hover{ + background:#000 +} +.site-header .square span.w{ + background:0 0; + color:#414141 +} +.site-header .square span.w:hover{ + background:#fff +} +#main{ + position:relative; + width:100%; + padding:20px 0; +} +#main .page-header{ + text-align:center; + margin-bottom:20px; + color:#8e8e8e; + font-size:15px +} +.post-list{ + position:relative; + list-style:none; + margin:0 auto; + width:1280px; + opacity:0; + transition:opacity .4s +} +@media (max-width:1300px){ + .post-list{ + width:960px + } +} +@media (max-width:960px){ + .post-list{ + width:640px + } +} +@media (max-width:640px){ + .post-list{ + width:100%; + padding:0 20px + } +} +.post-list.show{ + opacity:1; + word-wrap:break-word; + +} +.post-list>li{ + position:relative; + float:left; + width:300px; + height:300px; + margin:0 10px 20px 10px; + word-wrap:break-word; + +} +@media (max-width:640px){ + .post-list>li{ + width:100%; + margin:0 0 20px 0 + } +} +.post-list>li .post-link{ + position:relative; + display:block; + width:100%; + height:100%; + border:3px solid #414141; + padding:20px; + color: #8e8e8e; +} + +// hover over article border color +.post-list>li .post-link:hover{ + border-color: #d371ff; + text-shadow: 2px 2px 5px blue; + + } + +.post-list>li .post-link:hover .post-title{ + color: #FFFFFF; + text-shadow: 2px 2px 5px blue; + word-wrap:break-word; + +} + +.post-list>li .post-link:hover .post-meta{ + background: #d371ff; +} + +.post-list>li .post-title{ + position:absolute; + bottom:15px; + left:15px; + padding-right:50px; + text-align:left; + font-size:20px; + font-weight:500; + transition:all .24s; + text-shadow: 2px 2px 5px blue; + word-wrap:break-word; + white-space: -moz-pre-wrap; /* Mozilla */ + white-space: -hp-pre-wrap; /* HP printers */ + white-space: -o-pre-wrap; /* Opera 7 */ + white-space: -pre-wrap; /* Opera 4-6 */ + white-space: pre-wrap; /* CSS 2.1 */ + white-space: pre-line; /* CSS 3 (and 2.1 as well, actually) */ + word-wrap: break-word; /* IE */ +// word-break: break-all; + overflow: auto; +} +.post-list>li .post-meta{ + position:absolute; + top:0; + right:0; + background:#414141; + padding:2px 14px 2px 10px; + font-family:futura-pt,Helvetica,Arial,"Hiragino Sans GB","Hiragino Sans GB W3",Microsoft JhengHei,WenQuanYi Micro Hei,"Microsoft YaHei",sans-serif; + font-size:14px; + font-weight:700; + color:#fff; + transition:all .24s; + +} + +.post-item { + -moz-background-size: 100% 100%; + -o-background-size: 100% 100%; + -webkit-background-size: 100% 100%; + background-size: 100% 100%; + background-color: rgba(26,26,25,0.7); + word-wrap:break-word; + +} + +.post-item:hover { + background-color: rgba(255,255,255,0.4); + box-shadow: 0px 5px 10px red; + word-wrap:break-word; + +} +.treat-block{ + margin:30px auto; + width:100% +} +.treat-block.treat-block-footer{ + max-width:728px +} +.treat-block.treat-block-footer img{ + width:100% +} +.article{ + position:relative; + width:100%; + max-width:1040px; + margin:0 auto; + margin-bottom:20px; + box-shadow: 0px 5px 10px red; +} +@media (max-width:768px){ + .article{ + padding:20px + } +} +.article .article-header{ + padding:20px 0 40px 0 +} +@media (max-width:768px){ + .article .article-header{ + padding:0 0 40px 0 + } +} +.article .article-header h1{ + font-size:2em; + line-height:1.2; + margin-bottom:0 +} +@media (max-width:768px){ + .article .article-header h1{ + font-size:1.5em + } +} +.article .article-meta{ + font-size:14px; + color:#9b9b9b; + padding-left:1px +} +.article-entry,.post-excerpt{ + position:relative; + font-family:futura-pt,Helvetica,Arial,"Hiragino Sans GB","Hiragino Sans GB W3",Microsoft JhengHei,WenQuanYi Micro Hei,"Microsoft YaHei",sans-serif; + font-size:16px; + color:#393a3a; + padding-bottom:30px +} +.article-entry a,.post-excerpt a{ + color: #4139f5; +} +.article-entry a:hover,.post-excerpt a:hover{ + color:#f08f00; + background:rgba(255,152,0,.1) +} +.article-entry a:active,.post-excerpt a:active{ + background:rgba(255,152,0,.2); + color:#fff +} +.article-entry h1,.article-entry h2,.article-entry h3,.article-entry h4,.article-entry h5,.article-entry h6,.post-excerpt h1,.post-excerpt h2,.post-excerpt h3,.post-excerpt h4,.post-excerpt h5,.post-excerpt h6{ + position:relative; + font-family:futura-pt,Helvetica,Arial,"Hiragino Sans GB","Hiragino Sans GB W3",Microsoft JhengHei,WenQuanYi Micro Hei,"Microsoft YaHei",sans-serif; + font-weight:700; + margin:40px auto 30px auto +} +@media (max-width:768px){ + .article-entry h1,.article-entry h2,.article-entry h3,.article-entry h4,.article-entry h5,.article-entry h6,.post-excerpt h1,.post-excerpt h2,.post-excerpt h3,.post-excerpt h4,.post-excerpt h5,.post-excerpt h6{ + left:15px + } +} +.article-entry h1::before,.article-entry h2::before,.article-entry h3::before,.article-entry h4::before,.article-entry h5::before,.article-entry h6::before,.post-excerpt h1::before,.post-excerpt h2::before,.post-excerpt h3::before,.post-excerpt h4::before,.post-excerpt h5::before,.post-excerpt h6::before{ + position:absolute; + left:-20px; + top:0; + color:#4caf50; + font-weight:400 +} +.article-entry p,.post-excerpt p{ + margin-bottom:20px; + line-height:1.75em +} +.article-entry figure,.post-excerpt figure{ + width:100%; + font-size:13px; + margin:20px 0; + padding:10px 15px; + background:#f9f9f9; + overflow:auto +} +.article-entry figure td.gutter,.post-excerpt figure td.gutter{ + padding-right:10px; + color:#969696; + font-size:12px; + border-right:1px solid #ececec +} +.article-entry figure td.code,.post-excerpt figure td.code{ + padding-left:10px +} +.article-entry ol,.article-entry ul,.post-excerpt ol,.post-excerpt ul{ + margin:20px 0 20px 0; +// padding-left:30px; + list-style: none; + width: 100%; +} +.article-entry img,.post-excerpt img{ + display:block; + border:none; + max-width:100%; + height:auto +} +.article-entry blockquote,.post-excerpt blockquote{ + position:relative; + width:100%; + margin:20px 0; + padding:0 20px; + border-left:4px solid #4caf50 +} +.article-entry pre,.post-excerpt pre{ + white-space:pre +} +.article-entry pre code,.post-excerpt pre code{ + color:#414141; + padding:0 0 0 30px; + margin:0; + font-size:1em; + background:0 0; + border:0; + white-space:inherit +} +.article-entry pre figure,.post-excerpt pre figure{ + margin:0 +} +.article-entry code,.post-excerpt code{ + color:#008c7f; + padding:3px 5px; + margin:0 2px; + border-radius:2px; + white-space:nowrap; + font-size:.8em; + background:#f9f9f9 +} +@media (max-width:768px){ + .article-entry,.post-excerpt{ + font-size:16px + } + .article-entry h1,.article-entry h2,.article-entry h3,.post-excerpt h1,.post-excerpt h2,.post-excerpt h3{ + margin:30px 0 + } + .article-entry h4,.article-entry h5,.article-entry h6,.post-excerpt h4,.post-excerpt h5,.post-excerpt h6{ + margin:20px 0 + } + .article-entry h1,.post-excerpt h1{ + font-size:1.5em + } + .article-entry h2,.post-excerpt h2{ + font-size:1.4em + } + .article-entry h3,.post-excerpt h3{ + font-size:1.3em + } + .article-entry h4,.post-excerpt h4{ + font-size:1.2em + } + .article-entry h5,.post-excerpt h5{ + font-size:1.1em + } + .article-entry h6,.post-excerpt h6{ + font-size:1em + } + .article-entry figure,.post-excerpt figure{ + font-size:13px; + line-height:1.6em + } +} +.article-tags{ + margin-bottom:30px +} +.article-tags .tag-link{ + position:relative; + padding:4px 10px 4px 20px; + margin-right:5px; + font-size:14px; + background:#f9f9f9; + border-radius:2px +} +.article-tags .tag-link:hover{ + background:#414141; + color:#fff +} +.article-tags .tag-link::before{ + position:absolute; + top:0; + left:7px; + content:"#" +} +#comments{ + position:relative; + padding:30px 0 +} +.site-sidebar{ + position:fixed; + top:0; + right:0; + width:280px; + height:100%; + padding:20px; + background-image:url('images/sidebar-bg.png'); + background-repeat:repeat; + background-size:102px 102px; + text-align:center; + overflow:hidden; + -webkit-transform:translate3d(280px,0,0); + transform:translate3d(280px,0,0); + transition:all .24s ease; + z-index:1 +} +.site-sidebar .sidebar-switch{ + width:200px; + margin:0 auto 20px auto; + opacity:0; + visibility:hidden; + transition:all .24s ease +} +.site-sidebar .sidebar-switch.show{ + opacity:1; + visibility:visible +} +.site-sidebar .sidebar-switch .dark-btn{ + display:block; + float:left; + width:100px; + margin-left:-1px; + cursor:pointer +} +.site-sidebar .sidebar-switch .dark-btn.active{ + color:#f5f5f5; + background-color:#009688 +} +.site-sidebar .sidebar-switch .dark-btn .icon{ + line-height:30px +} +.site-sidebar .sidebar-switch .dark-btn .text{ + line-height:30px +} +.site-bio{ + position:relative; + opacity:0; + -webkit-transform:translate3d(0,-20px,0); + transform:translate3d(0,-20px,0); + transition:all .24s ease +} +.site-bio.show{ + opacity:1; + -webkit-transform:translate3d(0,0,0); + transform:translate3d(0,0,0) +} +.site-bio .window-nav{ + width:125px; + padding:0 0 0 15px; + text-align:left +} +.site-bio .shortcuts{ + padding:0 5px +} +.site-bio .shortcuts .bk{ + margin-bottom:5px +} +.site-bio .about-me{ + padding:12px 5px 15px 5px; + background:rgba(0,0,0,.1); + border:1px solid #000000; + transition:background .24s,border-color .24s +} +.site-bio .about-me:hover{ + background:rgba(0,0,0,.2); + border-color:#1a1a1a +} +.site-bio .about-me .avatar{ + display:block; + width:96px; + height:96px; + margin:4px auto; + background:rgba(0,0,0,.3); + border-radius:50%; + border:1px solid #000; + padding:3px; + overflow:hidden +} +.site-bio .about-me .avatar img{ + display:block; + width:100%; + height:100%; + border-radius:50% +} +.site-bio .about-me .dark-btn{ + padding:5px 15px +} +.site-bio .about-me .dark-btn:hover{ + background-color:#009688 +} +.site-bio .about-me .dark-btn .icon{ + margin-right:0 +} +.site-bio .about-me .info{ + color:#a9a9a9; + margin-top:10px; + line-height:140%; + padding:0 15px; + font-size:13px +} +.site-bio .social{ + position:relative; + margin:15px 0; + padding:0 +} +.site-bio .social a{ + display:inline-block; + color:#fff; + font-size:14px; + text-transform:uppercase; + text-align:center; + line-height:46px; + vertical-align:middle; + width:46px; + height:46px; + background-color:rgba(0,0,0,.3); + border:1px solid #000; + margin:5px 2px +} +.site-bio .social a.feed:hover{ + background-color:#ff9800 +} +.site-bio .social a.github:hover{ + background-color:#467cc2 +} +.site-bio .social a.twitter:hover{ + background-color:#55acee +} +.site-bio .social a.facebook:hover{ + background-color:#3765a3 +} +.site-bio .social a.google:hover{ + background-color:#db4437 +} +.site-bio .social a.dribbble:hover{ + background-color:#ed699c +} +.site-bio .social a.pinterest:hover{ + background-color:#bc1725 +} +.site-bio .social a.weibo:hover{ + background-color:#f8712a +} +.site-bio .social a.tumblr:hover{ + background-color:#35465c +} +.site-bio .social a.instagram:hover{ + background-color:#3f729b +} +.site-bio .social a.linkedin:hover{ + background-color:#0077b5 +} +.site-bio .social a.behance:hover{ + background-color:#1769ff +} +.site-bio .social a:hover{ + background:#009688 +} +.site-bio .social a:hover .icon{ + color:rgba(245,245,245,.7) +} +.site-bio .social a .avatar,.site-bio .social a .icon{ + transition:all .24s +} +.site-bio .social a .avatar{ + display:block; + width:30px; + height:30px; + margin:7px; + border-radius:50% +} +.site-bio .social a .icon{ + font-size:18px; + color:#a9a9a9; + line-height:46px +} +.site-toc{ + position:relative; + padding:12px 10px 15px 10px; + background:rgba(0,0,0,.1); + border:1px solid #262626; + max-height:450px; + overflow:auto; + opacity:0; + -webkit-transform:translate3d(0,-20px,0); + transform:translate3d(0,-20px,0); + transition:all .24s ease +} +.site-toc.show{ + -webkit-transform:translate3d(0,0,0); + transform:translate3d(0,0,0); + opacity:1 +} +.site-toc>ol{ + text-align:left; + list-style:none +} +.site-toc>ol li a{ + color:#e6e6e6; + font-size:15px +} +.site-toc>ol li a:hover{ + color:#009688 +} +.site-toc>ol li ol{ + list-style:none; + padding-left:15px +} +#u-search{ + display:none; + position:fixed; + top:0; + left:0; + width:100%; + height:100%; + padding:60px 20px; + z-index:999999 +} +@media (max-width:680px){ + #u-search{ + padding:0 + } +} +#u-search .modal{ + position:fixed; + height:80%; + width:100%; + max-width:640px; + left:50%; + top:0; + margin:64px 0 0 -320px; + background:#fff; + box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 13px 19px 2px rgba(0,0,0,.14),0 5px 24px 4px rgba(0,0,0,.12); + z-index:3 +} +@media (max-width:680px){ + #u-search .modal{ + box-shadow:none; + max-width:none; + top:0; + left:0; + margin:0; + height:100% + } +} +#u-search .modal .modal-ajax-content{ + opacity:0; + visibility:hidden; + transition:all .36s +} +#u-search .modal .modal-ajax-content.loaded{ + opacity:1; + visibility:visible +} +#u-search .modal .modal-header{ + position:relative; + width:100%; + height:50px; + background-color:#33475a; + z-index:3 +} +#u-search .modal .modal-header .btn-close{ + display:block; + position:absolute; + width:50px; + height:50px; + top:0; + right:0; + color:#fff; + cursor:pointer; + text-align:center; + line-height:50px; + vertical-align:middle; + font-size:18px; + transition:all .24s; + z-index:2 +} +#u-search .modal .modal-header .btn-close:hover{ + -webkit-transform:rotate(90deg); + transform:rotate(90deg) +} +#u-search .modal .modal-header .modal-loading{ + position:absolute; + bottom:-2px; + left:0; + width:100%; + height:2px; + background:0 0; + z-index:1 +} +#u-search .modal .modal-header .modal-loading .modal-loading-bar{ + display:block; + position:relative; + width:0; + height:100%; + background:#ffb74d; + transition:width .24s +} +#u-search .modal .modal-header #u-search-modal-form{ + position:relative; + width:100%; + height:100%; + z-index:2 +} +#u-search .modal .modal-header #u-search-modal-form #u-search-modal-input{ + width:100%; + padding:0 50px 0 40px; + font-size:15px; + line-height:50px; + vertical-align:middle; + color:#fff; + border:none; + background:0 0; + transition:background-color .24s; + font-weight:thin; + -webkit-appearance:none; + -moz-appearance:none; + appearance:none; + box-shadow:none +} +#u-search .modal .modal-header #u-search-modal-form #u-search-modal-input:focus{ + background-color:#3c546a +} +#u-search .modal .modal-header #u-search-modal-btn-submit{ + position:absolute; + top:0; + left:0; + padding-left:5px; + padding-top:2px; + background:0 0; + border:none; + width:40px; + height:50px; + vertical-align:middle; + font-size:20px; + color:#fff; + z-index:2 +} +#u-search .modal .modal-footer{ + position:absolute; + bottom:0; + left:0; + width:100%; + height:50px; + padding:0 15px; + background:#fff; + border-top:1px solid #dadada +} +#u-search .modal .modal-footer .logo{ + position:absolute; + top:0; + left:0; + width:100%; + height:100%; + text-align:center; + z-index:0 +} +#u-search .modal .modal-footer .logo a{ + display:inline-block +} +#u-search .modal .modal-footer .logo.google img{ + height:24px; + margin-top:13px +} +#u-search .modal .modal-footer .logo.baidu img{ + height:22px; + margin-top:14px +} +#u-search .modal .modal-footer .logo img{ + position:relative; + display:inline-block; + width:auto; + height:18px; + margin-top:16px +} +#u-search .modal .modal-footer .modal-error{ + position:relative; + float:left; + vertical-align:middle; + line-height:50px; + font-size:13px; + z-index:1 +} +#u-search .modal .modal-footer .modal-metadata{ + position:relative; + float:left; + vertical-align:middle; + line-height:50px; + font-size:13px; + z-index:1 +} +#u-search .modal .modal-footer .nav{ + position:relative; + display:block; + float:right; + vertical-align:middle; + font-size:13px; + font-weight:500; + line-height:50px; + color:#828282; + cursor:pointer; + z-index:1 +} +#u-search .modal .modal-footer .nav:hover{ + color:#414141 +} +#u-search .modal .modal-footer .nav.btn-next{ + margin-left:10px +} +#u-search .modal .modal-footer .nav .icon{ + font-size:12px +} +#u-search .modal .modal-body{ + position:absolute; + padding:64px 40px 80px 40px; + width:100%; + height:100%; + top:0; + left:0; + overflow-y:scroll; + -webkit-overflow-scrolling:touch +} +@media (max-width:680px){ + #u-search .modal .modal-body{ + padding:60px 20px 80px 20px + } +} +#u-search .modal .modal-body .modal-results{ + list-style:none +} +#u-search .modal .modal-body .modal-results li{ + border-bottom:1px solid #e6e8ea +} +#u-search .modal .modal-body .modal-results li:last-child{ + border-bottom:none +} +#u-search .modal .modal-body .modal-results .result{ + position:relative; + display:block; + padding:15px 30px 15px 0; + text-decoration:none +} +#u-search .modal .modal-body .modal-results .result:hover .digest,#u-search .modal .modal-body .modal-results .result:hover .icon{ + color:#414141 +} +#u-search .modal .modal-body .modal-results .result .title{ + display:inline-block; + max-width:100%; + color:#2196f3; + font-size:15px; + font-weight:700; + background:#f1f8fe; + padding:1px; + border-bottom:1px solid #e6e8ea; + margin-bottom:2px; + line-height:110%; + white-space:nowrap; + overflow:hidden; + text-overflow:ellipsis +} +#u-search .modal .modal-body .modal-results .result .digest{ + display:block; + font-size:13px; + line-height:140%; + color:#8e8e8e; + transition:color .24s +} +#u-search .modal .modal-body .modal-results .result .digest em{ + font-weight:700 +} +#u-search .modal .modal-body .modal-results .result .icon{ + position:absolute; + top:50%; + right:0; + margin-top:-4px; + font-size:11px; + color:#828282 +} +#u-search .modal-overlay{ + position:absolute; + top:0; + left:0; + width:100%; + height:100%; + background:rgba(0,0,0,.8); + z-index:1 +} +#footer{ + position:relative; + padding:20px 20px 40px 20px; + font-size:14px; + overflow:hidden; + text-align:center; + opacity:0; + -webkit-transform:translate3d(0,-20px,0); + transform:translate3d(0,-20px,0); + transition:all .4s; + z-index:3 +} +#footer.show{ + -webkit-transform:translate3d(0,0,0); + transform:translate3d(0,0,0); + opacity:1 +} +#footer a{ + color:#828282 +} +#footer a:hover{ + background:rgba(255,152,0,.2); + color:#ff9800 +} +.search{ + position:relative; + width:100%; + max-width:728px; + margin:0 auto 20px auto; + z-index:2 +} +.search #searchform{ + position:relative; + display:block; + width:100% +} +.search #searchform #u-search-btn-submit{ + display:block; + position:absolute; + top:0; + right:0; + width:36px; + height:36px; + background:0 0; + color:#fff; + border:0; + text-align:center; + font-size:18px +} +.search #searchform #u-search-btn-submit span{ + line-height:36px +} +.search #searchinput{ + width:100%; + padding:0 10px; + line-height:36px; + height:36px; + font-size:14px; + font-family:futura-pt,Helvetica,Arial,"Hiragino Sans GB","Hiragino Sans GB W3",Microsoft JhengHei,WenQuanYi Micro Hei,"Microsoft YaHei",sans-serif; + border:none; + border-radius:0!important; + background:#414141; + color:#fff; + box-sizing:border-box; + transition:all .24s ease +} +.search #searchinput:focus{ + background:#000 +} +#page-nav{ +// position:relative; + width:100%; +// max-width:728px; +// margin:20px auto 0 auto; + transition:all .4s; + -webkit-transform:translate3d(0,-20px,0); + transform:translate3d(0,-20px,0); + opacity:0; + text-align:center +} +#page-nav.show{ + opacity:1; + -webkit-transform:translate3d(0,0,0); + transform:translate3d(0,0,0) +} +#page-nav a,#page-nav span{ + display:inline-block; + padding:0 10px; + margin:5px 0; + height:30px; + min-width:30px; + line-height:30px; + font-size:14px; + text-transform:uppercase; + vertical-align:middle; + text-align:center; + transition:all .24s; + border-bottom:1px solid transparent +} +#page-nav span.current{ + background:#ececec; + border-bottom:1px solid #c6c6c6; + color:#414141 +} +#page-nav span.space{ + background:#fff; + color:#414141 +} +#page-nav a{ + background:#fff; + color:#414141 +} +#page-nav a:hover{ + background:#f1f1f1; + color:#000 +} + +.legal { + font-size: 24px; + color: #FFFFFF; + text-shadow: 2px 2px 5px red; +} + +.legal:hover { + color: #FFFFFF; + font-size: 24px; + text-shadow: 2px 2px 5px blue; +} + +ol.commentlist { list-style:none; margin:0; padding:0; text-indent:0; } +ol.commentlist li { border:1px solid #d5d5d5; border-radius:5px; -moz-border-radius:5px; -webkit-border-radius:5px; height:1%; margin:0 0 10px; padding:5px 7px 5px 57px; position:relative; } +ol.commentlist li.alt { } +ol.commentlist li.bypostauthor {} +ol.commentlist li.byuser {} +ol.commentlist li.comment-author-admin {} +ol.commentlist li.comment { } +ol.commentlist li div.comment-author { padding:0 170px 0 0; } +ol.commentlist li div.vcard { font:bold 14px/1.4 helvetica,arial,sans-serif; } +ol.commentlist li div.vcard cite.fn { font-style:normal; } +ol.commentlist li div.vcard cite.fn a.url { color:#c00; text-decoration:none; } +ol.commentlist li div.vcard cite.fn a.url:hover { color:#000; } +ol.commentlist li div.vcard img.avatar { border:5px solid #d5d5d5; left:7px; position:absolute; top:7px; } +ol.commentlist li div.vcard img.avatar-32 {} +ol.commentlist li div.vcard img.photo {} +ol.commentlist li div.vcard span.says {} +ol.commentlist li div.commentmetadata {} +ol.commentlist li div.comment-meta { font:bold 10px/1.4 helvetica,arial,sans-serif; position:absolute; right:10px; text-align:right; top:5px; } +ol.commentlist li div.comment-meta a { color:#333; text-decoration:none; } +ol.commentlist li div.comment-meta a:hover { color:#000; } +ol.commentlist li p { font:normal 12px/1.4 helvetica,arial,sans-serif; margin:0 0 1em; } +ol.commentlist li ul { font:normal 12px/1.4 helvetica,arial,sans-serif; list-style:square; margin:0 0 1em; padding:0; text-indent:0; } +ol.commentlist li div.reply { background:#999; border:1px solid #666; border-radius:2px; -moz-border-radius:2px; -webkit-border-radius:2px; color:#fff; font:bold 9px/1 helvetica,arial,sans-serif; padding:5px 10px; text-align:center; width: 100%; } +ol.commentlist li div.reply:hover { background:#c30; border:1px solid #c00; width: 100%; } +ol.commentlist li div.reply a { color:#fff; text-decoration:none; text-transform:uppercase; } +ol.commentlist li ul.children { list-style:none; margin:1em 0 0; text-indent:0; } +ol.commentlist li ul.children li { } +ol.commentlist li ul.children li.alt {} +ol.commentlist li ul.children li.bypostauthor {} +ol.commentlist li ul.children li.byuser {} +ol.commentlist li ul.children li.comment {} +ol.commentlist li ul.children li.comment-author-admin {} +ol.commentlist li ul.children li.depth-2 { margin:0 0 .25em; } +ol.commentlist li ul.children li.depth-3 { margin:0 0 .25em; } +ol.commentlist li ul.children li.depth-4 { margin:0 0 .25em; } +ol.commentlist li ul.children li.depth-5 {} +ol.commentlist li ul.children li.odd {} +ol.commentlist li.even { background:#fff; } +ol.commentlist li.odd { background:#f6f6f6; } +ol.commentlist li.parent { } +ol.commentlist li.pingback { } +ol.commentlist li.pingback.parent { } +ol.commentlist li.pingback div.vcard { padding:0 170px 0 0; } +ol.commentlist li.thread-alt { } +ol.commentlist li.thread-even {} +ol.commentlist li.thread-odd {} + + +#submit { + font-family: Arial; + color: #ffffff; + font-size: 20px; + padding: 10px; + text-decoration: none; + box-shadow: 0px 1px 3px #666666; + -webkit-box-shadow: 0px 1px 3px #666666; + -moz-box-shadow: 0px 1px 3px #666666; + text-shadow: 1px 1px 3px #666666; + background: -webkit-gradient(linear, 0 0, 0 100%, from(#006ad4), to(#003366)); + background: -moz-linear-gradient(top, #006ad4, #003366); + width: 100%; + background:#c30; border:1px solid #c00; width: 100%; +} + +#submit:hover { + width: 100%; + color: #000; + background:#fff; border:1px solid #c00; width: 100%; + +} + +#respond { + background: #ececec; + padding:0 5px 0 5px; +} + +/* Highlight active form field */ + +#respond input[type=text], textarea { + -webkit-transition: all 0.30s ease-in-out; + -moz-transition: all 0.30s ease-in-out; + -ms-transition: all 0.30s ease-in-out; + -o-transition: all 0.30s ease-in-out; + outline: none; + padding: 3px 0px 3px 3px; + margin: 5px 1px 3px 0px; + border: 1px solid #DDDDDD; + width: 100%; +} + + +#respond input[type=text]:focus, textarea:focus { + box-shadow: 0 0 5px rgba(81, 203, 238, 1); + margin: 5px 1px 3px 0px; + border: 1px solid rgba(81, 203, 238, 1); + width: 100%; +} + +.article-entry pre { +// white-space: pre-wrap; +// white-space: -moz-pre-wrap; +// white-space: -pre-wrap; +// white-space: -o-pre-wrap; +// word-wrap: break-word; + line-height: 140%; + padding: 20px; + background: #3d3d3d; + font-size: 1.0em; + color: #FFF; + display: block; + padding: 9.5px; + margin: 0 0 10px; + font-size: 13px; + line-height: 1.42857143; + color: #333; + word-break: break-all; + word-wrap: break-word; + background-color: #f5f5f5; + border: 1px solid #ccc; + border-radius: 4px; + width: 100%; +} + +.white-box { + width: 90%; + background: #fff; + padding: 20px; +} + +.previous { + float: left; +} +.next { + float: right; +} \ No newline at end of file