Commit 94baca79 authored by hbcui1984's avatar hbcui1984

更新至0.5.8版本

parent bd5c71f4
/*!
* =====================================================
* Mui v0.5.7 (https://github.com/dcloudio/mui)
* Mui v0.5.8 (https://github.com/dcloudio/mui)
* =====================================================
*/
......@@ -8,7 +8,6 @@
html {
font-family: sans-serif;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
body {
......@@ -114,7 +113,6 @@ figure {
hr {
height: 0;
-moz-box-sizing: content-box;
box-sizing: content-box;
}
......@@ -162,12 +160,6 @@ html input[disabled] {
cursor: default;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
padding: 0;
border: 0;
}
input {
line-height: normal;
}
......@@ -185,7 +177,6 @@ input[type="number"]::-webkit-outer-spin-button {
input[type="search"] {
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
-webkit-appearance: textfield;
}
......@@ -226,7 +217,6 @@ th {
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-user-select: none;
outline: none;
......@@ -263,26 +253,44 @@ a:active {
.mui-bar-nav ~ .mui-content {
padding-top: 44px;
}
.mui-bar-nav ~ .mui-content.mui-scroll-wrapper .mui-scrollbar-vertical {
top: 44px;
}
.mui-bar-header-secondary ~ .mui-content {
padding-top: 88px;
}
.mui-bar-header-secondary ~ .mui-content.mui-scroll-wrapper .mui-scrollbar-vertical {
top: 88px;
}
.mui-bar-footer ~ .mui-content {
padding-bottom: 44px;
}
.mui-bar-footer ~ .mui-content.mui-scroll-wrapper .mui-scrollbar-vertical {
bottom: 44px;
}
.mui-bar-footer-secondary ~ .mui-content {
padding-bottom: 88px;
}
.mui-bar-footer-secondary ~ .mui-content.mui-scroll-wrapper .mui-scrollbar-vertical {
bottom: 88px;
}
.mui-bar-tab ~ .mui-content {
padding-bottom: 50px;
}
.mui-bar-tab ~ .mui-content.mui-scroll-wrapper .mui-scrollbar-vertical {
bottom: 50px;
}
.mui-bar-footer-secondary-tab ~ .mui-content {
padding-bottom: 94px;
}
.mui-bar-footer-secondary-tab ~ .mui-content.mui-scroll-wrapper .mui-scrollbar-vertical {
bottom: 94px;
}
.mui-hidden {
display: none !important;
......@@ -523,7 +531,7 @@ p {
width: 8.33333333%;
}
}
.mui-iscroll-wrapper {
.mui-scroll-wrapper {
position: absolute;
top: 0;
bottom: 0;
......@@ -531,48 +539,62 @@ p {
z-index: 1;
width: 100%;
overflow: hidden;
}
.mui-bar-nav ~ .mui-iscroll-wrapper {
top: 44px;
padding: 0;
}
.mui-bar-header-secondary ~ .mui-iscroll-wrapper {
top: 88px;
}
.mui-bar-footer ~ .mui-iscroll-wrapper {
bottom: 44px;
padding: 0;
-webkit-backface-visibility: hidden;
}
.mui-bar-footer-secondary ~ .mui-iscroll-wrapper {
bottom: 88px;
}
.mui-scroll {
position: absolute;
z-index: 1;
width: 100%;
-webkit-transform: translateZ(0);
transform: translateZ(0);
.mui-bar-tab ~ .mui-iscroll-wrapper {
bottom: 50px;
padding: 0;
-webkit-backface-visibility: hidden;
}
.mui-bar-footer-secondary-tab ~ .mui-iscroll-wrapper {
bottom: 94px;
.mui-scrollbar {
position: absolute;
top: 0;
right: 1px;
bottom: 2px;
z-index: 9999;
width: 4px;
overflow: hidden;
opacity: 1;
-webkit-transition: 500ms;
transition: 500ms;
transform: translateZ(0px);
}
.mui-iscroll {
.mui-scrollbar-indicator {
position: absolute;
z-index: 1;
display: block;
width: 100%;
-webkit-text-size-adjust: none;
-webkit-user-select: none;
user-select: none;
-webkit-transform: translateZ(0);
transform: translateZ(0);
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
text-size-adjust: none;
height: 147px;
box-sizing: border-box;
background: rgba(0, 0, 0, .39804);
border: 1px solid rgba(255, 255, 255, .80196);
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
-webkit-transition: .01s cubic-bezier(.1, .57, .1, 1);
transition: .01s cubic-bezier(.1, .57, .1, 1);
transform: translate(0px, 0px) translateZ(0px);
}
.mui-plus-pullrefresh .mui-scroll-wrapper {
position: static;
top: auto;
bottom: auto;
left: auto;
width: auto;
overflow: auto;
}
.mui-plus-pullrefresh .mui-scroll {
position: static;
width: auto;
}
.mui-off-canvas-height-fixed {
......@@ -808,8 +830,8 @@ p {
-webkit-transform: rotate(0deg);
}
99% {
-webkit-transform: rotate(360deg);
100% {
-webkit-transform: rotate(359deg);
}
}
@keyframes spin {
......@@ -817,8 +839,8 @@ p {
transform: rotate(0deg);
}
99% {
transform: rotate(360deg);
100% {
transform: rotate(359deg);
}
}
input[type="button"],
......@@ -1151,6 +1173,17 @@ input[type="submit"]:active, input[type="submit"].mui-active,
background: none;
}
.mui-focusin .mui-bar {
position: absolute;
}
.mui-focusin .mui-bar-tab,
.mui-focusin .mui-bar-footer,
.mui-focusin .mui-bar-footer-secondary,
.mui-focusin .mui-bar-footer-secondary-tab {
display: none;
}
.mui-bar .mui-btn {
position: relative;
top: 7px;
......@@ -1497,12 +1530,32 @@ input[type="submit"]:active, input[type="submit"].mui-active,
.mui-table-view-cell.mui-collapse > .mui-navigate-right:after, .mui-table-view-cell.mui-collapse > .mui-push-right:after {
content: '\e581';
}
.mui-table-view-cell.mui-collapse.mui-active .mui-table-view {
.mui-table-view-cell.mui-collapse.mui-active .mui-table-view, .mui-table-view-cell.mui-collapse.mui-active .mui-collapse-content {
display: block;
}
.mui-table-view-cell.mui-collapse.mui-active > .mui-navigate-right:after, .mui-table-view-cell.mui-collapse.mui-active > .mui-push-right:after {
content: '\e580';
}
.mui-table-view-cell.mui-collapse .mui-collapse-content {
position: relative;
display: none;
padding: 8px 15px;
margin: 11px -15px -11px;
overflow: hidden;
background: white;
border: 1px solid #ddd;
-webkit-transition: height .35s ease;
-o-transition: height .35s ease;
transition: height .35s ease;
}
.mui-table-view-cell.mui-collapse .mui-collapse-content > .mui-input-group, .mui-table-view-cell.mui-collapse .mui-collapse-content > .mui-slider {
width: auto;
height: auto;
margin: -8px -15px;
}
.mui-table-view-cell.mui-collapse .mui-collapse-content > .mui-slider {
margin: -8px -16px;
}
.mui-table-view-cell.mui-collapse .mui-table-view {
display: none;
margin-top: 11px;
......@@ -1557,7 +1610,7 @@ input[type="submit"]:active, input[type="submit"].mui-active,
}
.mui-grid-view.mui-grid-9 {
padding: 0 0 1px 0;
padding: 1px 0 1px 0;
padding-right: 0;
background-color: #f2f2f2;
}
......@@ -1658,7 +1711,6 @@ input[type="color"] {
input[type="search"] {
height: 34px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
font-size: 16px;
text-align: center;
......@@ -1737,7 +1789,7 @@ select {
.mui-input-row label {
float: left;
width: 35%;
padding: 8px 15px;
padding: 10px 15px;
font-family: "Helvetica Neue", Helvetica, sans-serif;
line-height: 1.1;
}
......@@ -1750,6 +1802,16 @@ select {
border: 0;
}
.mui-button-row {
position: relative;
padding-top: 5px;
text-align: center;
}
.mui-input-group .mui-button-row {
height: 45px;
}
.mui-input-row {
position: relative;
}
......@@ -2151,7 +2213,6 @@ select {
width: 100%;
border-radius: 0;
-webkit-transition: -webkit-transform .25s, opacity 1ms .25s;
-moz-transition: -moz-transform .25s, opacity 1ms .25s;
transition: transform .25s, opacity 1ms .25s;
-webkit-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0);
......@@ -2159,7 +2220,6 @@ select {
.mui-popover.mui-popover-bottom.mui-popover-action.mui-active {
opacity: 1;
-webkit-transition: -webkit-transform .25s;
-moz-transition: -moz-transform .25s;
transition: transform .25s;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
......@@ -2379,7 +2439,6 @@ select {
background-color: #fff;
opacity: 0;
-webkit-transition: -webkit-transform .25s, opacity 1ms .25s;
-moz-transition: -moz-transform .25s, opacity 1ms .25s;
transition: transform .25s, opacity 1ms .25s;
-webkit-transition-timing-function: cubic-bezier(.1, .5, .1, 1);
transition-timing-function: cubic-bezier(.1, .5, .1, 1);
......@@ -2390,7 +2449,6 @@ select {
height: 100%;
opacity: 1;
-webkit-transition: -webkit-transform .25s;
-moz-transition: -moz-transform .25s;
transition: transform .25s;
-webkit-transition-timing-function: cubic-bezier(.1, .5, .1, 1);
transition-timing-function: cubic-bezier(.1, .5, .1, 1);
......@@ -2417,6 +2475,8 @@ select {
white-space: nowrap;
-webkit-transition: all 0s linear;
transition: all 0s linear;
-webkit-backface-visibility: hidden;
}
.mui-slider .mui-slider-group .mui-slider-item {
position: relative;
......@@ -2434,11 +2494,9 @@ select {
.mui-slider .mui-slider-group .mui-slider-item img {
width: 100%;
}
.mui-slider .mui-slider-group.mui-slider-loop .mui-slider-item:first-child {
margin-left: -100%;
}
.mui-slider .mui-slider-group.mui-slider-loop .mui-slider-item:last-child {
margin-right: -100%;
.mui-slider .mui-slider-group.mui-slider-loop {
-webkit-transform: translate(-100%, 0px);
transform: translate(-100%, 0px);
}
.mui-slider-title {
......@@ -2590,7 +2648,6 @@ select {
.mui-content.mui-sliding {
z-index: 2;
-webkit-transition: -webkit-transform .4s;
-moz-transition: -moz-transform .4s;
transition: transform .4s;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
......@@ -2643,7 +2700,6 @@ select {
width: 100%;
height: 490px;
overflow: hidden;
background: #efeff4;
}
.mui-pull-top-pocket {
......@@ -2663,6 +2719,13 @@ select {
display: inline-block;
}
.mui-plus-pullrefresh .mui-pull-bottom-pocket {
position: relative;
bottom: auto;
left: auto;
z-index: auto;
}
.mui-pull {
position: absolute;
right: 0;
......@@ -2674,14 +2737,14 @@ select {
}
.mui-pull-loading {
display: inline-block;
width: 20px;
height: 20px;
vertical-align: middle;
-webkit-transition-duration: 400ms;
transition-duration: 400ms;
}
.mui-pull-loading.mui-reverse {
-webkit-transform: translate(0, 0) rotate(180deg);
transform: translate(0, 0) rotate(180deg);
background-image: url("data:image/GIF;base64,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");
background-repeat: no-repeat;
background-position: center center;
background-size: contain;
}
.mui-pull-caption {
......@@ -3081,3 +3144,20 @@ select {
.mui-icon-pulldown:before {
content: "\e588";
}
.mui-fullscreen {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
}
.mui-fullscreen .mui-slider-group {
height: 100%;
}
.mui-fullscreen .mui-slider-item > a {
top: 50%;
transform: translateY(-50%);
}
This source diff could not be displayed because it is too large. You can view the blob instead.
/*!
* =====================================================
* Mui v0.5.7 (https://github.com/dcloudio/mui)
* Mui v0.5.8 (https://github.com/dcloudio/mui)
* =====================================================
*/
/**
......@@ -37,7 +37,7 @@ var mui = (function(document, undefined) {
var wrap = function(dom, selector) {
dom = dom || [];
dom.__proto__ = $.fn;
Object.setPrototypeOf(dom, $.fn);
dom.selector = selector || '';
return dom;
};
......@@ -271,29 +271,33 @@ var mui = (function(document, undefined) {
* @returns {undefined}
*/
(function(undefined) {
if (String.prototype.trim === undefined) {// fix for iOS 3.2
if (String.prototype.trim === undefined) { // fix for iOS 3.2
String.prototype.trim = function() {
return this.replace(/^\s+|\s+$/g, '');
};
}
Object.setPrototypeOf = Object.setPrototypeOf || function(obj, proto) {
obj['__proto__'] = proto;
return obj;
}
})();
/**
* fixed CustomEvent
*/
(function() {
if ( typeof window.CustomEvent === 'undefined') {
if (typeof window.CustomEvent === 'undefined') {
function CustomEvent(event, params) {
params = params || {
bubbles : false,
cancelable : false,
detail : undefined
bubbles: false,
cancelable: false,
detail: undefined
};
var evt = document.createEvent('Events');
var bubbles = true;
if (params) {
for (var name in params) {
(name === 'bubbles') ? ( bubbles = !!params[name]) : (evt[name] = params[name]);
(name === 'bubbles') ? (bubbles = !!params[name]) : (evt[name] = params[name]);
}
}
evt.initEvent(event, bubbles, true);
......@@ -303,7 +307,6 @@ var mui = (function(document, undefined) {
window.CustomEvent = CustomEvent;
}
})();
/**
* mui fixed classList
* @param {type} document
......@@ -408,7 +411,7 @@ var mui = (function(document, undefined) {
var targetElement = $.targets.click;
if (targetElement) {
var clickEvent, touch;
// On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24)
// On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect
if (document.activeElement && document.activeElement !== targetElement) {
document.activeElement.blur();
}
......@@ -440,6 +443,35 @@ var mui = (function(document, undefined) {
}, true);
})(mui, window, 'click');
(function($, document) {
$(function() {
if (!$.os.ios) {
return;
}
var CLASS_FOCUSIN = 'mui-focusin';
var CLASS_CONTENT = 'mui-content';
var content;
document.addEventListener('focusin', function(e) {
content = null;
var target = e.target;
for (; target && target !== document; target = target.parentNode) {
if (target.classList && target.classList.contains(CLASS_CONTENT)) {
content = target;
break;
}
}
if (content) {
document.body.classList.add(CLASS_FOCUSIN);
}
});
document.addEventListener('focusout', function(e) {
if (content) {
document.body.classList.remove(CLASS_FOCUSIN);
}
});
});
})(mui, document);
/**
* mui namespace(optimization)
* @param {type} $
......@@ -523,7 +555,6 @@ var mui = (function(document, undefined) {
$.gestures.sort(function(a, b) {
return a.index - b.index;
});
return $.gestures;
};
/**
......@@ -575,7 +606,7 @@ var mui = (function(document, undefined) {
}
$.each($.gestures, function(index, gesture) {
if (!$.gestures.stoped) {
if ($.options.gestureConfig[gesture.name]) {
if ($.options.gestureConfig[gesture.name] !== false) {
if (gesture.hasOwnProperty('handle')) {
gesture.handle(event, touch);
}
......@@ -586,16 +617,25 @@ var mui = (function(document, undefined) {
var touch = {};
var detectTouchStart = function(event) {
$.gestures.stoped = false;
var now = Date.now();
var point = event.touches ? event.touches[0] : event;
touch = {
target: event.target,
lastTarget: (touch.lastTarget ? touch.lastTarget : null),
startTime: Date.now(),
startTime: now,
touchTime: 0,
flickStartTime: now,
lastTapTime: (touch.lastTapTime ? touch.lastTapTime : 0),
start: {
x: event.touches[0].pageX,
y: event.touches[0].pageY
x: point.pageX,
y: point.pageY
},
flickStart: {
x: point.pageX,
y: point.pageY
},
flickDistanceX: 0,
flickDistanceY: 0,
move: {
x: 0,
y: 0
......@@ -618,11 +658,17 @@ var mui = (function(document, undefined) {
if ($.gestures.stoped) {
return;
}
touch.touchTime = Date.now() - touch.startTime;
var now = Date.now();
var point = event.touches ? event.touches[0] : event;
touch.touchTime = now - touch.startTime;
touch.move = {
x: event.touches[0].pageX,
y: event.touches[0].pageY
x: point.pageX,
y: point.pageY
};
if (now - touch.flickStartTime > 300) {
touch.flickStartTime = now;
touch.flickStart = touch.move;
}
touch.distance = getDistance(touch.start, touch.move);
touch.angle = getAngle(touch.start, touch.move);
touch.direction = getDirectionByAngle(touch.angle);
......@@ -638,7 +684,11 @@ var mui = (function(document, undefined) {
if ($.gestures.stoped) {
return;
}
touch.touchTime = Date.now() - touch.startTime;
var now = Date.now();
touch.touchTime = now - touch.startTime;
touch.flickTime = now - touch.flickStartTime;
touch.flickDistanceX = touch.move.x - touch.flickStart.x;
touch.flickDistanceY = touch.move.y - touch.flickStart.y;
touch.gesture = event;
detect(event, touch);
......@@ -698,6 +748,36 @@ var mui = (function(document, undefined) {
}
};
})(mui, window);
/**
* mui gesture flick[left|right|up|down]
* @param {type} $
* @param {type} name
* @returns {undefined}
*/
(function($, name) {
var handle = function(event, touch) {
if (event.type === $.EVENT_END || event.type === $.EVENT_CANCEL) {
var options = this.options;
if (touch.direction && options.flickMaxTime > touch.flickTime && touch.distance > options.flickMinDistince) {
touch.flick = true;
$.trigger(event.target, name, touch);
$.trigger(event.target, name + touch.direction, touch);
}
}
};
/**
* mui gesture flick
*/
$.registerGesture({
name: name,
index: 5,
handle: handle,
options: {
flickMaxTime: 300,
flickMinDistince: 10
}
});
})(mui, 'flick');
/**
* mui gesture swipe[left|right|up|down]
* @param {type} $
......@@ -709,12 +789,10 @@ var mui = (function(document, undefined) {
if (event.type === $.EVENT_END || event.type === $.EVENT_CANCEL) {
var options = this.options;
if (touch.direction && options.swipeMaxTime > touch.touchTime && touch.distance > options.swipeMinDistince) {
if (event.target.type !== 'range') {//ignore input range
touch.swipe = true;
$.trigger(event.target, name + touch.direction, touch);
}
}
}
};
/**
* mui gesture swipe
......@@ -776,11 +854,12 @@ var mui = (function(document, undefined) {
*/
(function($, name) {
var handle = function(event, touch) {
if (event.type === $.EVENT_END || event.type === $.EVENT_CANCEL) {
//if (event.type === $.EVENT_END || event.type === $.EVENT_CANCEL) {
if (event.type === $.EVENT_END) { //ignore touchcancel
var options = this.options;
if (touch.distance < options.tabMaxDistance && touch.touchTime < options.tapMaxTime) {
if (touch.distance < options.tapMaxDistance && touch.touchTime < options.tapMaxTime) {
if ($.options.gestureConfig.doubletap && touch.lastTarget && (touch.lastTarget === event.target)) { //same target
if (touch.lastTapTime && (touch.startTime - touch.lastTapTime) < options.tabMaxInterval) {
if (touch.lastTapTime && (touch.startTime - touch.lastTapTime) < options.tapMaxInterval) {
$.trigger(event.target, 'doubletap', touch);
touch.lastTapTime = Date.now();
touch.lastTarget = event.target;
......@@ -794,15 +873,15 @@ var mui = (function(document, undefined) {
}
};
/**
* mui gesture tab
* mui gesture tap
*/
$.registerGesture({
name: name,
index: 30,
handle: handle,
options: {
tabMaxInterval: 300,
tabMaxDistance: 5,
tapMaxInterval: 300,
tapMaxDistance: 5,
tapMaxTime: 250
}
});
......@@ -917,8 +996,9 @@ var mui = (function(document, undefined) {
$.global = $.options = {
gestureConfig: {
tap: true,
doubletap: true,
longtap: true,
doubletap: false,
longtap: false,
flick: true,
swipe: true,
drag: true
}
......@@ -953,6 +1033,13 @@ var mui = (function(document, undefined) {
$.init.add = function(func) {
funcs.push(func);
};
$(function() {
if ($.os.ios) {
document.body.classList.add('mui-ios');
} else if ($.os.android) {
document.body.classList.add('mui-android');
}
});
})(mui);
/**
* mui.init 5+
......@@ -1125,7 +1212,6 @@ var mui = (function(document, undefined) {
//预加载的动画参数优先级:openWindow配置>preloadPages配置>mui默认配置;
nShow = webviewCache.show;
nShow = options.show?$.extend(nShow, options.show):nShow;
webview.show(nShow.aniShow, nShow.duration, function() {
triggerPreload(webview);
trigger(webview,'pagebeforeshow',false);
......@@ -1354,6 +1440,133 @@ var mui = (function(document, undefined) {
});
});
})(mui);
/**
* mui back
* @param {type} $
* @param {type} window
* @returns {undefined}
*/
(function($, window) {
/**
* 后退
*/
$.back = function() {
if (window.history.length > 1) {
if (typeof $.options.back === 'function') {
if ($.options.back() !== false) {
window.history.back();
}
} else {
window.history.back();
}
}
};
window.addEventListener('tap', function(e) {
var action = $.targets.action;
if (action && action.classList.contains('mui-action-back')) {
$.back();
}
});
window.addEventListener('swiperight', function(e) {
var detail = e.detail;
if (detail.angle > -15 && detail.angle < 15 && $.options.swipeBack === true) {
$.back();
}
});
})(mui, window);
/**
* mui back 5+
* @param {type} $
* @param {type} window
* @returns {undefined}
*/
(function($, window) {
/**
* 后退(5+关闭当前窗口)
*/
$.back = function() {
var isBack = true;
var callback = false;
if (typeof $.options.back === 'function') {
callback = $.options.back();
if (callback === false) {
isBack = false;
}
}
if (!isBack) {
return;
}
if (window.plus) {
var wobj = $.currentWebview;
var parent = wobj.parent();
if (parent) {
wobj = parent;
}
wobj.canBack(function(e) {
//by chb 暂时注释,在碰到类似popover之类的锚点的时候,需多次点击才能返回;
if (e.canBack) { //webview history back
window.history.back();
} else { //webview close or hide
//TODO 会不会存在多层嵌套?如果存在需要递归找到最顶层
var opener = wobj.opener();
if (opener) {
//by chb 暂不自动处理老页面的隐藏;
// var openerParent = opener.parent();
// if (openerParent) {
// opener = openerParent;
// }
if (wobj.preload) {
wobj.hide("auto");
} else {
//关闭页面时,需要将其打开的所有子页面全部关闭;
$.closeAll(wobj);
}
//TODO 暂时屏蔽父窗口的隐藏与显示,与预加载一起使用时太多bug
//opener.show();
} else {
//首页不存在opener的情况下,后退实际上应该是退出应用;
//这个交给项目具体实现,框架暂不处理;
//plus.runtime.quit();
}
}
});
} else if (window.history.length > 1) {
window.history.back();
} else {
window.close();
}
};
$.menu = function() {
var menu = document.querySelector('.mui-action-menu');
if (menu) {
$.trigger(menu, 'tap');
} else { //执行父窗口的menu
if (window.plus) {
var wobj = $.currentWebview;
var parent = wobj.parent();
if (parent) { //又得evalJS
parent.evalJS('mui&&mui.menu();');
}
}
}
}
$.plusReady(function() {
plus.key.addEventListener('backbutton', function() {
$.back();
}, false);
plus.key.addEventListener('menubutton', function() {
$.menu();
}, false);
});
})(mui, window);
/**
* mui.init pulldownRefresh
* @param {type} $
......@@ -1364,25 +1577,9 @@ var mui = (function(document, undefined) {
var options = $.options;
var pullRefreshOptions = options.pullRefresh || {};
//需要判断是否为plus,这个需要等一下;
setTimeout(function() {
if ($.os.plus && $.os.android) {
//只要是android手机,必须使用原生的下拉刷新;
if (pullRefreshOptions.down) {
$.plus_pulldownRefresh(pullRefreshOptions.down);
}
if (pullRefreshOptions.up) {
var container = pullRefreshOptions.container;
if (container) {
var $container = $(container);
if ($container.length === 1) {
$container.pullRefresh({
container: container,
up: pullRefreshOptions.up
});
}
}
}
//只要是android手机,必须使用原生的下拉刷新和上拉加载;
$.plus_pullRefresh(pullRefreshOptions);
} else {
var container = pullRefreshOptions.container;
if (container) {
......@@ -1392,7 +1589,6 @@ var mui = (function(document, undefined) {
}
}
}
}, 1000);
});
})(mui);
......@@ -1491,366 +1687,874 @@ var mui = (function(document, undefined) {
})(mui, window);
/**
* pullRefresh plugin
* @param {type} $
* @param {type} window
* @param {type} document
* @param {type} undefined
* @returns {undefined}
*/
(function($) {
var initializing = false,
fnTest = /xyz/.test(function() {
xyz;
}) ? /\b_super\b/ : /.*/;
var Class = function() {};
Class.extend = function(prop) {
var _super = this.prototype;
initializing = true;
var prototype = new this();
initializing = false;
for (var name in prop) {
prototype[name] = typeof prop[name] == "function" &&
typeof _super[name] == "function" && fnTest.test(prop[name]) ?
(function(name, fn) {
return function() {
var tmp = this._super;
this._super = _super[name];
var ret = fn.apply(this, arguments);
this._super = tmp;
return ret;
};
})(name, prop[name]) :
prop[name];
}
function Class() {
if (!initializing && this.init)
this.init.apply(this, arguments);
}
Class.prototype = prototype;
Class.prototype.constructor = Class;
Class.extend = arguments.callee;
return Class;
};
$.Class = Class;
})(mui);
(function($, window, document, undefined) {
var CLASS_SCROLLBAR = 'mui-scrollbar';
var CLASS_INDICATOR = 'mui-scrollbar-indicator';
var CLASS_SCROLLBAR_VERTICAL = CLASS_SCROLLBAR + '-vertical';
var CLASS_SCROLLBAR_HORIZONTAL = CLASS_SCROLLBAR + '-horizontal';
var CLASS_PULL_TOP_POCKET = 'mui-pull-top-pocket';
var CLASS_PULL_BOTTOM_POCKET = 'mui-pull-bottom-pocket';
var CLASS_PULL = 'mui-pull';
var CLASS_PULL_ARROW = 'mui-pull-arrow';
var CLASS_PULL_LOADING = 'mui-pull-loading';
var CLASS_PULL_CAPTION = 'mui-pull-caption';
var CLASS_PULL_CAPTION_DOWN = CLASS_PULL_CAPTION + '-down';
var CLASS_PULL_CAPTION_OVER = CLASS_PULL_CAPTION + '-over';
var CLASS_PULL_CAPTION_REFRESH = CLASS_PULL_CAPTION + '-refresh';
var ease = {
quadratic: {
style: 'cubic-bezier(0.25, 0.46, 0.45, 0.94)',
fn: function(k) {
return k * (2 - k);
}
},
circular: {
style: 'cubic-bezier(0.1, 0.57, 0.1, 1)',
fn: function(k) {
return Math.sqrt(1 - (--k * k));
}
}
}
var Scroll = $.Class.extend({
init: function(element, options) {
this.wrapper = this.element = element;
this.scroller = this.wrapper.children[0];
this.scrollerStyle = this.scroller.style;
var CLASS_ICON = 'mui-icon';
var CLASS_ICON_SPINNER = 'mui-icon-spinner-cycle';
var CLASS_ICON_PULLDOWN = 'mui-icon-pulldown';
var CLASS_SPIN = 'mui-spin';
this.options = $.extend({
scrollY: true,
scrollX: false,
startX: 0,
startY: 0,
indicators: true,
hardwareAccelerated: true,
fixedBadAndorid: false,
preventDefaultException: {
tagName: /^(INPUT|TEXTAREA|BUTTON|SELECT)$/
},
momentum: true,
var CLASS_IN = 'mui-in';
var CLASS_REVERSE = 'mui-reverse';
bounce: true,
bounceTime: 600,
bounceEasing: ease.circular.style,
var CLASS_HIDDEN = 'mui-hidden';
directionLockThreshold: 5,
var CLASS_LOADING_UP = CLASS_PULL_LOADING + ' ' + CLASS_ICON + ' ' + CLASS_ICON_PULLDOWN + ' ' + CLASS_REVERSE;
var CLASS_LOADING_DOWN = CLASS_PULL_LOADING + ' ' + CLASS_ICON + ' ' + CLASS_ICON_PULLDOWN;
var CLASS_LOADING = CLASS_PULL_LOADING + ' ' + CLASS_ICON + ' ' + CLASS_ICON_SPINNER + ' ' + CLASS_SPIN;
var defaultOptions = {
down: {
height: 50,
contentdown: '下拉可刷新',
contentover: '释放立即刷新',
contentrefresh: '正在刷新...'
}, options, true);
this.x = 0;
this.y = 0;
this.translateZ = this.options.hardwareAccelerated ? ' translateZ(0)' : '';
this._init();
this.refresh();
this.scrollTo(this.options.startX, this.options.startY);
},
up: {
height: 50,
contentdown: '上拉显示更多',
contentover: '释放立即刷新',
contentrefresh: '正在加载...',
duration: 300
_init: function() {
this._initIndicators();
this._initEvent();
},
_initIndicators: function() {
var self = this;
self.indicators = [];
if (!this.options.indicators) {
return;
}
};
var html = ['<div class="' + CLASS_PULL + '">', '<div class="' + CLASS_LOADING_DOWN + '"></div>', '<div class="' + CLASS_PULL_CAPTION + '">', '<span class="' + CLASS_PULL_CAPTION_DOWN + ' ' + CLASS_IN + '">{downCaption}</span>', '<span class="' + CLASS_PULL_CAPTION_OVER + '">{overCaption}</span>', '<span class="' + CLASS_PULL_CAPTION_REFRESH + '">{refreshCaption}</span>', '</div>', '</div>'];
var indicators = [],
indicator;
var PullRefresh = function(element, options) {
this.element = element;
this.options = $.extend(defaultOptions, options, true);
this.options.up.height = -this.options.up.height;
this.pullOptions = null;
// Vertical scrollbar
if (self.options.scrollY) {
indicator = {
el: this._createScrollBar(CLASS_SCROLLBAR_VERTICAL),
listenX: false
};
this.init();
this.wrapper.appendChild(indicator.el);
indicators.push(indicator);
}
// Horizontal scrollbar
if (this.options.scrollX) {
indicator = {
el: this._createScrollBar(CLASS_SCROLLBAR_HORIZONTAL),
listenY: false
};
PullRefresh.prototype.init = function() {
this.element.style.webkitTransform = 'translate3d(0,0,0)';
this.element.style.position = 'relative';
this.element.style['-webkit-backface-visibility'] = 'hidden';
this.translateY = 0;
this.lastTranslateY = 0;
this.initPocket();
this.initEvent();
};
PullRefresh.prototype.initPocket = function() {
var options = this.options;
if (options.down && options.down.hasOwnProperty('callback')) {
this.topPocket = this.element.querySelector('.' + CLASS_PULL_TOP_POCKET);
if (!this.topPocket) {
this.topPocket = this.createPocket(CLASS_PULL_TOP_POCKET, options.down);
this.element.insertBefore(this.topPocket, this.element.firstChild);
}
}
if (options.up && options.up.hasOwnProperty('callback')) {
this.bottomPocket = this.element.querySelector('.' + CLASS_PULL_BOTTOM_POCKET);
if (!this.bottomPocket) {
this.bottomPocket = this.createPocket(CLASS_PULL_BOTTOM_POCKET, options.up);
this.element.appendChild(this.bottomPocket);
this.wrapper.appendChild(indicator.el);
indicators.push(indicator);
}
for (var i = indicators.length; i--;) {
this.indicators.push(new Indicator(this, indicators[i]));
}
};
PullRefresh.prototype.createPocket = function(clazz, options) {
var pocket = document.createElement('div');
pocket.className = clazz;
pocket.innerHTML = html.join('').replace('{downCaption}', options.contentdown).replace('{overCaption}', options.contentover).replace('{refreshCaption}', options.contentrefresh);
return pocket;
};
PullRefresh.prototype.initEvent = function() {
var self = this;
if (self.bottomPocket) {
if (self.options.up.draggable) {
self.element.addEventListener('dragup', function(e) {
self.dragUp(e);
this.wrapper.addEventListener('scrollend', function() {
self.indicators.map(function(indicator) {
indicator.fade();
});
} else {
var callback = self.options.up.callback;
if (callback) {
var scrolling = false;
var isLoading = false;
setInterval(function() {
if (scrolling) {
scrolling = false;
if (isLoading) return;
var scrollHeight = document.body.scrollHeight;
if (window.innerHeight + window.scrollY + 5 > scrollHeight) {
self.isLoading = isLoading = true;
$.gestures.stoped = true;
//window.scrollTo(0, scrollHeight);
self.pullOptions = self.options.up;
self.loading = self.bottomPocket.querySelector('.' + CLASS_PULL_LOADING);
self.setCaption(CLASS_PULL_CAPTION_REFRESH);
callback(function() {
self.isLoading = isLoading = false;
self.setCaption(CLASS_PULL_CAPTION_DOWN);
self.pullOptions = null;
});
}
}
}, 250);
window.addEventListener('scroll', function() {
scrolling = true;
this.wrapper.addEventListener('scrollstart', function() {
self.indicators.map(function(indicator) {
indicator.fade(1);
});
window.addEventListener('dragend', function(event) {
if (event.detail.direction === 'up') {
scrolling = true;
}
});
}
}
// if ($.os.plus) {
// var pocket = self.bottomPocket;
// pocket.style.display = "none";
// //图标需要显示出来
// pocket.querySelector('.' + CLASS_PULL_LOADING).className = CLASS_LOADING + ' mui-active';
// //不需要这么多节点,只显示正在加载即可;
// pocket.querySelector('.' + CLASS_PULL_CAPTION).removeChild(pocket.querySelector('.' + CLASS_PULL_CAPTION_DOWN));
// pocket.querySelector('.' + CLASS_PULL_CAPTION).removeChild(pocket.querySelector('.' + CLASS_PULL_CAPTION_OVER));
// pocket.querySelector('.' + CLASS_PULL_CAPTION_REFRESH).classList.add('mui-in');;
// document.addEventListener('plusscrollbottom', function() {
// if (self.isLoading) return;
// self.isLoading = true;
// pocket.style.display = "block";
// var callback = self.options.up.callback;
// callback && callback(function() {
// pocket.style.display = "none";
// self.isLoading = false;
// });
// }, false);
// } else {
// self.element.addEventListener('dragup', function(e) {
// self.dragUp(e);
// });
// }
}
if (self.topPocket) {
self.element.addEventListener('dragdown', function(e) {
self.dragDown(e);
});
}
if ((self.bottomPocket && self.options.up.draggable === true) || self.topPocket) {
self.element.addEventListener('dragstart', function(e) {
self.dragStart(e);
this.wrapper.addEventListener('beforescrollstart', function() {
self.indicators.map(function(indicator) {
indicator.fade(1, true);
});
self.element.addEventListener('drag', function(e) {
var direction = e.detail.direction;
//左右拖动处理逻辑?
if (self.dragDirection && direction !== 'up' && direction !== 'down') {
if (self.pullOptions) {
if (self.pullOptions.height > 0) {
self.dragDown(e);
} else {
self.dragUp(e);
}
}
}
});
self.element.addEventListener('dragend', function(e) {
self.dragEnd(e);
this.wrapper.addEventListener('refresh', function() {
self.indicators.map(function(indicator) {
indicator.refresh();
});
});
},
_initEvent: function() {
window.addEventListener('orientationchange', this);
window.addEventListener('resize', this);
this.scroller.addEventListener('webkitTransitionEnd', this);
this.wrapper.addEventListener('touchstart', this);
this.wrapper.addEventListener('touchcancel', this);
this.wrapper.addEventListener('touchend', this);
this.wrapper.addEventListener('drag', this);
this.wrapper.addEventListener('dragend', this);
this.wrapper.addEventListener('flick', this);
this.wrapper.addEventListener('scrollend', this);
},
handleEvent: function(e) {
switch (e.type) {
case 'touchstart':
this._start(e);
break;
case 'drag':
this._drag(e);
break;
case 'dragend':
case 'flick':
this._flick(e);
break;
case 'touchcancel':
case 'touchend':
this._end(e);
break;
case 'webkitTransitionEnd':
this._transitionEnd(e);
break;
case 'scrollend':
this._scrollend(e);
break;
case 'orientationchange':
case 'resize':
this._resize();
break;
}
};
PullRefresh.prototype.dragStart = function(e) {
},
_start: function(e) {
this.moved = this.needReset = false;
this._transitionTime();
if (this.isInTransition) {
this.needReset = true;
this.isInTransition = false;
var pos = $.parseTranslateMatrix($.getStyles(this.scroller, 'webkitTransform'));
this.setTranslate(Math.round(pos.x), Math.round(pos.y));
$.trigger(this.wrapper, 'scrollend', this);
}
this.reLayout();
$.trigger(this.wrapper, 'beforescrollstart', this);
},
_drag: function(e) {
var detail = e.detail;
if (detail.direction === 'up' || detail.direction === 'down') {
this.element.style.webkitTransitionDuration = '0s';
this.isLoading = this.dragDirection = false;
detail.gesture && detail.gesture.preventDefault();
var deltaX = detail.deltaX - detail.lastDeltaX;
var deltaY = detail.deltaY - detail.lastDeltaY;
var absDeltaX = Math.abs(detail.deltaX);
var absDeltaY = Math.abs(detail.deltaY);
if (absDeltaX > absDeltaY + this.options.directionLockThreshold) {
deltaY = 0;
} else if (absDeltaY >= absDeltaX + this.options.directionLockThreshold) {
deltaX = 0;
}
};
PullRefresh.prototype.dragUp = function(e) {
var self = this;
if (self.isLoading || self.dragDirection === 'down') {
return;
deltaX = this.hasHorizontalScroll ? deltaX : 0;
deltaY = this.hasVerticalScroll ? deltaY : 0;
var newX = this.x + deltaX;
var newY = this.y + deltaY;
// Slow down if outside of the boundaries
if (newX > 0 || newX < this.maxScrollX) {
newX = this.options.bounce ? this.x + deltaX / 3 : newX > 0 ? 0 : this.maxScrollX;
}
var scrollHeight = document.body.scrollHeight;
if (!self.dragDirection && window.innerHeight + window.scrollY + 40 < scrollHeight) {
if (newY > 0 || newY < this.maxScrollY) {
newY = this.options.bounce ? this.y + deltaY / 3 : newY > 0 ? 0 : this.maxScrollY;
}
if (!this.requestAnimationFrame) {
this._updateTranslate();
}
if (!this.moved) {
$.trigger(this.wrapper, 'scrollstart', this);
}
this.moved = true;
this.x = newX;
this.y = newY;
e.stopPropagation();
},
_flick: function(e) {
var detail = e.detail;
this._clearRequestAnimationFrame();
if (e.type === 'dragend' && detail.flick) { //dragend
return;
}
window.scrollTo(0, scrollHeight);
self.pullOptions = self.options.up;
self.loading = self.bottomPocket.querySelector('.' + CLASS_PULL_LOADING);
self.drag(e);
};
PullRefresh.prototype.dragDown = function(e) {
var self = this;
if (self.isLoading || self.dragDirection === 'up') {
var newX = Math.round(this.x);
var newY = Math.round(this.y);
this.isInTransition = false;
// reset if we are outside of the boundaries
if (this.resetPosition(this.options.bounceTime)) {
return;
}
var scrollY = window.scrollY;
if (!self.dragDirection && scrollY > 5) {
this.scrollTo(newX, newY); // ensures that the last position is rounded
if (e.type === 'dragend') { //dragend
$.trigger(this.wrapper, 'scrollend', this);
return;
} else if (scrollY !== 0) {
window.scrollTo(0, 0);
}
self.pullOptions = self.options.down;
self.loading = self.topPocket.querySelector('.' + CLASS_PULL_LOADING);
self.drag(e);
var time = 0;
var easing = '';
// start momentum animation if needed
if (this.options.momentum && detail.flickTime < 300) {
momentumX = this.hasHorizontalScroll ? this._momentum(this.x, detail.flickDistanceX, detail.flickTime, this.maxScrollX, this.options.bounce ? this.wrapperWidth : 0, this.options.deceleration) : {
destination: newX,
duration: 0
};
PullRefresh.prototype.drag = function(e) {
if (!this.pullOptions) {
return;
momentumY = this.hasVerticalScroll ? this._momentum(this.y, detail.flickDistanceY, detail.flickTime, this.maxScrollY, this.options.bounce ? this.wrapperHeight : 0, this.options.deceleration) : {
destination: newY,
duration: 0
};
newX = momentumX.destination;
newY = momentumY.destination;
time = Math.max(momentumX.duration, momentumY.duration);
this.isInTransition = true;
}
if (this.pullOptions.height > 0) {
if (e.detail.deltaY < 0) {
if (newX != this.x || newY != this.y) {
if (newX > 0 || newX < this.maxScrollX || newY > 0 || newY < this.maxScrollY) {
easing = ease.quadratic;
}
this.scrollTo(newX, newY, time, easing);
return;
}
$.trigger(this.wrapper, 'scrollend', this);
e.stopPropagation();
},
_end: function(e) {
if (!this.moved && this.needReset) {
this.resetPosition(this.options.bounceTime);
}
},
_transitionEnd: function(e) {
if (e.target != this.scroller || !this.isInTransition) {
return;
}
this.dragDirection = this.pullOptions.height > 0 ? 'down' : 'up';
if (!this.requestAnimationFrame) {
this.updateTranslate();
this._transitionTime();
if (!this.resetPosition(this.options.bounceTime)) {
this.isInTransition = false;
$.trigger(this.wrapper, 'scrollend', this);
}
e.detail.gesture.preventDefault();
this.translateY = e.detail.deltaY * 0.4;
};
PullRefresh.prototype.dragEnd = function(e) {
var self = this;
if (self.pullOptions) {
cancelAnimationFrame(self.requestAnimationFrame);
//移动距离够了,就刷新,否则就啥都不干,恢复到原始状态;
if (Math.abs(e.detail.deltaY * 0.4) >= Math.abs(self.pullOptions.height)) {
self.load();
} else {
this.hide();
},
_scrollend: function(e) {
if (this.y <= this.maxScrollY) {
$.trigger(this.wrapper, 'scrollbottom', this);
}
$.gestures.stoped = true;
},
_resize: function() {
var that = this;
clearTimeout(that.resizeTimeout);
that.resizeTimeout = setTimeout(function() {
that.refresh();
}, that.options.resizePolling);
},
_transitionTime: function(time) {
time = time || 0;
this.scrollerStyle['webkitTransitionDuration'] = time + 'ms';
if (this.options.fixedBadAndorid && !time && $.os.isBadAndroid) {
this.scrollerStyle['webkitTransitionDuration'] = '0.001s';
}
};
PullRefresh.prototype.hide = function() {
this.translateY = 0;
if (this.indicators) {
for (var i = this.indicators.length; i--;) {
this.indicators[i].transitionTime(time);
}
}
},
_transitionTimingFunction: function(easing) {
this.scrollerStyle['webkitTransitionTimingFunction'] = easing;
if (this.indicators) {
for (var i = this.indicators.length; i--;) {
this.indicators[i].transitionTimingFunction(easing);
}
}
},
_translate: function(x, y) {
this.x = x;
this.y = y;
},
_clearRequestAnimationFrame: function() {
if (this.requestAnimationFrame) {
//在dragEnd中已经调用过了,可能重复了
cancelAnimationFrame(this.requestAnimationFrame);
this.requestAnimationFrame = null;
}
this.element.style.webkitTransitionDuration = '0.5s';
this.setTranslate(0);
//恢复到正常状态,下拉可刷新
this.setCaption(CLASS_PULL_CAPTION_DOWN);
if (this.pullOptions && this.pullOptions.height > 0) {
this.loading.classList.remove(CLASS_REVERSE);
}
this.pullOptions = null;
};
PullRefresh.prototype.updateTranslate = function() {
},
_updateTranslate: function() {
var self = this;
if (self.translateY !== self.lastTranslateY) {
self.translateY = Math.abs(self.translateY) < 2 ? 0 : self.translateY;
self.setTranslate(self.translateY);
if (Math.abs(self.translateY) >= Math.abs(self.pullOptions.height)) {
self.setCaption(CLASS_PULL_CAPTION_OVER);
} else {
self.setCaption(CLASS_PULL_CAPTION_DOWN);
}
self.lastTranslateY = self.translateY;
if (self.x !== self.lastX || self.y !== self.lastY) {
self.setTranslate(self.x, self.y);
}
self.requestAnimationFrame = requestAnimationFrame(function() {
self.updateTranslate();
self._updateTranslate();
});
};
PullRefresh.prototype.setTranslate = function(height) {
this.element.style.webkitTransform = 'translate3d(0,' + height + 'px,0)';
if (this.bottomPocket) {
if (height < 0) { //up
this.bottomPocket.style.bottom = (height > this.pullOptions.height ? height : this.pullOptions.height) + 'px';
} else if (height === 0) {
//this.bottomPocket.removeAttribute('style');//靠,为啥5+里边remove不掉呢
this.bottomPocket.setAttribute('style', '');
},
_createScrollBar: function(clazz) {
var scrollbar = document.createElement('div');
var indicator = document.createElement('div');
scrollbar.className = CLASS_SCROLLBAR + ' ' + clazz;
indicator.className = CLASS_INDICATOR;
scrollbar.appendChild(indicator);
if (clazz === CLASS_SCROLLBAR_VERTICAL) {
this.scrollbarY = scrollbar;
this.scrollbarIndicatorY = indicator;
} else if (clazz === CLASS_SCROLLBAR_HORIZONTAL) {
this.scrollbarX = scrollbar;
this.scrollbarIndicatorX = indicator;
}
this.wrapper.appendChild(scrollbar);
return scrollbar;
},
_preventDefaultException: function(el, exceptions) {
for (var i in exceptions) {
if (exceptions[i].test(el[i])) {
return true;
}
}
return false;
},
_reLayout: function() {
if (!this.hasHorizontalScroll) {
this.maxScrollX = 0;
this.scrollerWidth = this.wrapperWidth;
}
if (!this.hasVerticalScroll) {
this.maxScrollY = 0;
this.scrollerHeight = this.wrapperHeight;
}
this.indicators.map(function(indicator) {
indicator.refresh();
});
},
_momentum: function(current, distance, time, lowerMargin, wrapperSize, deceleration) {
var speed = parseFloat(Math.abs(distance) / time),
destination,
duration;
deceleration = deceleration === undefined ? 0.0006 : deceleration;
destination = current + (speed * speed) / (2 * deceleration) * (distance < 0 ? -1 : 1);
duration = speed / deceleration;
if (destination < lowerMargin) {
destination = wrapperSize ? lowerMargin - (wrapperSize / 2.5 * (speed / 8)) : lowerMargin;
distance = Math.abs(destination - current);
duration = distance / speed;
} else if (destination > 0) {
destination = wrapperSize ? wrapperSize / 2.5 * (speed / 8) : 0;
distance = Math.abs(current) + destination;
duration = distance / speed;
}
return {
destination: Math.round(destination),
duration: duration
};
},
//API
setTranslate: function(x, y) {
this.x = x;
this.y = y;
this.scrollerStyle['webkitTransform'] = 'translate(' + x + 'px,' + y + 'px)' + this.translateZ;
if (this.indicators) {
for (var i = this.indicators.length; i--;) {
this.indicators[i].updatePosition();
}
}
this.lastX = this.x;
this.lastY = this.y;
},
reLayout: function() {
this.wrapper.offsetHeight;
PullRefresh.prototype.load = function() {
var self = this;
self.isLoading = true;
self.setCaption(CLASS_PULL_CAPTION_REFRESH);
self.setTranslate(self.pullOptions.height);
var callback = self.pullOptions.callback;
callback && callback(function() {
if (self.pullOptions && self.pullOptions.height < 0) {
//self.bottomPocket.classList.add(CLASS_HIDDEN);
var duration = Math.min(1000, self.pullOptions.duration);
setTimeout(function() {
$.scrollTo(document.body.scrollHeight - window.innerHeight, duration, function() {
self.isLoading = false;
//self.bottomPocket.classList.remove(CLASS_HIDDEN);
var paddingLeft = parseFloat($.getStyles(this.wrapper, 'padding-left')) || 0;
var paddingRight = parseFloat($.getStyles(this.wrapper, 'padding-right')) || 0;
var paddingTop = parseFloat($.getStyles(this.wrapper, 'padding-top')) || 0;
var paddingBottom = parseFloat($.getStyles(this.wrapper, 'padding-bottom')) || 0;
var clientWidth = this.wrapper.clientWidth;
var clientHeight = this.wrapper.clientHeight;
this.scrollerWidth = this.scroller.offsetWidth;
this.scrollerHeight = this.scroller.offsetHeight;
this.wrapperWidth = clientWidth - paddingLeft - paddingRight;
this.wrapperHeight = clientHeight - paddingTop - paddingBottom;
this.maxScrollX = Math.min(this.wrapperWidth - this.scrollerWidth, 0);
this.maxScrollY = Math.min(this.wrapperHeight - this.scrollerHeight, 0);
this.hasHorizontalScroll = this.options.scrollX && this.maxScrollX < 0;
this.hasVerticalScroll = this.options.scrollY && this.maxScrollY < 0;
this._reLayout();
},
resetPosition: function(time) {
var x = this.x,
y = this.y;
time = time || 0;
if (!this.hasHorizontalScroll || this.x > 0) {
x = 0;
} else if (this.x < this.maxScrollX) {
x = this.maxScrollX;
}
if (!this.hasVerticalScroll || this.y > 0) {
y = 0;
} else if (this.y < this.maxScrollY) {
y = this.maxScrollY;
}
if (x == this.x && y == this.y) {
return false;
}
this.scrollTo(x, y, time, this.options.bounceEasing);
return true;
},
refresh: function() {
this.reLayout();
$.trigger(this.wrapper, 'refresh', this);
this.resetPosition();
},
scrollTo: function(x, y, time, easing) {
var easing = easing || ease.circular;
this.isInTransition = time > 0;
if (this.isInTransition) {
this._clearRequestAnimationFrame();
this._transitionTimingFunction(easing.style);
this._transitionTime(time);
this.setTranslate(x, y);
} else {
this.setTranslate(x, y);
}
}
});
}, 100);
//Indicator
var Indicator = function(scroller, options) {
this.wrapper = typeof options.el == 'string' ? document.querySelector(options.el) : options.el;
this.wrapperStyle = this.wrapper.style;
this.indicator = this.wrapper.children[0];
this.indicatorStyle = this.indicator.style;
this.scroller = scroller;
this.options = $.extend({
listenX: true,
listenY: true,
fade: false,
speedRatioX: 0,
speedRatioY: 0
}, options);
this.sizeRatioX = 1;
this.sizeRatioY = 1;
this.maxPosX = 0;
this.maxPosY = 0;
if (this.options.fade) {
this.wrapperStyle['webkitTransform'] = this.scroller.translateZ;
this.wrapperStyle['webkitTransitionDuration'] = this.options.fixedBadAndorid && $.os.isBadAndroid ? '0.001s' : '0ms';
this.wrapperStyle.opacity = '0';
}
}
Indicator.prototype = {
handleEvent: function(e) {
},
transitionTime: function(time) {
time = time || 0;
this.indicatorStyle['webkitTransitionDuration'] = time + 'ms';
if (this.scroller.options.fixedBadAndorid && !time && $.os.isBadAndroid) {
this.indicatorStyle['webkitTransitionDuration'] = '0.001s';
}
},
transitionTimingFunction: function(easing) {
this.indicatorStyle['webkitTransitionTimingFunction'] = easing;
},
refresh: function() {
this.transitionTime();
if (this.options.listenX && !this.options.listenY) {
this.indicatorStyle.display = this.scroller.hasHorizontalScroll ? 'block' : 'none';
} else if (this.options.listenY && !this.options.listenX) {
this.indicatorStyle.display = this.scroller.hasVerticalScroll ? 'block' : 'none';
} else {
self.isLoading = false;
this.indicatorStyle.display = this.scroller.hasHorizontalScroll || this.scroller.hasVerticalScroll ? 'block' : 'none';
}
this.wrapper.offsetHeight; // force refresh
if (this.options.listenX) {
this.wrapperWidth = this.wrapper.clientWidth;
this.indicatorWidth = Math.max(Math.round(this.wrapperWidth * this.wrapperWidth / (this.scroller.scrollerWidth || this.wrapperWidth || 1)), 8);
this.indicatorStyle.width = this.indicatorWidth + 'px';
this.maxPosX = this.wrapperWidth - this.indicatorWidth;
this.minBoundaryX = 0;
this.maxBoundaryX = this.maxPosX;
this.sizeRatioX = this.options.speedRatioX || (this.scroller.maxScrollX && (this.maxPosX / this.scroller.maxScrollX));
}
if (this.options.listenY) {
this.wrapperHeight = this.wrapper.clientHeight;
this.indicatorHeight = Math.max(Math.round(this.wrapperHeight * this.wrapperHeight / (this.scroller.scrollerHeight || this.wrapperHeight || 1)), 8);
this.indicatorStyle.height = this.indicatorHeight + 'px';
this.maxPosY = this.wrapperHeight - this.indicatorHeight;
this.minBoundaryY = 0;
this.maxBoundaryY = this.maxPosY;
this.sizeRatioY = this.options.speedRatioY || (this.scroller.maxScrollY && (this.maxPosY / this.scroller.maxScrollY));
}
this.updatePosition();
},
updatePosition: function() {
var x = this.options.listenX && Math.round(this.sizeRatioX * this.scroller.x) || 0,
y = this.options.listenY && Math.round(this.sizeRatioY * this.scroller.y) || 0;
if (x < this.minBoundaryX) {
this.width = Math.max(this.indicatorWidth + x, 8);
this.indicatorStyle.width = this.width + 'px';
x = this.minBoundaryX;
} else if (x > this.maxBoundaryX) {
this.width = Math.max(this.indicatorWidth - (x - this.maxPosX), 8);
this.indicatorStyle.width = this.width + 'px';
x = this.maxPosX + this.indicatorWidth - this.width;
} else if (this.width != this.indicatorWidth) {
this.width = this.indicatorWidth;
this.indicatorStyle.width = this.width + 'px';
}
if (y < this.minBoundaryY) {
this.height = Math.max(this.indicatorHeight + y * 3, 8);
this.indicatorStyle.height = this.height + 'px';
y = this.minBoundaryY;
} else if (y > this.maxBoundaryY) {
this.height = Math.max(this.indicatorHeight - (y - this.maxPosY) * 3, 8);
this.indicatorStyle.height = this.height + 'px';
y = this.maxPosY + this.indicatorHeight - this.height;
} else if (this.height != this.indicatorHeight) {
this.height = this.indicatorHeight;
this.indicatorStyle.height = this.height + 'px';
}
this.x = x;
this.y = y;
this.indicatorStyle['webkitTransform'] = 'translate(' + x + 'px,' + y + 'px)' + this.scroller.translateZ;
},
fade: function(val, hold) {
if (hold && !this.visible) {
return;
}
clearTimeout(this.fadeTimeout);
this.fadeTimeout = null;
var time = val ? 250 : 500,
delay = val ? 0 : 300;
val = val ? '1' : '0';
this.wrapperStyle['webkitTransitionDuration'] = time + 'ms';
this.fadeTimeout = setTimeout((function(val) {
this.wrapperStyle.opacity = val;
this.visible = +val;
}).bind(this, val), delay);
}
};
$.Scroll = Scroll;
$.fn.scroll = function(options) {
this.each(function() {
var scroll = this.getAttribute('data-scroll');
if (!scroll) {
var id = ++$.uuid;
$.data[id] = new Scroll(this, options);
this.setAttribute('data-scroll', id);
}
self.hide();
});
};
})(mui, window, document);
(function($, window, document, undefined) {
var CLASS_PULL_TOP_POCKET = 'mui-pull-top-pocket';
var CLASS_PULL_BOTTOM_POCKET = 'mui-pull-bottom-pocket';
var CLASS_PULL = 'mui-pull';
var CLASS_PULL_LOADING = 'mui-pull-loading';
var CLASS_PULL_CAPTION = 'mui-pull-caption';
// PullRefresh.prototype.showLoading = function(className) {
// this.setCaption(className);
var CLASS_ICON = 'mui-icon';
var CLASS_PRELOADER = 'mui-preloader';
var CLASS_PULLDOWN_ARROW = 'mui-pulldown-arrow';
var CLASS_PRELOADER_SPIN = 'mui-preloader-spin';
// };
// PullRefresh.prototype.hideLoading = function(className) {
// this.setCaption(className);
// };
var CLASS_IN = 'mui-in';
var CLASS_REVERSE = 'mui-reverse';
PullRefresh.prototype.setCaption = function(className) {
var pocket = this.pullOptions && this.pullOptions.height > 0 ? this.topPocket : this.bottomPocket;
if (pocket) {
var caption = pocket.querySelector('.' + CLASS_PULL_CAPTION);
var last = caption.querySelector('.' + CLASS_IN);
if (last) {
last.classList.remove(CLASS_IN);
}
var active = caption.querySelector('.' + className);
if (active) {
active.classList.add(CLASS_IN);
}
if (this.pullOptions && this.pullOptions.height > 0) {
if (className === CLASS_PULL_CAPTION_REFRESH) {
this.loading.className = CLASS_LOADING;
} else if (className === CLASS_PULL_CAPTION_OVER) {
this.loading.className = CLASS_LOADING_UP;
} else {
this.loading.className = CLASS_LOADING_DOWN;
var CLASS_LOADING_UP = CLASS_PULL_LOADING + ' ' + CLASS_PULLDOWN_ARROW + ' ' + CLASS_REVERSE;
var CLASS_LOADING_DOWN = CLASS_PULL_LOADING + ' ' + CLASS_PULLDOWN_ARROW;
var CLASS_LOADING = CLASS_PULL_LOADING + ' ' + CLASS_PRELOADER;
var pocketHtml = ['<div class="' + CLASS_PULL + '">', '<div class="' + CLASS_LOADING_DOWN + '"></div>', '<div class="' + CLASS_PULL_CAPTION + '">{downCaption}</div>', '</div>'].join('');
var defaultOptions = {
scrollY: true,
scrollX: false,
indicators: true,
down: {
height: 50,
contentdown: '下拉可以刷新',
contentover: '释放立即刷新',
contentrefresh: '正在刷新...'
},
up: {
height: 50,
contentdown: '上拉显示更多',
contentrefresh: '正在加载...',
duration: 300
}
};
var PullRefresh = $.Scroll.extend({
init: function(element, options) {
this._super(element, $.extend(defaultOptions, options, true));
},
_init: function() {
this._super();
this._initPocket();
},
_initPocket: function() {
var options = this.options;
if (options.down && options.down.hasOwnProperty('callback')) {
this.topPocket = this.scroller.querySelector('.' + CLASS_PULL_TOP_POCKET);
if (!this.topPocket) {
this.topPocket = this._createPocket(CLASS_PULL_TOP_POCKET, options.down);
this.scroller.insertBefore(this.topPocket, this.scroller.firstChild);
this.topLoading = this.topPocket.querySelector('.' + CLASS_PULL_LOADING);
this.topCaption = this.topPocket.querySelector('.' + CLASS_PULL_CAPTION);
}
}
if (options.up && options.up.hasOwnProperty('callback')) {
this.bottomPocket = this.scroller.querySelector('.' + CLASS_PULL_BOTTOM_POCKET);
if (!this.bottomPocket) {
this.bottomPocket = this._createPocket(CLASS_PULL_BOTTOM_POCKET, options.up);
this.scroller.appendChild(this.bottomPocket);
this.bottomLoading = this.bottomPocket.querySelector('.' + CLASS_PULL_LOADING);
this.bottomCaption = this.bottomPocket.querySelector('.' + CLASS_PULL_CAPTION);
}
this.wrapper.addEventListener('scrollbottom', this);
}
},
handleEvent: function(e) {
this._super(e);
if (e.type === 'scrollbottom') {
this._scrollbottom();
}
},
_scrollbottom: function() {
if (!this.pulldown && !this.loading) {
this.pullPocket = this.bottomPocket;
this.pullCaption = this.bottomCaption;
this.pullLoading = this.bottomLoading;
this.pullupLoading();
}
},
_createPocket: function(clazz, options) {
var pocket = document.createElement('div');
pocket.className = clazz;
pocket.innerHTML = pocketHtml.replace('{downCaption}', options.contentdown);
return pocket;
},
_setCaption: function(title) {
if (this.loading) {
return;
}
var options = this.options;
var pocket = this.pullPocket;
if (pocket) {
if (title !== this.lastTitle) {
var caption = this.pullCaption;
var loading = this.pullLoading;
caption.innerHTML = title;
if (this.pulldown) {
// if (title === options.down.contentrefresh) {
loading.className = CLASS_LOADING;
// } else if (title === options.down.contentover) {
// loading.className = CLASS_LOADING_UP;
// } else if (title === options.down.contentdown) {
// loading.className = CLASS_LOADING_DOWN;
// }
} else {
if (className === CLASS_PULL_CAPTION_REFRESH) {
this.loading.className = CLASS_LOADING + ' ' + CLASS_IN;
if (title === options.up.contentrefresh) {
loading.className = CLASS_LOADING + ' ' + CLASS_IN;
} else {
this.loading.className = CLASS_LOADING;
loading.className = CLASS_LOADING;
}
}
this.lastTitle = title;
}
}
},
_start: function(e) {
if (!this.loading) {
this.pulldown = this.pullPocket = this.pullCaption = this.pullLoading = false
}
this._super(e);
},
_drag: function(e) {
this._super(e);
if (!this.pulldown && !this.loading && this.topPocket && e.detail.direction === 'down' && this.y >= 0) {
this.pulldown = true;
this.pullPocket = this.topPocket;
this.pullCaption = this.topCaption;
this.pullLoading = this.topLoading;
}
if (this.pulldown) {
this._setCaption(this.y > this.options.down.height ? this.options.down.contentover : this.options.down.contentdown);
}
},
_reLayout: function() {
this.hasVerticalScroll = true;
this._super();
},
//API
resetPosition: function(time) {
if (this.pulldown && this.y >= this.options.down.height) {
this.pulldownLoading(0, time || 0);
return true;
}
return this._super(time);
},
pulldownLoading: function(x, time) {
x = x || 0;
this.scrollTo(x, this.options.down.height, time, this.options.bounceEasing);
if (this.loading) {
return;
}
this._setCaption(this.options.down.contentrefresh);
this.loading = true;
this.indicators.map(function(indicator) {
indicator.fade(0);
});
var callback = this.options.down.callback;
callback && callback.call(this);
},
endPulldownToRefresh: function() {
if (this.topPocket) {
this.scrollTo(0, 0, this.options.bounceTime, this.options.bounceEasing);
this.loading = false;
this._setCaption(this.options.down.contentdown);
}
};
},
pullupLoading: function(x, time) {
x = x || 0;
this.scrollTo(x, this.maxScrollY, time, this.options.bounceEasing);
if (this.loading) {
return;
}
this._setCaption(this.options.up.contentrefresh);
this.indicators.map(function(indicator) {
indicator.fade(0);
});
this.loading = true;
var callback = this.options.up.callback;
callback && callback.call(this);
},
endPullupToRefresh: function(finished) {
if (this.bottomPocket) {
this.loading = false;
this._setCaption(this.options.up.contentdown);
if (finished) {
this.bottomPocket.classList.add('mui-hidden');
this.wrapper.removeEventListener('scrollbottom', this);
}
}
}
});
$.fn.pullRefresh = function(options) {
this.each(function() {
var pullrefresh = this.getAttribute('data-pullrefresh');
......@@ -1859,56 +2563,375 @@ var mui = (function(document, undefined) {
$.data[id] = new PullRefresh(this, options);
this.setAttribute('data-pullrefresh', id);
}
});
});
};
})(mui, window, document);
(function($, window, document, undefined) {
var CLASS_SLIDER = 'mui-slider';
var CLASS_SLIDER_GROUP = 'mui-slider-group';
var CLASS_SLIDER_LOOP = 'mui-slider-loop';
var CLASS_SLIDER_INDICATOR = 'mui-slider-indicator';
var CLASS_ACTION_PREVIOUS = 'mui-action-previous';
var CLASS_ACTION_NEXT = 'mui-action-next';
var CLASS_SLIDER_ITEM = 'mui-slider-item';
var CLASS_SLIDER_ITEM_DUPLICATE = CLASS_SLIDER_ITEM + '-duplicate';
var CLASS_DISABLED = 'mui-disabled';
var SELECTOR_SLIDER_ITEM = '.' + CLASS_SLIDER_ITEM;
var SELECTOR_SLIDER_ITEM_DUPLICATE = '.' + CLASS_SLIDER_ITEM_DUPLICATE;
var SELECTOR_SLIDER_INDICATOR = '.' + CLASS_SLIDER_INDICATOR;
var SELECTOR_SLIDER_PROGRESS_BAR = '.mui-slider-progress-bar';
var defaultOptions = {
interval: 0, //设置为0,则不定时轮播
scrollY: false,
scrollX: true,
indicators: false,
bounceTime: 200,
startX: false
};
var Slider = $.Scroll.extend({
init: function(element, options) {
this._super(element, $.extend(defaultOptions, options, true));
},
_init: function() {
this.scroller = this.wrapper.querySelector('.' + CLASS_SLIDER_GROUP);
this.scrollerStyle = this.scroller.style;
this.progressBar = this.wrapper.querySelector(SELECTOR_SLIDER_PROGRESS_BAR);
if (this.progressBar) {
this.progressBarWidth = this.progressBar.offsetWidth;
this.progressBarStyle = this.progressBar.style;
}
this.x = this._getScroll();
if (this.options.startX === false) {
this.options.startX = this.x;
}
this._super();
this._initTimer();
},
_initEvent: function() {
var self = this;
self._super();
self.wrapper.addEventListener('swiperight', $.stopPropagation);
self.wrapper.addEventListener('scrollend', function() {
self.slideNumber = self._getSlideNumber();
var slideNumber = self.slideNumber;
if (self.loop) {
if (self.slideNumber === 0) {
self.slideNumber = self.itemLength - 2;
self.setTranslate(-self.wrapperWidth * (self.itemLength - 2), 0);
} else if (self.slideNumber === (self.itemLength - 1)) {
self.slideNumber = 1;
self.setTranslate(-self.wrapperWidth, 0);
}
slideNumber = self.slideNumber - 1;
}
$.trigger(self.wrapper, 'slide', {
slideNumber: slideNumber
});
});
self.wrapper.addEventListener('slide', function(e) {
var detail = e.detail;
detail.slideNumber = detail.slideNumber || 0;
var indicators = self.wrapper.querySelectorAll('.mui-slider-indicator .mui-indicator');
if (indicators.length > 0) { //图片轮播
for (var i = 0, len = indicators.length; i < len; i++) {
indicators[i].classList[i === detail.slideNumber ? 'add' : 'remove']('mui-active');
}
} else {
var number = self.wrapper.querySelector('.mui-slider-indicator .mui-number span');
if (number) { //图文表格
number.innerText = (detail.slideNumber + 1);
} else { //segmented controls
var controlItems = self.wrapper.querySelectorAll('.mui-control-item');
for (var i = 0, len = controlItems.length; i < len; i++) {
controlItems[i].classList[i === detail.slideNumber ? 'add' : 'remove']('mui-active');
}
}
}
e.stopPropagation();
});
self.wrapper.addEventListener($.eventName('shown', 'tab'), function(e) { //tab
self.gotoItem((e.detail.tabNumber || 0), self.options.bounceTime);
});
//indicator
var indicator = self.wrapper.querySelector(SELECTOR_SLIDER_INDICATOR);
if (indicator) {
indicator.addEventListener('tap', function(event) {
var target = event.target;
if (target.classList.contains(CLASS_ACTION_PREVIOUS) || target.classList.contains(CLASS_ACTION_NEXT)) {
self[target.classList.contains(CLASS_ACTION_PREVIOUS) ? 'prevItem' : 'nextItem']();
event.stopPropagation();
}
});
}
},
_initTimer: function() {
var self = this;
var slider = self.wrapper;
var interval = self.options.interval;
var slidershowTimer = slider.getAttribute('data-slidershowTimer');
slidershowTimer && window.clearTimeout(slidershowTimer);
if (interval) {
slidershowTimer = window.setTimeout(function() {
if (!slider) {
return;
}
//仅slider显示状态进行自动轮播
if (!!(slider.offsetWidth || slider.offsetHeight)) {
self.nextItem();
//下一个
}
self._initTimer();
}, interval);
slider.setAttribute('data-slidershowTimer', slidershowTimer);
}
},
_reLayout: function() {
this.hasHorizontalScroll = true;
this.loop = this.scroller.classList.contains(CLASS_SLIDER_LOOP);
this.itemLength = this.scroller.querySelectorAll(SELECTOR_SLIDER_ITEM).length;
this.scrollerWidth = this.itemLength * this.scrollerWidth;
this.maxScrollX = Math.min(this.wrapperWidth - this.scrollerWidth, 0);
this.slideNumber = this._getSlideNumber();
this._super();
},
_getScroll: function() {
var result = $.parseTranslateMatrix($.getStyles(this.scroller, 'webkitTransform'));
return result ? result.x : 0;
},
_getSlideNumber: function() {
return Math.abs(Math.round(this.x / this.wrapperWidth));
},
_transitionEnd: function(e) {
if (e.target != this.scroller || !this.isInTransition) {
return;
}
this._transitionTime();
this.isInTransition = false;
$.trigger(this.wrapper, 'scrollend', this);
},
_flick: function(e) {
var detail = e.detail;
var direction = detail.direction;
this._clearRequestAnimationFrame();
this.isInTransition = true;
if (direction === 'up' || direction === 'down') {
this.resetPosition(this.options.bounceTime);
return;
}
if (e.type === 'flick') {
this.x = -(this.slideNumber + (direction === 'left' ? 1 : -1)) * this.wrapperWidth;
this.resetPosition(this.options.bounceTime);
} else if (e.type === 'dragend' && !detail.flick) {
this.resetPosition(this.options.bounceTime);
}
e.stopPropagation();
},
_gotoItem: function(slideNumber, time) {
this.scrollTo(-slideNumber * this.wrapperWidth, 0, time, this.options.bounceEasing);
this._initTimer();
},
_fixedSlideNumber: function(slideNumber) {
if (!this.loop) {
if (slideNumber < 0) {
slideNumber = 0;
} else if (slideNumber >= this.itemLength) {
slideNumber = this.itemLength - 1;
}
} else {
if (slideNumber === 0) {
slideNumber = this.itemLength - 2;
} else if (slideNumber === this.itemLength - 1) {
slideNumber = 1;
}
}
return slideNumber;
},
//API
setTranslate: function(x, y) {
this._super(x, y);
var progressBar = this.progressBar;
if (progressBar) {
this.progressBarStyle.webkitTransform = 'translate3d(' + (-x * (this.progressBarWidth / this.wrapperWidth)) + 'px,0,0)';
}
},
resetPosition: function(time) {
time = time || 0;
if (this.x > 0) {
this.x = 0;
} else if (this.x < this.maxScrollX) {
this.x = this.maxScrollX;
}
this._gotoItem(this._getSlideNumber(), time);
return true;
},
gotoItem: function(slideNumber, time) {
this._gotoItem(this._fixedSlideNumber(this.loop ? (slideNumber + 1) : slideNumber), time || this.options.bounceEasing);
},
nextItem: function() {
this._gotoItem(this._fixedSlideNumber(this.slideNumber + 1), this.options.bounceTime);
},
prevItem: function() {
this._gotoItem(this._fixedSlideNumber(this.slideNumber - 1), this.options.bounceTime);
},
refresh: function(options) {
if (options) {
$.extend(this.options, options);
this._super();
this._gotoItem(this._getSlideNumber() + 1, this.options.bounceTime);
} else {
this._super();
}
},
});
$.fn.slider = function(options) {
var slider = null;
this.each(function() {
var sliderElement = this;
if (!this.classList.contains(CLASS_SLIDER)) {
sliderElement = this.querySelector('.' + CLASS_SLIDER);
}
if (sliderElement) {
var id = sliderElement.getAttribute('data-slider');
if (!id) {
id = ++$.uuid;
$.data[id] = slider = new Slider(sliderElement, options);
sliderElement.setAttribute('data-slider', id);
} else {
slider = $.data[id];
if (slider && options) {
slider.refresh(options);
}
}
}
});
return slider;
};
$.ready(function() {
setTimeout(function() {
$('.mui-slider').slider();
}, 500); //临时处理slider宽度计算不正确的问题(初步确认是scrollbar导致的)
});
})(mui, window, document);
/**
* pullRefresh 5+
* @param {type} $
* @returns {undefined}
*/
(function($, document) {
var CLASS_PLUS_PULLREFRESH = 'mui-plus-pullrefresh';
var CLASS_CONTENT = 'mui-content';
var CLASS_IN = 'mui-in';
var SELECTOR_CONTENT = '.' + CLASS_CONTENT;
var defaultOptions = {
down: {
height: 50,
contentdown: '下拉可以刷新',
contentover: '释放立即刷新',
contentrefresh: '正在刷新...'
},
up: {
contentdown: '上拉显示更多',
contentrefresh: '正在加载...'
}
};
var PlusPullRefresh = function(options) {
options = $.extend(defaultOptions, options, true);
this.downOptions = options.down;
this.upOptions = options.up;
if (this.downOptions && this.downOptions.hasOwnProperty('callback')) {
this.initPulldownRefresh();
}
if (this.upOptions && this.upOptions.hasOwnProperty('callback')) {
this.initPullupRefresh();
}
};
PlusPullRefresh.prototype.initPulldownRefresh = function() {
var self = this;
var sw = $.currentWebview;
sw.setPullToRefresh({
support: true,
height: self.downOptions.height + 'px',
range: "200px",
contentdown: {
caption: self.downOptions.contentdown
},
contentover: {
caption: self.downOptions.contentover
},
contentrefresh: {
caption: self.downOptions.contentrefresh
}
}, function() {
self.downOptions.callback && self.downOptions.callback.call(self);
});
};
PlusPullRefresh.prototype.initPullupRefresh = function() {
var self = this;
var content = document.querySelector(SELECTOR_CONTENT);
if (content) {
self.bottomPocket = document.createElement('div');
self.bottomPocket.className = $.classNamePrefix + 'pull-bottom-pocket';
self.bottomPocket.innerHTML = '<div class="' + $.classNamePrefix + 'pull"><div class="' + $.classNamePrefix + 'pull-loading ' + $.classNamePrefix + 'preloader"></div><div class="' + $.classNamePrefix + 'pull-caption">' + self.upOptions.contentdown + '</div></div>';
content.appendChild(self.bottomPocket);
self.pullLoading = self.bottomPocket.querySelector('.mui-pull-loading');
self.pullCaption = self.bottomPocket.querySelector('.mui-pull-caption');
self.isLoading = false;
document.addEventListener('plusscrollbottom', self);
}
};
PlusPullRefresh.prototype.handleEvent = function(event) {
if (event.type === 'plusscrollbottom') {
var self = this;
if (self.isLoading) return;
self.isLoading = true;
setTimeout(function() {
self.pullLoading.classList.add(CLASS_IN);
self.pullCaption.innerHTML = ''; //修正5+里边第一次加载时,文字显示的bug(还会显示出来个“多”,猜测应该是渲染问题导致的)
self.pullCaption.innerHTML = self.upOptions.contentrefresh;
var callback = self.upOptions.callback;
callback && callback.call(self);
}, 300);
}
};
})(mui, window, document);
/**
* pulldownRefresh 5+
* @param {type} $
* @returns {undefined}
*/
(function($) {
var pulldownOptions = {
height : 50,
contentdown : '下拉可以刷新',
contentover : '释放立即刷新',
contentrefresh : '正在刷新...'
PlusPullRefresh.prototype.endPulldownToRefresh = function() {
$.currentWebview.endPullToRefresh();
};
PlusPullRefresh.prototype.endPullupToRefresh = function(finished) {
if (this.pullLoading) {
this.pullLoading.classList.remove(CLASS_IN);
this.pullCaption.innerHTML = this.upOptions.contentdown;
this.isLoading = false;
if (finished) {
this.bottomPocket.classList.add('mui-hidden');
document.removeEventListener('plusscrollbottom', this);
}
$.plus_pulldownRefresh = function(options) {
options = $.extend(pulldownOptions, options, true);
}
};
$.plus_pullRefresh = function(options) {
$.plusReady(function() {
var self = document.body;
var id = self.getAttribute('data-pullrefresh-plus');
if (!id) {//避免重复初始化5+ pullrefresh
if (!id) { //避免重复初始化5+ pullrefresh
self.classList.add(CLASS_PLUS_PULLREFRESH);
id = ++$.uuid;
$.data[id] = new PlusPullRefresh(options);
self.setAttribute('data-pullrefresh-plus', id);
var sw = $.currentWebview;
sw.setPullToRefresh({
support : true,
height : options.height + 'px',
range : "200px",
contentdown : {
caption : options.contentdown
},
contentover : {
caption : options.contentover
},
contentrefresh : {
caption : options.contentrefresh
}
}, function() {
options.callback && options.callback(function() {
sw.endPullToRefresh();
});
});
}
});
};
})(mui);
})(mui, document);
/**
* off-canvas
* @param {type} $
......@@ -2423,460 +3446,100 @@ var mui = (function(document, undefined) {
$.fn.popover = function() {
var args = arguments;
this.each(function() {
$.targets._popover = this;
if (args[0] === 'show' || args[0] === 'hide' || args[0] === 'toggle') {
togglePopover(this, args[1]);
}
});
};
})(mui, window, document, 'popover');
/**
* segmented-controllers
* @param {type} $
* @param {type} window
* @param {type} document
* @param {type} undefined
* @returns {undefined}
*/
(function($, window, document, name, undefined) {
var CLASS_CONTROL_ITEM = 'mui-control-item';
var CLASS_CONTROL_CONTENT = 'mui-control-content';
var CLASS_TAB_ITEM = 'mui-tab-item';
var CLASS_SLIDER_ITEM = 'mui-slider-item';
var handle = function(event, target) {
if (target.classList && (target.classList.contains(CLASS_CONTROL_ITEM) || target.classList.contains(CLASS_TAB_ITEM))) {
event.preventDefault();//fixed hashchange
return target;
}
return false;
};
$.registerTarget({
name : name,
index : 80,
handle : handle,
target : false
});
window.addEventListener('tap', function(e) {
var targetTab = $.targets.tab;
if (!targetTab) {
return;
}
var activeTab;
var activeBodies;
var targetBody;
var className = 'mui-active';
var classSelector = '.' + className;
activeTab = targetTab.parentNode.querySelector(classSelector);
if (activeTab) {
activeTab.classList.remove(className);
}
var isLastActive = targetTab === activeTab;
if (targetTab) {
targetTab.classList.add(className);
}
if (!targetTab.hash) {
return;
}
targetBody = document.getElementById(targetTab.hash.replace('#', ''));
if (!targetBody) {
return;
}
if (!targetBody.classList.contains(CLASS_CONTROL_CONTENT)) {//tab bar popover
targetTab.classList[isLastActive ? 'remove' : 'add'](className);
return;
}
if (isLastActive) {//same
return;
}
activeBodies = targetBody.parentNode.getElementsByClassName(className);
for (var i = 0; i < activeBodies.length; i++) {
activeBodies[i].classList.remove(className);
}
targetBody.classList.add(className);
var contents = targetBody.parentNode.querySelectorAll('.' + CLASS_CONTROL_CONTENT);
$.trigger(targetBody, $.eventName('shown', name), {
tabNumber : Array.prototype.indexOf.call(contents, targetBody)
})
});
})(mui, window, document, 'tab');
/**
* Slider (TODO resize)
* @param {type} $
* @param {type} window
* @returns {undefined}
*/
(function($, window) {
var CLASS_SLIDER = 'mui-slider';
var CLASS_SLIDER_GROUP = 'mui-slider-group';
var CLASS_SLIDER_LOOP = 'mui-slider-loop';
var CLASS_SLIDER_INDICATOR = 'mui-slider-indicator';
var CLASS_ACTION_PREVIOUS = 'mui-action-previous';
var CLASS_ACTION_NEXT = 'mui-action-next';
var CLASS_SLIDER_ITEM = 'mui-slider-item';
var CLASS_SLIDER_ITEM_DUPLICATE = CLASS_SLIDER_ITEM + '-duplicate';
var SELECTOR_SLIDER_ITEM = '.' + CLASS_SLIDER_ITEM;
var SELECTOR_SLIDER_ITEM_DUPLICATE = '.' + CLASS_SLIDER_ITEM_DUPLICATE;
var SELECTOR_SLIDER_INDICATOR = '.' + CLASS_SLIDER_INDICATOR;
var SELECTOR_SLIDER_PROGRESS_BAR = '.mui-slider-progress-bar';
var Slider = function(element, options) {
this.element = element;
this.options = $.extend({
slideshowDelay: 0, //设置为0,则不定时轮播
factor: 1
}, options);
this.init();
};
Slider.prototype.init = function() {
// this.initDuplicate();
this.initEvent();
this.initTimer();
};
Slider.prototype.refresh = function(options) {
var newOptions = $.extend({
slideshowDelay: 0, //设置为0,则不定时轮播
factor: 1
}, options);
if (this.options.slideshowDelay != newOptions.slideshowDelay) {
this.options.slideshowDelay = newOptions.slideshowDelay;
if (this.options.slideshowDelay) {
this.nextItem();
}
}
};
//TODO 暂时不做自动clone
// Slider.prototype.initDuplicate = function() {
// var self = this;
// var element = self.element;
// if (element.classList.contains(CLASS_SLIDER_LOOP)) {
// var duplicates = element.getElementsByClassName(CLASS_SLIDER_ITEM_DUPLICATE);
// }
// };
Slider.prototype.initEvent = function() {
var self = this;
var element = self.element;
var slider = element.parentNode;
self.translateX = 0;
self.sliderWidth = element.offsetWidth;
self.isLoop = element.classList.contains(CLASS_SLIDER_LOOP);
self.sliderLength = element.querySelectorAll(SELECTOR_SLIDER_ITEM).length;
self.progressBarWidth = 0;
self.progressBar = slider.querySelector(SELECTOR_SLIDER_PROGRESS_BAR);
if (self.progressBar) {
self.progressBarWidth = self.progressBar.offsetWidth;
}
//slider
var isDragable = false;
self.isSwipeable = false;
slider.addEventListener('dragstart', function(event) {
var detail = event.detail;
var direction = detail.direction;
if (direction === 'left' || direction === 'right') { //reset
isDragable = true;
self.translateX = self.lastTranslateX = 0;
self.scrollX = self.getScroll();
self.sliderWidth = element.offsetWidth;
self.isLoop = element.classList.contains(CLASS_SLIDER_LOOP);
self.sliderLength = element.querySelectorAll(SELECTOR_SLIDER_ITEM).length;
if (self.progressBar) {
self.progressBarWidth = self.progressBar.offsetWidth;
}
self.maxTranslateX = ((self.sliderLength - 1) * self.sliderWidth);
event.detail.gesture.preventDefault();
var isStopPropagation = true;
if (!self.isLoop) {
if (direction === 'right' && self.scrollX === 0) {
isStopPropagation = false;
} else if (direction === 'left' && self.scrollX === -self.maxTranslateX) {
isStopPropagation = false;
}
}
isStopPropagation && event.stopPropagation();
}
});
slider.addEventListener('drag', function(event) {
if (isDragable) {
self.dragItem(event);
}
});
slider.addEventListener('dragend', function(event) {
if (isDragable) {
self.gotoItem(self.getSlideNumber());
isDragable = self.isSwipeable = false;
}
});
slider.addEventListener('swipeleft', function(event) {
if (self.isSwipeable) {
//stop dragend
$.gestures.stoped = true;
self.nextItem();
isDragable = self.isSwipeable = false;
event.stopImmediatePropagation();
}
});
slider.addEventListener('swiperight', function(event) {
if (self.isSwipeable) {
//stop dragend
$.gestures.stoped = true;
self.prevItem();
isDragable = self.isSwipeable = false;
event.stopImmediatePropagation();
}
});
slider.addEventListener('slide', function(e) {
var detail = e.detail;
detail.slideNumber = detail.slideNumber || 0;
var number = slider.querySelector('.mui-slider-indicator .mui-number span');
if (number) {
number.innerText = (detail.slideNumber + 1);
}
var indicators = slider.querySelectorAll('.mui-slider-indicator .mui-indicator');
for (var i = 0, len = indicators.length; i < len; i++) {
indicators[i].classList[i === detail.slideNumber ? 'add' : 'remove']('mui-active');
}
var controlItems = slider.querySelectorAll('.mui-control-item');
for (var i = 0, len = controlItems.length; i < len; i++) {
controlItems[i].classList[i === detail.slideNumber ? 'add' : 'remove']('mui-active');
}
});
slider.addEventListener($.eventName('shown', 'tab'), function(e) { //tab
self.gotoItem(-(e.detail.tabNumber || 0));
});
//indicator
var indicator = element.parentNode.querySelector(SELECTOR_SLIDER_INDICATOR);
if (indicator) {
indicator.addEventListener('tap', function(event) {
var target = event.target;
if (target.classList.contains(CLASS_ACTION_PREVIOUS) || target.classList.contains(CLASS_ACTION_NEXT)) {
self[target.classList.contains(CLASS_ACTION_PREVIOUS) ? 'prevItem' : 'nextItem']();
event.stopPropagation();
}
});
}
};
Slider.prototype.dragItem = function(event) {
var self = this;
var detail = event.detail;
if (detail.deltaX !== detail.lastDeltaX) {
var translate = (detail.deltaX * self.options.factor + self.scrollX);
self.element.style['-webkit-transition-duration'] = '0';
var min = 0;
var max = -self.maxTranslateX;
if (self.isLoop) {
min = self.sliderWidth;
max = max + min;
}
if (translate > min || translate < max) {
self.isSwipeable = false;
return;
}
if (!self.requestAnimationFrame) {
self.updateTranslate();
}
self.isSwipeable = true;
self.translateX = translate;
}
if (self.timer) {
clearTimeout(self.timer);
}
self.timer = setTimeout(function() {
self.initTimer();
}, 100);
};
Slider.prototype.updateTranslate = function() {
var self = this;
if (self.lastTranslateX !== self.translateX) {
self.setTranslate(self.translateX);
self.lastTranslateX = self.translateX;
}
self.requestAnimationFrame = requestAnimationFrame(function() {
self.updateTranslate();
});
};
Slider.prototype.setTranslate = function(x) {
this.element.style.webkitTransform = 'translate3d(' + x + 'px,0,0)';
this.updateProcess(x);
}
Slider.prototype.updateProcess = function(translate) {
var progressBarWidth = this.progressBarWidth;
if (progressBarWidth) {
translate = Math.abs(translate);
this.setProcess(translate * (progressBarWidth / this.sliderWidth));
}
};
Slider.prototype.setProcess = function(translate) {
var progressBar = this.progressBar;
if (progressBar) {
progressBar.style.webkitTransform = 'translate3d(' + translate + 'px,0,0)';
}
};
/**
* 下一个轮播
* @returns {Number}
*/
Slider.prototype.nextItem = function() {
this.gotoItem(this.getCurrentSlideNumber('next') - 1);
};
/**
* 上一个轮播
* @returns {Number}
*/
Slider.prototype.prevItem = function() {
this.gotoItem(this.getCurrentSlideNumber('prev') + 1);
};
/**
* 滑动到指定轮播
* @param {type} slideNumber
* @returns {undefined}
*/
Slider.prototype.gotoItem = function(slideNumber) {
if (!(slideNumber === 1 && this.getSlideNumber() === slideNumber)) {
slideNumber = slideNumber > 0 ? -slideNumber : slideNumber;
}
var self = this;
var slider = self.element;
var slideLength = self.sliderLength;
if (self.isLoop) { //循环轮播需减去2个过渡元素
slideLength = slideLength - 2;
} else {
slideLength = slideLength - 1;
slideNumber = Math.min(0, slideNumber);
slideNumber = Math.max(slideNumber, -slideLength);
}
if (self.requestAnimationFrame) {
cancelAnimationFrame(self.requestAnimationFrame);
self.requestAnimationFrame = null;
}
var offsetX = Math.max(slideNumber, -slideLength) * slider.offsetWidth;
slider.style['-webkit-transition-duration'] = '.2s';
self.setTranslate(offsetX);
// slider.style.webkitTransform = 'translate3d(' + offsetX + 'px,0,0)';
// self.updateProcess(offsetX);
var fixedLoop = function() {
slider.style['-webkit-transition-duration'] = '0';
slider.style.webkitTransform = 'translate3d(' + (slideNumber * slider.offsetWidth) + 'px,0,0)';
slider.removeEventListener('webkitTransitionEnd', fixedLoop);
};
slider.removeEventListener('webkitTransitionEnd', fixedLoop);
if (self.isLoop) { //循环轮播自动重新定位
if (slideNumber === 1 || slideNumber === -slideLength) {
slideNumber = slideNumber === 1 ? (-slideLength + 1) : 0;
slider.addEventListener('webkitTransitionEnd', fixedLoop);
}
}
$.trigger(slider.parentNode, 'slide', {
slideNumber: Math.abs(slideNumber)
});
this.initTimer();
};
/**
* 计算轮播应该处于的位置(四舍五入)
* @returns {Number}
*/
Slider.prototype.getSlideNumber = function() {
return (Math.round(this.getScroll() / this.sliderWidth));
};
/**
* 当前所处位置
* @param {type} type
* @returns {unresolved}
*/
Slider.prototype.getCurrentSlideNumber = function(type) {
return (Math[type === 'next' ? 'ceil' : 'floor'](this.getScroll() / this.sliderWidth));
};
/**
* 获取当前滚动位置
* @returns {Number}
*/
Slider.prototype.getScroll = function() {
var slider = this.element;
var scroll = 0;
if ('webkitTransform' in slider.style) {
var result = $.parseTranslate(slider.style.webkitTransform);
scroll = result ? result.x : 0;
$.targets._popover = this;
if (args[0] === 'show' || args[0] === 'hide' || args[0] === 'toggle') {
togglePopover(this, args[1]);
}
return scroll;
});
};
/**
* 自动轮播
})(mui, window, document, 'popover');
/**
* segmented-controllers
* @param {type} $
* @param {type} window
* @param {type} document
* @param {type} undefined
* @returns {undefined}
*/
Slider.prototype.initTimer = function() {
var self = this;
var slideshowDelay = self.options.slideshowDelay;
if (slideshowDelay) {
var slider = self.element;
var slidershowTimer = slider.getAttribute('data-slidershowTimer');
slidershowTimer && window.clearTimeout(slidershowTimer);
slidershowTimer = window.setTimeout(function() {
if (!slider) {
(function($, window, document, name, undefined) {
var CLASS_CONTROL_ITEM = 'mui-control-item';
var CLASS_CONTROL_CONTENT = 'mui-control-content';
var CLASS_TAB_ITEM = 'mui-tab-item';
var CLASS_SLIDER_ITEM = 'mui-slider-item';
var handle = function(event, target) {
if (target.classList && (target.classList.contains(CLASS_CONTROL_ITEM) || target.classList.contains(CLASS_TAB_ITEM))) {
event.preventDefault();//fixed hashchange
return target;
}
return false;
};
$.registerTarget({
name : name,
index : 80,
handle : handle,
target : false
});
window.addEventListener('tap', function(e) {
var targetTab = $.targets.tab;
if (!targetTab) {
return;
}
//仅slider显示状态进行自动轮播
if (!!(slider.offsetWidth || slider.offsetHeight)) {
self.nextItem();
//下一个
var activeTab;
var activeBodies;
var targetBody;
var className = 'mui-active';
var classSelector = '.' + className;
activeTab = targetTab.parentNode.querySelector(classSelector);
if (activeTab) {
activeTab.classList.remove(className);
}
self.initTimer();
}, slideshowDelay);
slider.setAttribute('data-slidershowTimer', slidershowTimer);
var isLastActive = targetTab === activeTab;
if (targetTab) {
targetTab.classList.add(className);
}
};
if (!targetTab.hash) {
return;
}
$.fn.slider = function(options) {
//新增定时轮播 重要:remove该轮播时,请获取data-slidershowTimer然后手动clearTimeout
var slider = null;
this.each(function() {
var sliderGroup = this;
if (this.classList.contains(CLASS_SLIDER)) {
sliderGroup = this.querySelector('.' + CLASS_SLIDER_GROUP);
targetBody = document.getElementById(targetTab.hash.replace('#', ''));
if (!targetBody) {
return;
}
var id = sliderGroup.getAttribute('data-slider');
if (!id) {
id = ++$.uuid;
$.data[id] = slider = new Slider(sliderGroup, options);
sliderGroup.setAttribute('data-slider', id);
} else {
slider = $.data[id];
if (slider && options) {
slider.refresh(options);
if (!targetBody.classList.contains(CLASS_CONTROL_CONTENT)) {//tab bar popover
targetTab.classList[isLastActive ? 'remove' : 'add'](className);
return;
}
if (isLastActive) {//same
return;
}
activeBodies = targetBody.parentNode.getElementsByClassName(className);
for (var i = 0; i < activeBodies.length; i++) {
activeBodies[i].classList.remove(className);
}
targetBody.classList.add(className);
var contents = targetBody.parentNode.querySelectorAll('.' + CLASS_CONTROL_CONTENT);
$.trigger(targetBody, $.eventName('shown', name), {
tabNumber : Array.prototype.indexOf.call(contents, targetBody)
})
});
return slider;
};
$.ready(function() {
$('.mui-slider-group').slider();
});
})(mui, window);
})(mui, window, document, 'tab');
/**
* Toggles switch
* @param {type} $
......@@ -2932,6 +3595,8 @@ var mui = (function(document, undefined) {
isActive: slideOn
});
toggle.removeEventListener('dragstart', $.stopPropagation);
// toggle.removeEventListener('flick', $.stopPropagation);
event.stopPropagation();
};
var dragToggle = function(event) {
if (!toggle) {
......@@ -2947,12 +3612,14 @@ var mui = (function(document, undefined) {
handle.style['-webkit-transition-duration'] = '0s';
handle.style.webkitTransform = 'translate3d(' + deltaX + 'px,0,0)';
toggle.classList[(deltaX > (toggleWidth / 2 - handleWidth / 2)) ? 'add' : 'remove'](CLASS_ACTIVE);
event.stopPropagation();
};
window.addEventListener($.EVENT_START, function(e) {
toggle = $.targets.toggle;
if (toggle) {
toggle.addEventListener('dragstart', $.stopPropagation);
// toggle.addEventListener('flick', $.stopPropagation);
handle = toggle.querySelector(SELECTOR_SWITCH_HANDLE);
toggleWidth = toggle.clientWidth;
handleWidth = handle.clientWidth;
......@@ -2980,6 +3647,7 @@ var mui = (function(document, undefined) {
var CLASS_SELECTED = 'mui-selected';
var CLASS_GRID_VIEW = 'mui-grid-view';
var CLASS_TABLE_VIEW_CELL = 'mui-table-view-cell';
var CLASS_COLLAPSE_CONTENT = 'mui-collapse-content';
var CLASS_DISABLED = 'mui-disabled';
var CLASS_TOGGLE = 'mui-switch';
var CLASS_BTN = 'mui-btn';
......@@ -3193,9 +3861,13 @@ var mui = (function(document, undefined) {
}
};
window.addEventListener('touchstart', function(event) {
if (cell) {
toggleActive(false);
}
cell = a = sliderHandle = sliderLeft = sliderRight = isDraging = sliderRequestAnimationFrame = false;
translateX = lastTranslateX = sliderTranslateX = sliderHandleWidth = sliderLeftWidth = sliderRightWidth = 0;
sliderLeftBg = sliderRightBg = '';
var target = event.target;
var isDisabled = false;
for (; target && target !== document; target = target.parentNode) {
......@@ -3204,6 +3876,9 @@ var mui = (function(document, undefined) {
if ((target.tagName === 'INPUT' && target.type !== 'radio' && target.type !== 'checkbox') || target.tagName === 'BUTTON' || classList.contains(CLASS_TOGGLE) || classList.contains(CLASS_BTN) || classList.contains(CLASS_DISABLED)) {
isDisabled = true;
}
if (classList.contains(CLASS_COLLAPSE_CONTENT)) { //collapse content
break;
}
if (classList.contains(CLASS_TABLE_VIEW_CELL)) {
cell = target;
var selected = cell.parentNode.querySelector('.' + CLASS_SELECTED);
......@@ -3319,7 +3994,7 @@ var mui = (function(document, undefined) {
isDraging = true;
}
}
if(isDraging){
if (isDraging) {
event.stopPropagation();
}
},
......@@ -3352,9 +4027,9 @@ var mui = (function(document, undefined) {
}
if (isSwipeable) {
$.gestures.stoped = true;
event.stopImmediatePropagation();
endDraging(true, event.detail);
}
event.stopPropagation();
},
swipeleft: function(event) {
var isSwipeable = false;
......@@ -3371,9 +4046,9 @@ var mui = (function(document, undefined) {
}
if (isSwipeable) {
$.gestures.stoped = true;
event.stopImmediatePropagation();
endDraging(true, event.detail);
}
event.stopPropagation();
}
}
......@@ -3416,6 +4091,12 @@ var mui = (function(document, undefined) {
}
}
}
//fixed hashchange(android)
window.addEventListener($.EVENT_CLICK, function(e) {
if (cell && cell.classList.contains('mui-collapse')) {
e.preventDefault();
}
});
window.addEventListener('doubletap', function(event) {
if (cell) {
radioOrCheckboxClick();
......@@ -3428,6 +4109,7 @@ var mui = (function(document, undefined) {
var isExpand = false;
var classList = cell.classList;
if (classList.contains('mui-collapse')) {
event.detail.gesture.preventDefault();
if (!classList.contains(CLASS_ACTIVE)) { //展开时,需要收缩其他同类
var collapse = cell.parentNode.querySelector('.mui-collapse.mui-active');
if (collapse) {
......@@ -3697,6 +4379,9 @@ var mui = (function(document, undefined) {
};
element.addEventListener('input', showTip);
element.addEventListener('tap', showTip);
element.addEventListener('touchmove', function(e) {
e.stopPropagation();
});
} else {
if (this.clearActionClass) {
var action = this.clearAction;
......@@ -3782,133 +4467,3 @@ var mui = (function(document, undefined) {
$('.mui-input-row input').input();
});
})(mui, window, document);
\ No newline at end of file
/**
* mui back
* @param {type} $
* @param {type} window
* @returns {undefined}
*/
(function($, window) {
/**
* 后退
*/
$.back = function() {
if (window.history.length > 1) {
if (typeof $.options.back === 'function') {
if ($.options.back() !== false) {
window.history.back();
}
} else {
window.history.back();
}
}
};
window.addEventListener('tap', function(e) {
var action = $.targets.action;
if (action && action.classList.contains('mui-action-back')) {
$.back();
}
});
window.addEventListener('swiperight', function(e) {
var detail = e.detail;
if (detail.angle > -15 && detail.angle < 15 && $.options.swipeBack === true) {
if ($.targets.toggle) {
return;
}
$.back();
}
});
})(mui, window);
/**
* mui back 5+
* @param {type} $
* @param {type} window
* @returns {undefined}
*/
(function($, window) {
/**
* 后退(5+关闭当前窗口)
*/
$.back = function() {
var isBack = true;
var callback = false;
if (typeof $.options.back === 'function') {
callback = $.options.back();
if (callback === false) {
isBack = false;
}
}
if (!isBack) {
return;
}
if (window.plus) {
var wobj = $.currentWebview;
var parent = wobj.parent();
if (parent) {
wobj = parent;
}
wobj.canBack(function(e) {
//by chb 暂时注释,在碰到类似popover之类的锚点的时候,需多次点击才能返回;
if (e.canBack) { //webview history back
window.history.back();
} else { //webview close or hide
//TODO 会不会存在多层嵌套?如果存在需要递归找到最顶层
var opener = wobj.opener();
if (opener) {
//by chb 暂不自动处理老页面的隐藏;
// var openerParent = opener.parent();
// if (openerParent) {
// opener = openerParent;
// }
if (wobj.preload) {
wobj.hide("auto");
} else {
//关闭页面时,需要将其打开的所有子页面全部关闭;
$.closeAll(wobj);
}
//TODO 暂时屏蔽父窗口的隐藏与显示,与预加载一起使用时太多bug
//opener.show();
} else {
//首页不存在opener的情况下,后退实际上应该是退出应用;
//这个交给项目具体实现,框架暂不处理;
//plus.runtime.quit();
}
}
});
} else if (window.history.length > 1) {
window.history.back();
} else {
window.close();
}
};
$.menu = function() {
var menu = document.querySelector('.mui-action-menu');
if (menu) {
$.trigger(menu, 'tap');
} else { //执行父窗口的menu
if (window.plus) {
var wobj = $.currentWebview;
var parent = wobj.parent();
if (parent) { //又得evalJS
parent.evalJS('mui&&mui.menu();');
}
}
}
}
$.plusReady(function() {
plus.key.addEventListener('backbutton', function() {
$.back();
}, false);
plus.key.addEventListener('menubutton', function() {
$.menu();
}, false);
});
})(mui, window);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
/*!
* =====================================================
* Mui v0.5.7 (https://github.com/dcloudio/mui)
* Mui v0.5.8 (https://github.com/dcloudio/mui)
* =====================================================
*/
/*!
......@@ -3604,14 +3604,17 @@ Handlebars.registerPartial("tableviewcell", Handlebars.template({"1":function(de
var element = null;
while (!!(element = div.firstElementChild)) {
this.parentNode.insertBefore(element, this);
}
this.parentNode.removeChild(this);
if (oldPlugin) {
if (name === 'slider' && element.querySelector('.mui-slider-group')) {
$.ready(function() {
oldPluginApi = oldPlugin.call($(element), opts);
});
}
}
}
this.parentNode.removeChild(this);
}
});
if (opts.output === false) {
return html;
......
/*!
* =====================================================
* Mui v0.5.7 (https://github.com/dcloudio/mui)
* Mui v0.5.8 (https://github.com/dcloudio/mui)
* =====================================================
*/
!function(a,b){"function"==typeof define&&define.amd?define([],b):"object"==typeof exports?module.exports=b():a.Handlebars=a.Handlebars||b()}(this,function(){var a=function(){"use strict";function a(a){this.string=a}var b;return a.prototype.toString=function(){return""+this.string},b=a}(),b=function(a){"use strict";function b(a){return i[a]}function c(a){for(var b=1;b<arguments.length;b++)for(var c in arguments[b])Object.prototype.hasOwnProperty.call(arguments[b],c)&&(a[c]=arguments[b][c]);return a}function d(a){return a instanceof h?a.toString():null==a?"":a?(a=""+a,k.test(a)?a.replace(j,b):a):a+""}function e(a){return a||0===a?n(a)&&0===a.length?!0:!1:!0}function f(a,b){return(a?a+".":"")+b}var g={},h=a,i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},j=/[&<>"'`]/g,k=/[&<>"'`]/;g.extend=c;var l=Object.prototype.toString;g.toString=l;var m=function(a){return"function"==typeof a};m(/x/)&&(m=function(a){return"function"==typeof a&&"[object Function]"===l.call(a)});var m;g.isFunction=m;var n=Array.isArray||function(a){return a&&"object"==typeof a?"[object Array]"===l.call(a):!1};return g.isArray=n,g.escapeExpression=d,g.isEmpty=e,g.appendContextPath=f,g}(a),c=function(){"use strict";function a(a,b){var d;b&&b.firstLine&&(d=b.firstLine,a+=" - "+d+":"+b.firstColumn);for(var e=Error.prototype.constructor.call(this,a),f=0;f<c.length;f++)this[c[f]]=e[c[f]];d&&(this.lineNumber=d,this.column=b.firstColumn)}var b,c=["description","fileName","lineNumber","message","name","number","stack"];return a.prototype=new Error,b=a}(),d=function(a,b){"use strict";function c(a,b){this.helpers=a||{},this.partials=b||{},d(this)}function d(a){a.registerHelper("helperMissing",function(){if(1===arguments.length)return void 0;throw new g("Missing helper: '"+arguments[arguments.length-1].name+"'")}),a.registerHelper("blockHelperMissing",function(b,c){var d=c.inverse,e=c.fn;if(b===!0)return e(this);if(b===!1||null==b)return d(this);if(k(b))return b.length>0?(c.ids&&(c.ids=[c.name]),a.helpers.each(b,c)):d(this);if(c.data&&c.ids){var g=q(c.data);g.contextPath=f.appendContextPath(c.data.contextPath,c.name),c={data:g}}return e(b,c)}),a.registerHelper("each",function(a,b){if(!b)throw new g("Must pass iterator to #each");var c,d,e=b.fn,h=b.inverse,i=0,j="";if(b.data&&b.ids&&(d=f.appendContextPath(b.data.contextPath,b.ids[0])+"."),l(a)&&(a=a.call(this)),b.data&&(c=q(b.data)),a&&"object"==typeof a)if(k(a))for(var m=a.length;m>i;i++)c&&(c.index=i,c.first=0===i,c.last=i===a.length-1,d&&(c.contextPath=d+i)),j+=e(a[i],{data:c});else for(var n in a)a.hasOwnProperty(n)&&(c&&(c.key=n,c.index=i,c.first=0===i,d&&(c.contextPath=d+n)),j+=e(a[n],{data:c}),i++);return 0===i&&(j=h(this)),j}),a.registerHelper("if",function(a,b){return l(a)&&(a=a.call(this)),!b.hash.includeZero&&!a||f.isEmpty(a)?b.inverse(this):b.fn(this)}),a.registerHelper("unless",function(b,c){return a.helpers["if"].call(this,b,{fn:c.inverse,inverse:c.fn,hash:c.hash})}),a.registerHelper("with",function(a,b){l(a)&&(a=a.call(this));var c=b.fn;if(f.isEmpty(a))return b.inverse(this);if(b.data&&b.ids){var d=q(b.data);d.contextPath=f.appendContextPath(b.data.contextPath,b.ids[0]),b={data:d}}return c(a,b)}),a.registerHelper("log",function(b,c){var d=c.data&&null!=c.data.level?parseInt(c.data.level,10):1;a.log(d,b)}),a.registerHelper("lookup",function(a,b){return a&&a[b]})}var e={},f=a,g=b,h="2.0.0";e.VERSION=h;var i=6;e.COMPILER_REVISION=i;var j={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1"};e.REVISION_CHANGES=j;var k=f.isArray,l=f.isFunction,m=f.toString,n="[object Object]";e.HandlebarsEnvironment=c,c.prototype={constructor:c,logger:o,log:p,registerHelper:function(a,b){if(m.call(a)===n){if(b)throw new g("Arg not supported with multiple helpers");f.extend(this.helpers,a)}else this.helpers[a]=b},unregisterHelper:function(a){delete this.helpers[a]},registerPartial:function(a,b){m.call(a)===n?f.extend(this.partials,a):this.partials[a]=b},unregisterPartial:function(a){delete this.partials[a]}};var o={methodMap:{0:"debug",1:"info",2:"warn",3:"error"},DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(a,b){if(o.level<=a){var c=o.methodMap[a];"undefined"!=typeof console&&console[c]&&console[c].call(console,b)}}};e.logger=o;var p=o.log;e.log=p;var q=function(a){var b=f.extend({},a);return b._parent=a,b};return e.createFrame=q,e}(b,c),e=function(a,b,c){"use strict";function d(a){var b=a&&a[0]||1,c=m;if(b!==c){if(c>b){var d=n[c],e=n[b];throw new l("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+d+") or downgrade your runtime to an older version ("+e+").")}throw new l("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+a[1]+").")}}function e(a,b){if(!b)throw new l("No environment passed to template");if(!a||!a.main)throw new l("Unknown template object: "+typeof a);b.VM.checkRevision(a.compiler);var c=function(c,d,e,f,g,h,i,j,m){g&&(f=k.extend({},f,g));var n=b.VM.invokePartial.call(this,c,e,f,h,i,j,m);if(null==n&&b.compile){var o={helpers:h,partials:i,data:j,depths:m};i[e]=b.compile(c,{data:void 0!==j,compat:a.compat},b),n=i[e](f,o)}if(null!=n){if(d){for(var p=n.split("\n"),q=0,r=p.length;r>q&&(p[q]||q+1!==r);q++)p[q]=d+p[q];n=p.join("\n")}return n}throw new l("The partial "+e+" could not be compiled when running in runtime-only mode")},d={lookup:function(a,b){for(var c=a.length,d=0;c>d;d++)if(a[d]&&null!=a[d][b])return a[d][b]},lambda:function(a,b){return"function"==typeof a?a.call(b):a},escapeExpression:k.escapeExpression,invokePartial:c,fn:function(b){return a[b]},programs:[],program:function(a,b,c){var d=this.programs[a],e=this.fn(a);return b||c?d=f(this,a,e,b,c):d||(d=this.programs[a]=f(this,a,e)),d},data:function(a,b){for(;a&&b--;)a=a._parent;return a},merge:function(a,b){var c=a||b;return a&&b&&a!==b&&(c=k.extend({},b,a)),c},noop:b.VM.noop,compilerInfo:a.compiler},e=function(b,c){c=c||{};var f=c.data;e._setup(c),!c.partial&&a.useData&&(f=i(b,f));var g;return a.useDepths&&(g=c.depths?[b].concat(c.depths):[b]),a.main.call(d,b,d.helpers,d.partials,f,g)};return e.isTop=!0,e._setup=function(c){c.partial?(d.helpers=c.helpers,d.partials=c.partials):(d.helpers=d.merge(c.helpers,b.helpers),a.usePartial&&(d.partials=d.merge(c.partials,b.partials)))},e._child=function(b,c,e){if(a.useDepths&&!e)throw new l("must pass parent depths");return f(d,b,a[b],c,e)},e}function f(a,b,c,d,e){var f=function(b,f){return f=f||{},c.call(a,b,a.helpers,a.partials,f.data||d,e&&[b].concat(e))};return f.program=b,f.depth=e?e.length:0,f}function g(a,b,c,d,e,f,g){var h={partial:!0,helpers:d,partials:e,data:f,depths:g};if(void 0===a)throw new l("The partial "+b+" could not be found");return a instanceof Function?a(c,h):void 0}function h(){return""}function i(a,b){return b&&"root"in b||(b=b?o(b):{},b.root=a),b}var j={},k=a,l=b,m=c.COMPILER_REVISION,n=c.REVISION_CHANGES,o=c.createFrame;return j.checkRevision=d,j.template=e,j.program=f,j.invokePartial=g,j.noop=h,j}(b,c,d),f=function(a,b,c,d,e){"use strict";var f,g=a,h=b,i=c,j=d,k=e,l=function(){var a=new g.HandlebarsEnvironment;return j.extend(a,g),a.SafeString=h,a.Exception=i,a.Utils=j,a.escapeExpression=j.escapeExpression,a.VM=k,a.template=function(b){return k.template(b,a)},a},m=l();return m.create=l,m["default"]=m,f=m}(d,a,c,b,e),g=function(a){"use strict";function b(a){a=a||{},this.firstLine=a.first_line,this.firstColumn=a.first_column,this.lastColumn=a.last_column,this.lastLine=a.last_line}var c,d=a,e={ProgramNode:function(a,c,d){b.call(this,d),this.type="program",this.statements=a,this.strip=c},MustacheNode:function(a,c,d,f,g){if(b.call(this,g),this.type="mustache",this.strip=f,null!=d&&d.charAt){var h=d.charAt(3)||d.charAt(2);this.escaped="{"!==h&&"&"!==h}else this.escaped=!!d;this.sexpr=a instanceof e.SexprNode?a:new e.SexprNode(a,c),this.id=this.sexpr.id,this.params=this.sexpr.params,this.hash=this.sexpr.hash,this.eligibleHelper=this.sexpr.eligibleHelper,this.isHelper=this.sexpr.isHelper},SexprNode:function(a,c,d){b.call(this,d),this.type="sexpr",this.hash=c;var e=this.id=a[0],f=this.params=a.slice(1);this.isHelper=!(!f.length&&!c),this.eligibleHelper=this.isHelper||e.isSimple},PartialNode:function(a,c,d,e,f){b.call(this,f),this.type="partial",this.partialName=a,this.context=c,this.hash=d,this.strip=e,this.strip.inlineStandalone=!0},BlockNode:function(a,c,d,e,f){b.call(this,f),this.type="block",this.mustache=a,this.program=c,this.inverse=d,this.strip=e,d&&!c&&(this.isInverse=!0)},RawBlockNode:function(a,c,f,g){if(b.call(this,g),a.sexpr.id.original!==f)throw new d(a.sexpr.id.original+" doesn't match "+f,this);c=new e.ContentNode(c,g),this.type="block",this.mustache=a,this.program=new e.ProgramNode([c],{},g)},ContentNode:function(a,c){b.call(this,c),this.type="content",this.original=this.string=a},HashNode:function(a,c){b.call(this,c),this.type="hash",this.pairs=a},IdNode:function(a,c){b.call(this,c),this.type="ID";for(var e="",f=[],g=0,h="",i=0,j=a.length;j>i;i++){var k=a[i].part;if(e+=(a[i].separator||"")+k,".."===k||"."===k||"this"===k){if(f.length>0)throw new d("Invalid path: "+e,this);".."===k?(g++,h+="../"):this.isScoped=!0}else f.push(k)}this.original=e,this.parts=f,this.string=f.join("."),this.depth=g,this.idName=h+this.string,this.isSimple=1===a.length&&!this.isScoped&&0===g,this.stringModeValue=this.string},PartialNameNode:function(a,c){b.call(this,c),this.type="PARTIAL_NAME",this.name=a.original},DataNode:function(a,c){b.call(this,c),this.type="DATA",this.id=a,this.stringModeValue=a.stringModeValue,this.idName="@"+a.stringModeValue},StringNode:function(a,c){b.call(this,c),this.type="STRING",this.original=this.string=this.stringModeValue=a},NumberNode:function(a,c){b.call(this,c),this.type="NUMBER",this.original=this.number=a,this.stringModeValue=Number(a)},BooleanNode:function(a,c){b.call(this,c),this.type="BOOLEAN",this.bool=a,this.stringModeValue="true"===a},CommentNode:function(a,c){b.call(this,c),this.type="comment",this.comment=a,this.strip={inlineStandalone:!0}}};return c=e}(c),h=function(){"use strict";var a,b=function(){function a(){this.yy={}}var b={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,CONTENT:12,COMMENT:13,openRawBlock:14,END_RAW_BLOCK:15,OPEN_RAW_BLOCK:16,sexpr:17,CLOSE_RAW_BLOCK:18,openBlock:19,block_option0:20,closeBlock:21,openInverse:22,block_option1:23,OPEN_BLOCK:24,CLOSE:25,OPEN_INVERSE:26,inverseAndProgram:27,INVERSE:28,OPEN_ENDBLOCK:29,path:30,OPEN:31,OPEN_UNESCAPED:32,CLOSE_UNESCAPED:33,OPEN_PARTIAL:34,partialName:35,param:36,partial_option0:37,partial_option1:38,sexpr_repetition0:39,sexpr_option0:40,dataName:41,STRING:42,NUMBER:43,BOOLEAN:44,OPEN_SEXPR:45,CLOSE_SEXPR:46,hash:47,hash_repetition_plus0:48,hashSegment:49,ID:50,EQUALS:51,DATA:52,pathSegments:53,SEP:54,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",12:"CONTENT",13:"COMMENT",15:"END_RAW_BLOCK",16:"OPEN_RAW_BLOCK",18:"CLOSE_RAW_BLOCK",24:"OPEN_BLOCK",25:"CLOSE",26:"OPEN_INVERSE",28:"INVERSE",29:"OPEN_ENDBLOCK",31:"OPEN",32:"OPEN_UNESCAPED",33:"CLOSE_UNESCAPED",34:"OPEN_PARTIAL",42:"STRING",43:"NUMBER",44:"BOOLEAN",45:"OPEN_SEXPR",46:"CLOSE_SEXPR",50:"ID",51:"EQUALS",52:"DATA",54:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[10,3],[14,3],[9,4],[9,4],[19,3],[22,3],[27,2],[21,3],[8,3],[8,3],[11,5],[11,4],[17,3],[17,1],[36,1],[36,1],[36,1],[36,1],[36,1],[36,3],[47,1],[49,3],[35,1],[35,1],[35,1],[41,2],[30,1],[53,3],[53,1],[6,0],[6,2],[20,0],[20,1],[23,0],[23,1],[37,0],[37,1],[38,0],[38,1],[39,0],[39,2],[40,0],[40,1],[48,1],[48,2]],performAction:function(a,b,c,d,e,f){var g=f.length-1;switch(e){case 1:return d.prepareProgram(f[g-1].statements,!0),f[g-1];case 2:this.$=new d.ProgramNode(d.prepareProgram(f[g]),{},this._$);break;case 3:this.$=f[g];break;case 4:this.$=f[g];break;case 5:this.$=f[g];break;case 6:this.$=f[g];break;case 7:this.$=new d.ContentNode(f[g],this._$);break;case 8:this.$=new d.CommentNode(f[g],this._$);break;case 9:this.$=new d.RawBlockNode(f[g-2],f[g-1],f[g],this._$);break;case 10:this.$=new d.MustacheNode(f[g-1],null,"","",this._$);break;case 11:this.$=d.prepareBlock(f[g-3],f[g-2],f[g-1],f[g],!1,this._$);break;case 12:this.$=d.prepareBlock(f[g-3],f[g-2],f[g-1],f[g],!0,this._$);break;case 13:this.$=new d.MustacheNode(f[g-1],null,f[g-2],d.stripFlags(f[g-2],f[g]),this._$);break;case 14:this.$=new d.MustacheNode(f[g-1],null,f[g-2],d.stripFlags(f[g-2],f[g]),this._$);break;case 15:this.$={strip:d.stripFlags(f[g-1],f[g-1]),program:f[g]};break;case 16:this.$={path:f[g-1],strip:d.stripFlags(f[g-2],f[g])};break;case 17:this.$=new d.MustacheNode(f[g-1],null,f[g-2],d.stripFlags(f[g-2],f[g]),this._$);break;case 18:this.$=new d.MustacheNode(f[g-1],null,f[g-2],d.stripFlags(f[g-2],f[g]),this._$);break;case 19:this.$=new d.PartialNode(f[g-3],f[g-2],f[g-1],d.stripFlags(f[g-4],f[g]),this._$);break;case 20:this.$=new d.PartialNode(f[g-2],void 0,f[g-1],d.stripFlags(f[g-3],f[g]),this._$);break;case 21:this.$=new d.SexprNode([f[g-2]].concat(f[g-1]),f[g],this._$);break;case 22:this.$=new d.SexprNode([f[g]],null,this._$);break;case 23:this.$=f[g];break;case 24:this.$=new d.StringNode(f[g],this._$);break;case 25:this.$=new d.NumberNode(f[g],this._$);break;case 26:this.$=new d.BooleanNode(f[g],this._$);break;case 27:this.$=f[g];break;case 28:f[g-1].isHelper=!0,this.$=f[g-1];break;case 29:this.$=new d.HashNode(f[g],this._$);break;case 30:this.$=[f[g-2],f[g]];break;case 31:this.$=new d.PartialNameNode(f[g],this._$);break;case 32:this.$=new d.PartialNameNode(new d.StringNode(f[g],this._$),this._$);break;case 33:this.$=new d.PartialNameNode(new d.NumberNode(f[g],this._$));break;case 34:this.$=new d.DataNode(f[g],this._$);break;case 35:this.$=new d.IdNode(f[g],this._$);break;case 36:f[g-2].push({part:f[g],separator:f[g-1]}),this.$=f[g-2];break;case 37:this.$=[{part:f[g]}];break;case 38:this.$=[];break;case 39:f[g-1].push(f[g]);break;case 48:this.$=[];break;case 49:f[g-1].push(f[g]);break;case 52:this.$=[f[g]];break;case 53:f[g-1].push(f[g])}},table:[{3:1,4:2,5:[2,38],6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],31:[2,38],32:[2,38],34:[2,38]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:[1,10],13:[1,11],14:16,16:[1,20],19:14,22:15,24:[1,18],26:[1,19],28:[2,2],29:[2,2],31:[1,12],32:[1,13],34:[1,17]},{1:[2,1]},{5:[2,39],12:[2,39],13:[2,39],16:[2,39],24:[2,39],26:[2,39],28:[2,39],29:[2,39],31:[2,39],32:[2,39],34:[2,39]},{5:[2,3],12:[2,3],13:[2,3],16:[2,3],24:[2,3],26:[2,3],28:[2,3],29:[2,3],31:[2,3],32:[2,3],34:[2,3]},{5:[2,4],12:[2,4],13:[2,4],16:[2,4],24:[2,4],26:[2,4],28:[2,4],29:[2,4],31:[2,4],32:[2,4],34:[2,4]},{5:[2,5],12:[2,5],13:[2,5],16:[2,5],24:[2,5],26:[2,5],28:[2,5],29:[2,5],31:[2,5],32:[2,5],34:[2,5]},{5:[2,6],12:[2,6],13:[2,6],16:[2,6],24:[2,6],26:[2,6],28:[2,6],29:[2,6],31:[2,6],32:[2,6],34:[2,6]},{5:[2,7],12:[2,7],13:[2,7],16:[2,7],24:[2,7],26:[2,7],28:[2,7],29:[2,7],31:[2,7],32:[2,7],34:[2,7]},{5:[2,8],12:[2,8],13:[2,8],16:[2,8],24:[2,8],26:[2,8],28:[2,8],29:[2,8],31:[2,8],32:[2,8],34:[2,8]},{17:21,30:22,41:23,50:[1,26],52:[1,25],53:24},{17:27,30:22,41:23,50:[1,26],52:[1,25],53:24},{4:28,6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],28:[2,38],29:[2,38],31:[2,38],32:[2,38],34:[2,38]},{4:29,6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],28:[2,38],29:[2,38],31:[2,38],32:[2,38],34:[2,38]},{12:[1,30]},{30:32,35:31,42:[1,33],43:[1,34],50:[1,26],53:24},{17:35,30:22,41:23,50:[1,26],52:[1,25],53:24},{17:36,30:22,41:23,50:[1,26],52:[1,25],53:24},{17:37,30:22,41:23,50:[1,26],52:[1,25],53:24},{25:[1,38]},{18:[2,48],25:[2,48],33:[2,48],39:39,42:[2,48],43:[2,48],44:[2,48],45:[2,48],46:[2,48],50:[2,48],52:[2,48]},{18:[2,22],25:[2,22],33:[2,22],46:[2,22]},{18:[2,35],25:[2,35],33:[2,35],42:[2,35],43:[2,35],44:[2,35],45:[2,35],46:[2,35],50:[2,35],52:[2,35],54:[1,40]},{30:41,50:[1,26],53:24},{18:[2,37],25:[2,37],33:[2,37],42:[2,37],43:[2,37],44:[2,37],45:[2,37],46:[2,37],50:[2,37],52:[2,37],54:[2,37]},{33:[1,42]},{20:43,27:44,28:[1,45],29:[2,40]},{23:46,27:47,28:[1,45],29:[2,42]},{15:[1,48]},{25:[2,46],30:51,36:49,38:50,41:55,42:[1,52],43:[1,53],44:[1,54],45:[1,56],47:57,48:58,49:60,50:[1,59],52:[1,25],53:24},{25:[2,31],42:[2,31],43:[2,31],44:[2,31],45:[2,31],50:[2,31],52:[2,31]},{25:[2,32],42:[2,32],43:[2,32],44:[2,32],45:[2,32],50:[2,32],52:[2,32]},{25:[2,33],42:[2,33],43:[2,33],44:[2,33],45:[2,33],50:[2,33],52:[2,33]},{25:[1,61]},{25:[1,62]},{18:[1,63]},{5:[2,17],12:[2,17],13:[2,17],16:[2,17],24:[2,17],26:[2,17],28:[2,17],29:[2,17],31:[2,17],32:[2,17],34:[2,17]},{18:[2,50],25:[2,50],30:51,33:[2,50],36:65,40:64,41:55,42:[1,52],43:[1,53],44:[1,54],45:[1,56],46:[2,50],47:66,48:58,49:60,50:[1,59],52:[1,25],53:24},{50:[1,67]},{18:[2,34],25:[2,34],33:[2,34],42:[2,34],43:[2,34],44:[2,34],45:[2,34],46:[2,34],50:[2,34],52:[2,34]},{5:[2,18],12:[2,18],13:[2,18],16:[2,18],24:[2,18],26:[2,18],28:[2,18],29:[2,18],31:[2,18],32:[2,18],34:[2,18]},{21:68,29:[1,69]},{29:[2,41]},{4:70,6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],29:[2,38],31:[2,38],32:[2,38],34:[2,38]},{21:71,29:[1,69]},{29:[2,43]},{5:[2,9],12:[2,9],13:[2,9],16:[2,9],24:[2,9],26:[2,9],28:[2,9],29:[2,9],31:[2,9],32:[2,9],34:[2,9]},{25:[2,44],37:72,47:73,48:58,49:60,50:[1,74]},{25:[1,75]},{18:[2,23],25:[2,23],33:[2,23],42:[2,23],43:[2,23],44:[2,23],45:[2,23],46:[2,23],50:[2,23],52:[2,23]},{18:[2,24],25:[2,24],33:[2,24],42:[2,24],43:[2,24],44:[2,24],45:[2,24],46:[2,24],50:[2,24],52:[2,24]},{18:[2,25],25:[2,25],33:[2,25],42:[2,25],43:[2,25],44:[2,25],45:[2,25],46:[2,25],50:[2,25],52:[2,25]},{18:[2,26],25:[2,26],33:[2,26],42:[2,26],43:[2,26],44:[2,26],45:[2,26],46:[2,26],50:[2,26],52:[2,26]},{18:[2,27],25:[2,27],33:[2,27],42:[2,27],43:[2,27],44:[2,27],45:[2,27],46:[2,27],50:[2,27],52:[2,27]},{17:76,30:22,41:23,50:[1,26],52:[1,25],53:24},{25:[2,47]},{18:[2,29],25:[2,29],33:[2,29],46:[2,29],49:77,50:[1,74]},{18:[2,37],25:[2,37],33:[2,37],42:[2,37],43:[2,37],44:[2,37],45:[2,37],46:[2,37],50:[2,37],51:[1,78],52:[2,37],54:[2,37]},{18:[2,52],25:[2,52],33:[2,52],46:[2,52],50:[2,52]},{12:[2,13],13:[2,13],16:[2,13],24:[2,13],26:[2,13],28:[2,13],29:[2,13],31:[2,13],32:[2,13],34:[2,13]},{12:[2,14],13:[2,14],16:[2,14],24:[2,14],26:[2,14],28:[2,14],29:[2,14],31:[2,14],32:[2,14],34:[2,14]},{12:[2,10]},{18:[2,21],25:[2,21],33:[2,21],46:[2,21]},{18:[2,49],25:[2,49],33:[2,49],42:[2,49],43:[2,49],44:[2,49],45:[2,49],46:[2,49],50:[2,49],52:[2,49]},{18:[2,51],25:[2,51],33:[2,51],46:[2,51]},{18:[2,36],25:[2,36],33:[2,36],42:[2,36],43:[2,36],44:[2,36],45:[2,36],46:[2,36],50:[2,36],52:[2,36],54:[2,36]},{5:[2,11],12:[2,11],13:[2,11],16:[2,11],24:[2,11],26:[2,11],28:[2,11],29:[2,11],31:[2,11],32:[2,11],34:[2,11]},{30:79,50:[1,26],53:24},{29:[2,15]},{5:[2,12],12:[2,12],13:[2,12],16:[2,12],24:[2,12],26:[2,12],28:[2,12],29:[2,12],31:[2,12],32:[2,12],34:[2,12]},{25:[1,80]},{25:[2,45]},{51:[1,78]},{5:[2,20],12:[2,20],13:[2,20],16:[2,20],24:[2,20],26:[2,20],28:[2,20],29:[2,20],31:[2,20],32:[2,20],34:[2,20]},{46:[1,81]},{18:[2,53],25:[2,53],33:[2,53],46:[2,53],50:[2,53]},{30:51,36:82,41:55,42:[1,52],43:[1,53],44:[1,54],45:[1,56],50:[1,26],52:[1,25],53:24},{25:[1,83]},{5:[2,19],12:[2,19],13:[2,19],16:[2,19],24:[2,19],26:[2,19],28:[2,19],29:[2,19],31:[2,19],32:[2,19],34:[2,19]},{18:[2,28],25:[2,28],33:[2,28],42:[2,28],43:[2,28],44:[2,28],45:[2,28],46:[2,28],50:[2,28],52:[2,28]},{18:[2,30],25:[2,30],33:[2,30],46:[2,30],50:[2,30]},{5:[2,16],12:[2,16],13:[2,16],16:[2,16],24:[2,16],26:[2,16],28:[2,16],29:[2,16],31:[2,16],32:[2,16],34:[2,16]}],defaultActions:{4:[2,1],44:[2,41],47:[2,43],57:[2,47],63:[2,10],70:[2,15],73:[2,45]},parseError:function(a){throw new Error(a)},parse:function(a){function b(){var a;return a=c.lexer.lex()||1,"number"!=typeof a&&(a=c.symbols_[a]||a),a}var c=this,d=[0],e=[null],f=[],g=this.table,h="",i=0,j=0,k=0;this.lexer.setInput(a),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,"undefined"==typeof this.lexer.yylloc&&(this.lexer.yylloc={});var l=this.lexer.yylloc;f.push(l);var m=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var n,o,p,q,r,s,t,u,v,w={};;){if(p=d[d.length-1],this.defaultActions[p]?q=this.defaultActions[p]:((null===n||"undefined"==typeof n)&&(n=b()),q=g[p]&&g[p][n]),"undefined"==typeof q||!q.length||!q[0]){var x="";if(!k){v=[];for(s in g[p])this.terminals_[s]&&s>2&&v.push("'"+this.terminals_[s]+"'");x=this.lexer.showPosition?"Parse error on line "+(i+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+v.join(", ")+", got '"+(this.terminals_[n]||n)+"'":"Parse error on line "+(i+1)+": Unexpected "+(1==n?"end of input":"'"+(this.terminals_[n]||n)+"'"),this.parseError(x,{text:this.lexer.match,token:this.terminals_[n]||n,line:this.lexer.yylineno,loc:l,expected:v})}}if(q[0]instanceof Array&&q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+p+", token: "+n);switch(q[0]){case 1:d.push(n),e.push(this.lexer.yytext),f.push(this.lexer.yylloc),d.push(q[1]),n=null,o?(n=o,o=null):(j=this.lexer.yyleng,h=this.lexer.yytext,i=this.lexer.yylineno,l=this.lexer.yylloc,k>0&&k--);break;case 2:if(t=this.productions_[q[1]][1],w.$=e[e.length-t],w._$={first_line:f[f.length-(t||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(t||1)].first_column,last_column:f[f.length-1].last_column},m&&(w._$.range=[f[f.length-(t||1)].range[0],f[f.length-1].range[1]]),r=this.performAction.call(w,h,j,i,this.yy,q[1],e,f),"undefined"!=typeof r)return r;t&&(d=d.slice(0,-1*t*2),e=e.slice(0,-1*t),f=f.slice(0,-1*t)),d.push(this.productions_[q[1]][0]),e.push(w.$),f.push(w._$),u=g[d[d.length-2]][d[d.length-1]],d.push(u);break;case 3:return!0}}return!0}},c=function(){var a={EOF:1,parseError:function(a,b){if(!this.yy.parser)throw new Error(a);this.yy.parser.parseError(a,b)},setInput:function(a){return this._input=a,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var b=a.match(/(?:\r\n?|\n).*/g);return b?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b-1),this.offset-=b;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this},more:function(){return this._more=!0,this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),b=new Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,b,c,d,e;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),g=0;g<f.length&&(c=this._input.match(this.rules[f[g]]),!c||b&&!(c[0].length>b[0].length)||(b=c,d=g,this.options.flex));g++);return b?(e=b[0].match(/(?:\r\n?|\n).*/g),e&&(this.yylineno+=e.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:e?e[e.length-1].length-e[e.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(b[0].length),this.matched+=b[0],a=this.performAction.call(this,this.yy,this,f[d],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a?a:void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return"undefined"!=typeof a?a:this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(a){this.begin(a)}};return a.options={},a.performAction=function(a,b,c,d){function e(a,c){return b.yytext=b.yytext.substr(a,b.yyleng-c)}switch(c){case 0:if("\\\\"===b.yytext.slice(-2)?(e(0,1),this.begin("mu")):"\\"===b.yytext.slice(-1)?(e(0,1),this.begin("emu")):this.begin("mu"),b.yytext)return 12;break;case 1:return 12;case 2:return this.popState(),12;case 3:return b.yytext=b.yytext.substr(5,b.yyleng-9),this.popState(),15;case 4:return 12;case 5:return e(0,4),this.popState(),13;case 6:return 45;case 7:return 46;case 8:return 16;case 9:return this.popState(),this.begin("raw"),18;case 10:return 34;case 11:return 24;case 12:return 29;case 13:return this.popState(),28;case 14:return this.popState(),28;case 15:return 26;case 16:return 26;case 17:return 32;case 18:return 31;case 19:this.popState(),this.begin("com");break;case 20:return e(3,5),this.popState(),13;case 21:return 31;case 22:return 51;case 23:return 50;case 24:return 50;case 25:return 54;case 26:break;case 27:return this.popState(),33;case 28:return this.popState(),25;case 29:return b.yytext=e(1,2).replace(/\\"/g,'"'),42;case 30:return b.yytext=e(1,2).replace(/\\'/g,"'"),42;case 31:return 52;case 32:return 44;case 33:return 44;case 34:return 43;case 35:return 50;case 36:return b.yytext=e(1,2),50;case 37:return"INVALID";case 38:return 5}},a.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]*?(?=(\{\{\{\{\/)))/,/^(?:[\s\S]*?--\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{!--)/,/^(?:\{\{![\s\S]*?\}\})/,/^(?:\{\{(~)?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)]))))/,/^(?:\[[^\]]*\])/,/^(?:.)/,/^(?:$)/],a.conditions={mu:{rules:[6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[5],inclusive:!1},raw:{rules:[3,4],inclusive:!1},INITIAL:{rules:[0,1,38],inclusive:!0}},a}();return b.lexer=c,a.prototype=b,b.Parser=a,new a}();return a=b}(),i=function(a){"use strict";function b(a,b){return{left:"~"===a.charAt(2),right:"~"===b.charAt(b.length-3)}}function c(a,b,c,d,i,k){if(a.sexpr.id.original!==d.path.original)throw new j(a.sexpr.id.original+" doesn't match "+d.path.original,a);var l=c&&c.program,m={left:a.strip.left,right:d.strip.right,openStandalone:f(b.statements),closeStandalone:e((l||b).statements)};if(a.strip.right&&g(b.statements,null,!0),l){var n=c.strip;n.left&&h(b.statements,null,!0),n.right&&g(l.statements,null,!0),d.strip.left&&h(l.statements,null,!0),e(b.statements)&&f(l.statements)&&(h(b.statements),g(l.statements))}else d.strip.left&&h(b.statements,null,!0);return i?new this.BlockNode(a,l,b,m,k):new this.BlockNode(a,b,l,m,k)}function d(a,b){for(var c=0,d=a.length;d>c;c++){var i=a[c],j=i.strip;if(j){var k=e(a,c,b,"partial"===i.type),l=f(a,c,b),m=j.openStandalone&&k,n=j.closeStandalone&&l,o=j.inlineStandalone&&k&&l;j.right&&g(a,c,!0),j.left&&h(a,c,!0),o&&(g(a,c),h(a,c)&&"partial"===i.type&&(i.indent=/([ \t]+$)/.exec(a[c-1].original)?RegExp.$1:"")),m&&(g((i.program||i.inverse).statements),h(a,c)),n&&(g(a,c),h((i.inverse||i.program).statements))}}return a}function e(a,b,c){void 0===b&&(b=a.length);var d=a[b-1],e=a[b-2];return d?"content"===d.type?(e||!c?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(d.original):void 0:c}function f(a,b,c){void 0===b&&(b=-1);var d=a[b+1],e=a[b+2];return d?"content"===d.type?(e||!c?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(d.original):void 0:c}function g(a,b,c){var d=a[null==b?0:b+1];if(d&&"content"===d.type&&(c||!d.rightStripped)){var e=d.string;d.string=d.string.replace(c?/^\s+/:/^[ \t]*\r?\n?/,""),d.rightStripped=d.string!==e}}function h(a,b,c){var d=a[null==b?a.length-1:b-1];if(d&&"content"===d.type&&(c||!d.leftStripped)){var e=d.string;return d.string=d.string.replace(c?/\s+$/:/[ \t]+$/,""),d.leftStripped=d.string!==e,d.leftStripped}}var i={},j=a;return i.stripFlags=b,i.prepareBlock=c,i.prepareProgram=d,i}(c),j=function(a,b,c,d){"use strict";function e(a){return a.constructor===h.ProgramNode?a:(g.yy=k,g.parse(a))}var f={},g=a,h=b,i=c,j=d.extend;f.parser=g;var k={};return j(k,i,h),f.parse=e,f}(h,g,i,b),k=function(a,b){"use strict";function c(){}function d(a,b,c){if(null==a||"string"!=typeof a&&a.constructor!==c.AST.ProgramNode)throw new h("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+a);b=b||{},"data"in b||(b.data=!0),b.compat&&(b.useDepths=!0);var d=c.parse(a),e=(new c.Compiler).compile(d,b);return(new c.JavaScriptCompiler).compile(e,b)}function e(a,b,c){function d(){var d=c.parse(a),e=(new c.Compiler).compile(d,b),f=(new c.JavaScriptCompiler).compile(e,b,void 0,!0);return c.template(f)}if(null==a||"string"!=typeof a&&a.constructor!==c.AST.ProgramNode)throw new h("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+a);b=b||{},"data"in b||(b.data=!0),b.compat&&(b.useDepths=!0);var e,f=function(a,b){return e||(e=d()),e.call(this,a,b)};return f._setup=function(a){return e||(e=d()),e._setup(a)},f._child=function(a,b,c){return e||(e=d()),e._child(a,b,c)},f}function f(a,b){if(a===b)return!0;if(i(a)&&i(b)&&a.length===b.length){for(var c=0;c<a.length;c++)if(!f(a[c],b[c]))return!1;return!0}}var g={},h=a,i=b.isArray,j=[].slice;return g.Compiler=c,c.prototype={compiler:c,equals:function(a){var b=this.opcodes.length;if(a.opcodes.length!==b)return!1;for(var c=0;b>c;c++){var d=this.opcodes[c],e=a.opcodes[c];if(d.opcode!==e.opcode||!f(d.args,e.args))return!1}for(b=this.children.length,c=0;b>c;c++)if(!this.children[c].equals(a.children[c]))return!1;return!0},guid:0,compile:function(a,b){this.opcodes=[],this.children=[],this.depths={list:[]},this.options=b,this.stringParams=b.stringParams,this.trackIds=b.trackIds;var c=this.options.knownHelpers;if(this.options.knownHelpers={helperMissing:!0,blockHelperMissing:!0,each:!0,"if":!0,unless:!0,"with":!0,log:!0,lookup:!0},c)for(var d in c)this.options.knownHelpers[d]=c[d];return this.accept(a)},accept:function(a){return this[a.type](a)},program:function(a){for(var b=a.statements,c=0,d=b.length;d>c;c++)this.accept(b[c]);return this.isSimple=1===d,this.depths.list=this.depths.list.sort(function(a,b){return a-b}),this},compileProgram:function(a){var b,c=(new this.compiler).compile(a,this.options),d=this.guid++;
this.usePartial=this.usePartial||c.usePartial,this.children[d]=c;for(var e=0,f=c.depths.list.length;f>e;e++)b=c.depths.list[e],2>b||this.addDepth(b-1);return d},block:function(a){var b=a.mustache,c=a.program,d=a.inverse;c&&(c=this.compileProgram(c)),d&&(d=this.compileProgram(d));var e=b.sexpr,f=this.classifySexpr(e);"helper"===f?this.helperSexpr(e,c,d):"simple"===f?(this.simpleSexpr(e),this.opcode("pushProgram",c),this.opcode("pushProgram",d),this.opcode("emptyHash"),this.opcode("blockValue",e.id.original)):(this.ambiguousSexpr(e,c,d),this.opcode("pushProgram",c),this.opcode("pushProgram",d),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},hash:function(a){var b,c,d=a.pairs;for(this.opcode("pushHash"),b=0,c=d.length;c>b;b++)this.pushParam(d[b][1]);for(;b--;)this.opcode("assignToHash",d[b][0]);this.opcode("popHash")},partial:function(a){var b=a.partialName;this.usePartial=!0,a.hash?this.accept(a.hash):this.opcode("push","undefined"),a.context?this.accept(a.context):(this.opcode("getContext",0),this.opcode("pushContext")),this.opcode("invokePartial",b.name,a.indent||""),this.opcode("append")},content:function(a){a.string&&this.opcode("appendContent",a.string)},mustache:function(a){this.sexpr(a.sexpr),this.opcode(a.escaped&&!this.options.noEscape?"appendEscaped":"append")},ambiguousSexpr:function(a,b,c){var d=a.id,e=d.parts[0],f=null!=b||null!=c;this.opcode("getContext",d.depth),this.opcode("pushProgram",b),this.opcode("pushProgram",c),this.ID(d),this.opcode("invokeAmbiguous",e,f)},simpleSexpr:function(a){var b=a.id;"DATA"===b.type?this.DATA(b):b.parts.length?this.ID(b):(this.addDepth(b.depth),this.opcode("getContext",b.depth),this.opcode("pushContext")),this.opcode("resolvePossibleLambda")},helperSexpr:function(a,b,c){var d=this.setupFullMustacheParams(a,b,c),e=a.id,f=e.parts[0];if(this.options.knownHelpers[f])this.opcode("invokeKnownHelper",d.length,f);else{if(this.options.knownHelpersOnly)throw new h("You specified knownHelpersOnly, but used the unknown helper "+f,a);e.falsy=!0,this.ID(e),this.opcode("invokeHelper",d.length,e.original,e.isSimple)}},sexpr:function(a){var b=this.classifySexpr(a);"simple"===b?this.simpleSexpr(a):"helper"===b?this.helperSexpr(a):this.ambiguousSexpr(a)},ID:function(a){this.addDepth(a.depth),this.opcode("getContext",a.depth);var b=a.parts[0];b?this.opcode("lookupOnContext",a.parts,a.falsy,a.isScoped):this.opcode("pushContext")},DATA:function(a){this.options.data=!0,this.opcode("lookupData",a.id.depth,a.id.parts)},STRING:function(a){this.opcode("pushString",a.string)},NUMBER:function(a){this.opcode("pushLiteral",a.number)},BOOLEAN:function(a){this.opcode("pushLiteral",a.bool)},comment:function(){},opcode:function(a){this.opcodes.push({opcode:a,args:j.call(arguments,1)})},addDepth:function(a){0!==a&&(this.depths[a]||(this.depths[a]=!0,this.depths.list.push(a)))},classifySexpr:function(a){var b=a.isHelper,c=a.eligibleHelper,d=this.options;if(c&&!b){var e=a.id.parts[0];d.knownHelpers[e]?b=!0:d.knownHelpersOnly&&(c=!1)}return b?"helper":c?"ambiguous":"simple"},pushParams:function(a){for(var b=0,c=a.length;c>b;b++)this.pushParam(a[b])},pushParam:function(a){this.stringParams?(a.depth&&this.addDepth(a.depth),this.opcode("getContext",a.depth||0),this.opcode("pushStringParam",a.stringModeValue,a.type),"sexpr"===a.type&&this.sexpr(a)):(this.trackIds&&this.opcode("pushId",a.type,a.idName||a.stringModeValue),this.accept(a))},setupFullMustacheParams:function(a,b,c){var d=a.params;return this.pushParams(d),this.opcode("pushProgram",b),this.opcode("pushProgram",c),a.hash?this.hash(a.hash):this.opcode("emptyHash"),d}},g.precompile=d,g.compile=e,g}(c,b),l=function(a,b){"use strict";function c(a){this.value=a}function d(){}var e,f=a.COMPILER_REVISION,g=a.REVISION_CHANGES,h=b;d.prototype={nameLookup:function(a,b){return d.isValidJavaScriptVariableName(b)?a+"."+b:a+"['"+b+"']"},depthedLookup:function(a){return this.aliases.lookup="this.lookup",'lookup(depths, "'+a+'")'},compilerInfo:function(){var a=f,b=g[a];return[a,b]},appendToBuffer:function(a){return this.environment.isSimple?"return "+a+";":{appendToBuffer:!0,content:a,toString:function(){return"buffer += "+a+";"}}},initializeBuffer:function(){return this.quotedString("")},namespace:"Handlebars",compile:function(a,b,c,d){this.environment=a,this.options=b,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!d,this.name=this.environment.name,this.isChild=!!c,this.context=c||{programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.compileChildren(a,b),this.useDepths=this.useDepths||a.depths.list.length||this.options.compat;var e,f,g,i=a.opcodes;for(f=0,g=i.length;g>f;f++)e=i[f],this[e.opcode].apply(this,e.args);if(this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new h("Compile completed with content left on stack");var j=this.createFunctionContext(d);if(this.isChild)return j;var k={compiler:this.compilerInfo(),main:j},l=this.context.programs;for(f=0,g=l.length;g>f;f++)l[f]&&(k[f]=l[f]);return this.environment.usePartial&&(k.usePartial=!0),this.options.data&&(k.useData=!0),this.useDepths&&(k.useDepths=!0),this.options.compat&&(k.compat=!0),d||(k.compiler=JSON.stringify(k.compiler),k=this.objectLiteral(k)),k},preamble:function(){this.lastContext=0,this.source=[]},createFunctionContext:function(a){var b="",c=this.stackVars.concat(this.registers.list);c.length>0&&(b+=", "+c.join(", "));for(var d in this.aliases)this.aliases.hasOwnProperty(d)&&(b+=", "+d+"="+this.aliases[d]);var e=["depth0","helpers","partials","data"];this.useDepths&&e.push("depths");var f=this.mergeSource(b);return a?(e.push(f),Function.apply(this,e)):"function("+e.join(",")+") {\n "+f+"}"},mergeSource:function(a){for(var b,c,d="",e=!this.forceBuffer,f=0,g=this.source.length;g>f;f++){var h=this.source[f];h.appendToBuffer?b=b?b+"\n + "+h.content:h.content:(b&&(d?d+="buffer += "+b+";\n ":(c=!0,d=b+";\n "),b=void 0),d+=h+"\n ",this.environment.isSimple||(e=!1))}return e?(b||!d)&&(d+="return "+(b||'""')+";\n"):(a+=", buffer = "+(c?"":this.initializeBuffer()),d+=b?"return buffer + "+b+";\n":"return buffer;\n"),a&&(d="var "+a.substring(2)+(c?"":";\n ")+d),d},blockValue:function(a){this.aliases.blockHelperMissing="helpers.blockHelperMissing";var b=[this.contextName(0)];this.setupParams(a,0,b);var c=this.popStack();b.splice(1,0,c),this.push("blockHelperMissing.call("+b.join(", ")+")")},ambiguousBlockValue:function(){this.aliases.blockHelperMissing="helpers.blockHelperMissing";var a=[this.contextName(0)];this.setupParams("",0,a,!0),this.flushInline();var b=this.topStack();a.splice(1,0,b),this.pushSource("if (!"+this.lastHelper+") { "+b+" = blockHelperMissing.call("+a.join(", ")+"); }")},appendContent:function(a){this.pendingContent&&(a=this.pendingContent+a),this.pendingContent=a},append:function(){this.flushInline();var a=this.popStack();this.pushSource("if ("+a+" != null) { "+this.appendToBuffer(a)+" }"),this.environment.isSimple&&this.pushSource("else { "+this.appendToBuffer("''")+" }")},appendEscaped:function(){this.aliases.escapeExpression="this.escapeExpression",this.pushSource(this.appendToBuffer("escapeExpression("+this.popStack()+")"))},getContext:function(a){this.lastContext=a},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(a,b,c){var d=0,e=a.length;for(c||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(a[d++]));e>d;d++)this.replaceStack(function(c){var e=this.nameLookup(c,a[d],"context");return b?" && "+e:" != null ? "+e+" : "+c})},lookupData:function(a,b){this.pushStackLiteral(a?"this.data(data, "+a+")":"data");for(var c=b.length,d=0;c>d;d++)this.replaceStack(function(a){return" && "+this.nameLookup(a,b[d],"data")})},resolvePossibleLambda:function(){this.aliases.lambda="this.lambda",this.push("lambda("+this.popStack()+", "+this.contextName(0)+")")},pushStringParam:function(a,b){this.pushContext(),this.pushString(b),"sexpr"!==b&&("string"==typeof a?this.pushString(a):this.pushStackLiteral(a))},emptyHash:function(){this.pushStackLiteral("{}"),this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}"))},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:[],types:[],contexts:[],ids:[]}},popHash:function(){var a=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push("{"+a.ids.join(",")+"}"),this.stringParams&&(this.push("{"+a.contexts.join(",")+"}"),this.push("{"+a.types.join(",")+"}")),this.push("{\n "+a.values.join(",\n ")+"\n }")},pushString:function(a){this.pushStackLiteral(this.quotedString(a))},push:function(a){return this.inlineStack.push(a),a},pushLiteral:function(a){this.pushStackLiteral(a)},pushProgram:function(a){this.pushStackLiteral(null!=a?this.programExpression(a):null)},invokeHelper:function(a,b,c){this.aliases.helperMissing="helpers.helperMissing";var d=this.popStack(),e=this.setupHelper(a,b),f=(c?e.name+" || ":"")+d+" || helperMissing";this.push("(("+f+").call("+e.callParams+"))")},invokeKnownHelper:function(a,b){var c=this.setupHelper(a,b);this.push(c.name+".call("+c.callParams+")")},invokeAmbiguous:function(a,b){this.aliases.functionType='"function"',this.aliases.helperMissing="helpers.helperMissing",this.useRegister("helper");var c=this.popStack();this.emptyHash();var d=this.setupHelper(0,a,b),e=this.lastHelper=this.nameLookup("helpers",a,"helper");this.push("((helper = (helper = "+e+" || "+c+") != null ? helper : helperMissing"+(d.paramsInit?"),("+d.paramsInit:"")+"),(typeof helper === functionType ? helper.call("+d.callParams+") : helper))")},invokePartial:function(a,b){var c=[this.nameLookup("partials",a,"partial"),"'"+b+"'","'"+a+"'",this.popStack(),this.popStack(),"helpers","partials"];this.options.data?c.push("data"):this.options.compat&&c.push("undefined"),this.options.compat&&c.push("depths"),this.push("this.invokePartial("+c.join(", ")+")")},assignToHash:function(a){var b,c,d,e=this.popStack();this.trackIds&&(d=this.popStack()),this.stringParams&&(c=this.popStack(),b=this.popStack());var f=this.hash;b&&f.contexts.push("'"+a+"': "+b),c&&f.types.push("'"+a+"': "+c),d&&f.ids.push("'"+a+"': "+d),f.values.push("'"+a+"': ("+e+")")},pushId:function(a,b){"ID"===a||"DATA"===a?this.pushString(b):this.pushStackLiteral("sexpr"===a?"true":"null")},compiler:d,compileChildren:function(a,b){for(var c,d,e=a.children,f=0,g=e.length;g>f;f++){c=e[f],d=new this.compiler;var h=this.matchExistingProgram(c);null==h?(this.context.programs.push(""),h=this.context.programs.length,c.index=h,c.name="program"+h,this.context.programs[h]=d.compile(c,b,this.context,!this.precompile),this.context.environments[h]=c,this.useDepths=this.useDepths||d.useDepths):(c.index=h,c.name="program"+h)}},matchExistingProgram:function(a){for(var b=0,c=this.context.environments.length;c>b;b++){var d=this.context.environments[b];if(d&&d.equals(a))return b}},programExpression:function(a){var b=this.environment.children[a],c=(b.depths.list,this.useDepths),d=[b.index,"data"];return c&&d.push("depths"),"this.program("+d.join(", ")+")"},useRegister:function(a){this.registers[a]||(this.registers[a]=!0,this.registers.list.push(a))},pushStackLiteral:function(a){return this.push(new c(a))},pushSource:function(a){this.pendingContent&&(this.source.push(this.appendToBuffer(this.quotedString(this.pendingContent))),this.pendingContent=void 0),a&&this.source.push(a)},pushStack:function(a){this.flushInline();var b=this.incrStack();return this.pushSource(b+" = "+a+";"),this.compileStack.push(b),b},replaceStack:function(a){{var b,d,e,f="";this.isInline()}if(!this.isInline())throw new h("replaceStack on non-inline");var g=this.popStack(!0);if(g instanceof c)f=b=g.value,e=!0;else{d=!this.stackSlot;var i=d?this.incrStack():this.topStackName();f="("+this.push(i)+" = "+g+")",b=this.topStack()}var j=a.call(this,b);e||this.popStack(),d&&this.stackSlot--,this.push("("+f+j+")")},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var a=this.inlineStack;if(a.length){this.inlineStack=[];for(var b=0,d=a.length;d>b;b++){var e=a[b];e instanceof c?this.compileStack.push(e):this.pushStack(e)}}},isInline:function(){return this.inlineStack.length},popStack:function(a){var b=this.isInline(),d=(b?this.inlineStack:this.compileStack).pop();if(!a&&d instanceof c)return d.value;if(!b){if(!this.stackSlot)throw new h("Invalid stack pop");this.stackSlot--}return d},topStack:function(){var a=this.isInline()?this.inlineStack:this.compileStack,b=a[a.length-1];return b instanceof c?b.value:b},contextName:function(a){return this.useDepths&&a?"depths["+a+"]":"depth"+a},quotedString:function(a){return'"'+a.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(this.quotedString(c)+":"+a[c]);return"{"+b.join(",")+"}"},setupHelper:function(a,b,c){var d=[],e=this.setupParams(b,a,d,c),f=this.nameLookup("helpers",b,"helper");return{params:d,paramsInit:e,name:f,callParams:[this.contextName(0)].concat(d).join(", ")}},setupOptions:function(a,b,c){var d,e,f,g={},h=[],i=[],j=[];g.name=this.quotedString(a),g.hash=this.popStack(),this.trackIds&&(g.hashIds=this.popStack()),this.stringParams&&(g.hashTypes=this.popStack(),g.hashContexts=this.popStack()),e=this.popStack(),f=this.popStack(),(f||e)&&(f||(f="this.noop"),e||(e="this.noop"),g.fn=f,g.inverse=e);for(var k=b;k--;)d=this.popStack(),c[k]=d,this.trackIds&&(j[k]=this.popStack()),this.stringParams&&(i[k]=this.popStack(),h[k]=this.popStack());return this.trackIds&&(g.ids="["+j.join(",")+"]"),this.stringParams&&(g.types="["+i.join(",")+"]",g.contexts="["+h.join(",")+"]"),this.options.data&&(g.data="data"),g},setupParams:function(a,b,c,d){var e=this.objectLiteral(this.setupOptions(a,b,c));return d?(this.useRegister("options"),c.push("options"),"options="+e):(c.push(e),"")}};for(var i="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield".split(" "),j=d.RESERVED_WORDS={},k=0,l=i.length;l>k;k++)j[i[k]]=!0;return d.isValidJavaScriptVariableName=function(a){return!d.RESERVED_WORDS[a]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(a)},e=d}(d,c),m=function(a,b,c,d,e){"use strict";var f,g=a,h=b,i=c.parser,j=c.parse,k=d.Compiler,l=d.compile,m=d.precompile,n=e,o=g.create,p=function(){var a=o();return a.compile=function(b,c){return l(b,c,a)},a.precompile=function(b,c){return m(b,c,a)},a.AST=h,a.Compiler=k,a.JavaScriptCompiler=n,a.Parser=i,a.parse=j,a};return g=p(),g.create=p,g["default"]=g,f=g}(f,g,j,k,l);return m}),function(a){a&&(a.registerHelper("ifCond",function(a,b,c,d){switch(b){case"==":return a==c?d.fn(this):d.inverse(this);case"===":return a===c?d.fn(this):d.inverse(this);case"<":return c>a?d.fn(this):d.inverse(this);case"<=":return c>=a?d.fn(this):d.inverse(this);case">":return a>c?d.fn(this):d.inverse(this);case">=":return a>=c?d.fn(this):d.inverse(this);case"&&":return a&&c?d.fn(this):d.inverse(this);case"||":return a||c?d.fn(this):d.inverse(this);default:return d.inverse(this)}}),a.registerHelper("last",function(a,b){return b.fn(a[a.length-1])}))}(Handlebars),Handlebars.registerPartial("badge",Handlebars.template({1:function(a,b,c,d){var e,f='<span class="mui-badge';return e=b["if"].call(a,null!=a?a.style:a,{name:"if",hash:{},fn:this.program(2,d),inverse:this.noop,data:d}),null!=e&&(f+=e),f+='">',e=b["if"].call(a,null!=a?a.text:a,{name:"if",hash:{},fn:this.program(4,d),inverse:this.program(6,d),data:d}),null!=e&&(f+=e),f+"</span>\r"},2:function(a,b,c,d){var e,f,g="function",h=b.helperMissing,i=" mui-badge-";return f=null!=(f=b.style||(null!=a?a.style:a))?f:h,e=typeof f===g?f.call(a,{name:"style",hash:{},data:d}):f,null!=e&&(i+=e),i},4:function(a,b,c,d){var e,f,g="function",h=b.helperMissing;return f=null!=(f=b.text||(null!=a?a.text:a))?f:h,e=typeof f===g?f.call(a,{name:"text",hash:{},data:d}):f,null!=e?e:""},6:function(a){var b,c=this.lambda;return b=c(a,a),null!=b?b:""},compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f,g,h="function",i=b.helperMissing,j=b.blockHelperMissing;return f=null!=(f=b.badge||(null!=a?a.badge:a))?f:i,g={name:"badge",hash:{},fn:this.program(1,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.badge||(e=j.call(a,e,g)),null!=e?e:""},useData:!0})),Handlebars.registerPartial("btn",Handlebars.template({1:function(a,b,c,d){var e,f='<button class="mui-btn';return e=b["if"].call(a,null!=a?a.style:a,{name:"if",hash:{},fn:this.program(2,d),inverse:this.noop,data:d}),null!=e&&(f+=e),f+='">',e=b["if"].call(a,null!=a?a.text:a,{name:"if",hash:{},fn:this.program(4,d),inverse:this.program(6,d),data:d}),null!=e&&(f+=e),f+"</button>\n"},2:function(a,b,c,d){var e,f,g="function",h=b.helperMissing,i=" mui-btn-";return f=null!=(f=b.style||(null!=a?a.style:a))?f:h,e=typeof f===g?f.call(a,{name:"style",hash:{},data:d}):f,null!=e&&(i+=e),i},4:function(a,b,c,d){var e,f,g="function",h=b.helperMissing;return f=null!=(f=b.text||(null!=a?a.text:a))?f:h,e=typeof f===g?f.call(a,{name:"text",hash:{},data:d}):f,null!=e?e:""},6:function(a){var b,c=this.lambda;return b=c(a,a),null!=b?b:""},compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f,g,h="function",i=b.helperMissing,j=b.blockHelperMissing;return f=null!=(f=b.btn||(null!=a?a.btn:a))?f:i,g={name:"btn",hash:{},fn:this.program(1,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.btn||(e=j.call(a,e,g)),null!=e?e:""},useData:!0})),Handlebars.registerPartial("checkbox",Handlebars.template({1:function(a,b,c,d){var e,f="function",g=b.helperMissing,h=this.escapeExpression;return'<input name="'+h((e=null!=(e=b.name||(null!=a?a.name:a))?e:g,typeof e===f?e.call(a,{name:"name",hash:{},data:d}):e))+'" type="checkbox" value="'+h((e=null!=(e=b.value||(null!=a?a.value:a))?e:g,typeof e===f?e.call(a,{name:"value",hash:{},data:d}):e))+'"> '},compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f,g,h="function",i=b.helperMissing,j=b.blockHelperMissing,k="";return f=null!=(f=b.checkbox||(null!=a?a.checkbox:a))?f:i,g={name:"checkbox",hash:{},fn:this.program(1,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.checkbox||(e=j.call(a,e,g)),null!=e&&(k+=e),k+"\n"},useData:!0})),Handlebars.registerPartial("grid",Handlebars.template({1:function(a,b,c,d){var e,f='<ul class="mui-table-view mui-grid-view">\n';return e=b.each.call(a,null!=a?a.grid:a,{name:"each",hash:{},fn:this.program(2,d),inverse:this.noop,data:d}),null!=e&&(f+=e),f+"</ul>\n"},2:function(a,b,c,d){var e,f,g="function",h=b.helperMissing,i=this.escapeExpression,j=' <li class="mui-table-view-cell mui-media mui-col-xs-6">\n <a href="';return e=b["if"].call(a,null!=a?a.href:a,{name:"if",hash:{},fn:this.program(3,d),inverse:this.program(5,d),data:d}),null!=e&&(j+=e),j+='">\n <img class="mui-media-object" src="'+i((f=null!=(f=b.src||(null!=a?a.src:a))?f:h,typeof f===g?f.call(a,{name:"src",hash:{},data:d}):f))+'">\n <div class="mui-media-body">',f=null!=(f=b.title||(null!=a?a.title:a))?f:h,e=typeof f===g?f.call(a,{name:"title",hash:{},data:d}):f,null!=e&&(j+=e),j+"</div>\n </a>\n </li>\n"},3:function(a,b,c,d){var e,f="function",g=b.helperMissing,h=this.escapeExpression;return h((e=null!=(e=b.href||(null!=a?a.href:a))?e:g,typeof e===f?e.call(a,{name:"href",hash:{},data:d}):e))},5:function(){return"#"},compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f=this.lambda,g=b.blockHelperMissing,h="";return e=g.call(a,f(a,a),{name:"this",hash:{},fn:this.program(1,d),inverse:this.noop,data:d}),null!=e&&(h+=e),h},useData:!0})),Handlebars.registerPartial("media",Handlebars.template({1:function(a,b,c,d){var e,f=" ";return e=b["if"].call(a,null!=a?a.src:a,{name:"if",hash:{},fn:this.program(2,d),inverse:this.noop,data:d}),null!=e&&(f+=e),f+=" ",e=b["if"].call(a,null!=a?a.desc:a,{name:"if",hash:{},fn:this.program(7,d),inverse:this.noop,data:d}),null!=e&&(f+=e),f+" "},2:function(a,b,c,d){var e,f,g="function",h=b.helperMissing,i=this.escapeExpression,j='\n<img class="mui-media-object ';return e=b["if"].call(a,null!=a?a.position:a,{name:"if",hash:{},fn:this.program(3,d),inverse:this.program(5,d),data:d}),null!=e&&(j+=e),j+'" src="'+i((f=null!=(f=b.src||(null!=a?a.src:a))?f:h,typeof f===g?f.call(a,{name:"src",hash:{},data:d}):f))+'">'},3:function(a,b,c,d){var e,f="function",g=b.helperMissing,h=this.escapeExpression;return"mui-pull-"+h((e=null!=(e=b.position||(null!=a?a.position:a))?e:g,typeof e===f?e.call(a,{name:"position",hash:{},data:d}):e))},5:function(){return"mui-pull-left"},7:function(a,b,c,d){var e,f,g="function",h=b.helperMissing,i='\n<div class="mui-media-body">\n ';return f=null!=(f=b.title||(null!=a?a.title:a))?f:h,e=typeof f===g?f.call(a,{name:"title",hash:{},data:d}):f,null!=e&&(i+=e),i+="\n <p class='",e=b["if"].call(a,null!=a?a.ellipsis:a,{name:"if",hash:{},fn:this.program(8,d),inverse:this.program(10,d),data:d}),null!=e&&(i+=e),i+="'>",f=null!=(f=b.desc||(null!=a?a.desc:a))?f:h,e=typeof f===g?f.call(a,{name:"desc",hash:{},data:d}):f,null!=e&&(i+=e),i+"</p>\n</div>\n"},8:function(a,b,c,d){var e,f="function",g=b.helperMissing,h=this.escapeExpression;return"mui-ellipsis-"+h((e=null!=(e=b.ellipsis||(null!=a?a.ellipsis:a))?e:g,typeof e===f?e.call(a,{name:"ellipsis",hash:{},data:d}):e))},10:function(){return"mui-ellipsis"},compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f=this.lambda,g=b.blockHelperMissing,h="";return e=g.call(a,f(a,a),{name:"this",hash:{},fn:this.program(1,d),inverse:this.noop,data:d}),null!=e&&(h+=e),h+"\n"},useData:!0})),Handlebars.registerPartial("radio",Handlebars.template({1:function(a,b,c,d){var e,f="function",g=b.helperMissing,h=this.escapeExpression;return'<input name="'+h((e=null!=(e=b.name||(null!=a?a.name:a))?e:g,typeof e===f?e.call(a,{name:"name",hash:{},data:d}):e))+'" type="radio" value="'+h((e=null!=(e=b.value||(null!=a?a.value:a))?e:g,typeof e===f?e.call(a,{name:"value",hash:{},data:d}):e))+'"> '},compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f,g,h="function",i=b.helperMissing,j=b.blockHelperMissing,k="";return f=null!=(f=b.radio||(null!=a?a.radio:a))?f:i,g={name:"radio",hash:{},fn:this.program(1,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.radio||(e=j.call(a,e,g)),null!=e&&(k+=e),k+"\n"},useData:!0})),Handlebars.registerPartial("slider",Handlebars.template({1:function(a,b,c,d){var e,f,g,h="function",i=b.helperMissing,j=b.blockHelperMissing,k="<div";return e=b["if"].call(a,null!=a?a.id:a,{name:"if",hash:{},fn:this.program(2,d),inverse:this.noop,data:d}),null!=e&&(k+=e),k+=' class="mui-slider">\n <div class="mui-slider-group',f=null!=(f=b.loop||(null!=a?a.loop:a))?f:i,g={name:"loop",hash:{},fn:this.program(4,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.loop||(e=j.call(a,e,g)),null!=e&&(k+=e),k+='">\n ',f=null!=(f=b.loop||(null!=a?a.loop:a))?f:i,g={name:"loop",hash:{},fn:this.program(6,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.loop||(e=j.call(a,e,g)),null!=e&&(k+=e),k+=" ",e=b.each.call(a,null!=a?a.slider:a,{name:"each",hash:{},fn:this.program(9,d),inverse:this.noop,data:d}),null!=e&&(k+=e),k+=" ",f=null!=(f=b.loop||(null!=a?a.loop:a))?f:i,g={name:"loop",hash:{},fn:this.program(11,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.loop||(e=j.call(a,e,g)),null!=e&&(k+=e),k+="\n </div>\n",e=b["if"].call(a,null!=(e=null!=(e=null!=a?a.slider:a)?e[0]:e)?e.src:e,{name:"if",hash:{},fn:this.program(13,d),inverse:this.program(17,d),data:d}),null!=e&&(k+=e),k+" </div>\n"},2:function(a,b,c,d){var e,f="function",g=b.helperMissing,h=this.escapeExpression;return' id="'+h((e=null!=(e=b.id||(null!=a?a.id:a))?e:g,typeof e===f?e.call(a,{name:"id",hash:{},data:d}):e))+'" '},4:function(){return" mui-slider-loop"},6:function(a,b,c,d){var e,f=b.helperMissing,g=" ";return e=(b.last||a&&a.last||f).call(a,null!=a?a.slider:a,{name:"last",hash:{},fn:this.program(7,d),inverse:this.noop,data:d}),null!=e&&(g+=e),g+" "},7:function(a,b,c,d){var e,f='\n <div class="mui-slider-item mui-slider-item-duplicate">\n';return e=this.invokePartial(c.slideritem," ","slideritem",a,void 0,b,c,d),null!=e&&(f+=e),f+" </div>\n "},9:function(a,b,c,d){var e,f='\n <div class="mui-slider-item">\n';return e=this.invokePartial(c.slideritem," ","slideritem",a,void 0,b,c,d),null!=e&&(f+=e),f+" </div>\n "},11:function(a,b,c,d){var e,f=" ";return e=b["with"].call(a,null!=(e=null!=a?a.slider:a)?e[0]:e,{name:"with",hash:{},fn:this.program(7,d),inverse:this.noop,data:d}),null!=e&&(f+=e),f+" "},13:function(a,b,c,d){var e,f=' <div class="mui-slider-indicator mui-text-right">\n';return e=b.each.call(a,null!=a?a.slider:a,{name:"each",hash:{},fn:this.program(14,d),inverse:this.noop,data:d}),null!=e&&(f+=e),f+" </div>\n"},14:function(a,b,c,d){var e,f=' <div class="mui-indicator';return e=b["if"].call(a,d&&d.first,{name:"if",hash:{},fn:this.program(15,d),inverse:this.noop,data:d}),null!=e&&(f+=e),f+'"></div>\n'},15:function(){return" mui-active"},17:function(a){var b,c=this.lambda,d=this.escapeExpression;return' <div class="mui-slider-indicator" style="position: static;background-color: #fff;">\n <span class="mui-action mui-action-previous mui-icon mui-icon-back"></span>\n <div class="mui-number">\n <span>1</span> / '+d(c(null!=(b=null!=a?a.slider:a)?b.length:b,a))+'\n </div>\n <span class="mui-action mui-action-next mui-icon mui-icon-forward"></span>\n </div>\n'},compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f=this.lambda,g=b.blockHelperMissing,h="";return e=g.call(a,f(a,a),{name:"this",hash:{},fn:this.program(1,d),inverse:this.noop,data:d}),null!=e&&(h+=e),h},usePartial:!0,useData:!0})),Handlebars.registerPartial("slideritem",Handlebars.template({1:function(a,b,c,d){var e,f,g,h="function",i=b.helperMissing,j=this.escapeExpression,k=b.blockHelperMissing,l='<a href="';return e=b["if"].call(a,null!=a?a.href:a,{name:"if",hash:{},fn:this.program(2,d),inverse:this.program(4,d),data:d}),null!=e&&(l+=e),l+='">\n <img src="'+j((f=null!=(f=b.src||(null!=a?a.src:a))?f:i,typeof f===h?f.call(a,{name:"src",hash:{},data:d}):f))+'">',f=null!=(f=b.title||(null!=a?a.title:a))?f:i,g={name:"title",hash:{},fn:this.program(6,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.title||(e=k.call(a,e,g)),null!=e&&(l+=e),l+"</a>\n"},2:function(a,b,c,d){var e,f="function",g=b.helperMissing,h=this.escapeExpression;return h((e=null!=(e=b.href||(null!=a?a.href:a))?e:g,typeof e===f?e.call(a,{name:"href",hash:{},data:d}):e))},4:function(){return"#"},6:function(a){var b,c=this.lambda,d='\n <p class="mui-slider-title">';return b=c(a,a),null!=b&&(d+=b),d+"</p>\n"},8:function(a,b,c,d){var e,f='<ul class="mui-table-view mui-grid-view">\n';return e=b.each.call(a,a,{name:"each",hash:{},fn:this.program(9,d),inverse:this.noop,data:d}),null!=e&&(f+=e),f+"</ul>\n"},9:function(a,b,c,d){var e,f,g="function",h=b.helperMissing,i=this.escapeExpression,j=' <li class="mui-table-view-cell mui-media mui-col-xs-6">\n <a href="';return e=b["if"].call(a,null!=a?a.href:a,{name:"if",hash:{},fn:this.program(2,d),inverse:this.program(4,d),data:d}),null!=e&&(j+=e),j+='">\n <img class="mui-media-object" src="'+i((f=null!=(f=b.src||(null!=a?a.src:a))?f:h,typeof f===g?f.call(a,{name:"src",hash:{},data:d}):f))+'">\n <div class="mui-media-body">',f=null!=(f=b.title||(null!=a?a.title:a))?f:h,e=typeof f===g?f.call(a,{name:"title",hash:{},data:d}):f,null!=e&&(j+=e),j+"</div>\n </a>\n </li>\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f="";return e=b["if"].call(a,null!=a?a.src:a,{name:"if",hash:{},fn:this.program(1,d),inverse:this.program(8,d),data:d}),null!=e&&(f+=e),f},useData:!0})),Handlebars.registerPartial("switch",Handlebars.template({1:function(a,b,c,d){var e,f,g,h="function",i=b.helperMissing,j=b.blockHelperMissing,k='<div class="mui-switch';return f=null!=(f=b.style||(null!=a?a.style:a))?f:i,g={name:"style",hash:{},fn:this.program(2,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.style||(e=j.call(a,e,g)),null!=e&&(k+=e),f=null!=(f=b.size||(null!=a?a.size:a))?f:i,g={name:"size",hash:{},fn:this.program(2,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.size||(e=j.call(a,e,g)),null!=e&&(k+=e),f=null!=(f=b.active||(null!=a?a.active:a))?f:i,g={name:"active",hash:{},fn:this.program(4,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.active||(e=j.call(a,e,g)),null!=e&&(k+=e),k+'">\n <div class="mui-switch-handle"></div>\n</div>\n'},2:function(a){var b=this.lambda,c=this.escapeExpression;return" mui-switch-"+c(b(a,a))},4:function(){return" mui-active"},compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f,g,h="function",i=b.helperMissing,j=b.blockHelperMissing;return f=null!=(f=b["switch"]||(null!=a?a["switch"]:a))?f:i,g={name:"switch",hash:{},fn:this.program(1,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b["switch"]||(e=j.call(a,e,g)),null!=e?e:""},useData:!0})),Handlebars.registerPartial("tableview",Handlebars.template({1:function(a,b,c,d){var e,f,g,h="function",i=b.helperMissing,j=b.blockHelperMissing,k="<ul";return e=b["if"].call(a,null!=a?a.id:a,{name:"if",hash:{},fn:this.program(2,d),inverse:this.noop,data:d}),null!=e&&(k+=e),k+=' class="mui-table-view',f=null!=(f=b.chevron||(null!=a?a.chevron:a))?f:i,g={name:"chevron",hash:{},fn:this.program(4,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.chevron||(e=j.call(a,e,g)),null!=e&&(k+=e),f=null!=(f=b.striped||(null!=a?a.striped:a))?f:i,g={name:"striped",hash:{},fn:this.program(6,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.striped||(e=j.call(a,e,g)),null!=e&&(k+=e),f=null!=(f=b.inverted||(null!=a?a.inverted:a))?f:i,g={name:"inverted",hash:{},fn:this.program(8,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.inverted||(e=j.call(a,e,g)),null!=e&&(k+=e),k+='">\n ',f=null!=(f=b.tableview||(null!=a?a.tableview:a))?f:i,g={name:"tableview",hash:{},fn:this.program(10,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.tableview||(e=j.call(a,e,g)),null!=e&&(k+=e),k+"\n</ul>\n"},2:function(a,b,c,d){var e,f="function",g=b.helperMissing,h=this.escapeExpression;return' id="'+h((e=null!=(e=b.id||(null!=a?a.id:a))?e:g,typeof e===f?e.call(a,{name:"id",hash:{},data:d}):e))+'"'},4:function(){return" mui-table-view-chevron"},6:function(){return" mui-table-view-striped"},8:function(){return" mui-table-view-inverted"},10:function(a,b,c,d){var e,f=" ";return e=this.invokePartial(c.tableviewcell,"","tableviewcell",a,void 0,b,c,d),null!=e&&(f+=e),f+" "},compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f=this.lambda,g=b.blockHelperMissing,h="";return e=g.call(a,f(a,a),{name:"this",hash:{},fn:this.program(1,d),inverse:this.noop,data:d}),null!=e&&(h+=e),h},usePartial:!0,useData:!0})),Handlebars.registerPartial("tableviewcell",Handlebars.template({1:function(a,b,c,d){var e,f,g,h="function",i=b.helperMissing,j=b.blockHelperMissing,k='<li class="mui-table-view-';return e=b["if"].call(a,null!=a?a.divider:a,{name:"if",hash:{},fn:this.program(2,d),inverse:this.program(4,d),data:d}),null!=e&&(k+=e),f=null!=(f=b.radio||(null!=a?a.radio:a))?f:i,g={name:"radio",hash:{},fn:this.program(6,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.radio||(e=j.call(a,e,g)),null!=e&&(k+=e),f=null!=(f=b.checkbox||(null!=a?a.checkbox:a))?f:i,g={name:"checkbox",hash:{},fn:this.program(8,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.checkbox||(e=j.call(a,e,g)),null!=e&&(k+=e),f=null!=(f=b.position||(null!=a?a.position:a))?f:i,g={name:"position",hash:{},fn:this.program(10,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.position||(e=j.call(a,e,g)),null!=e&&(k+=e),e=b["if"].call(a,null!=a?a.tableview:a,{name:"if",hash:{},fn:this.program(12,d),inverse:this.noop,data:d}),null!=e&&(k+=e),k+='">\n ',e=(b.ifCond||a&&a.ifCond||i).call(a,null!=a?a.title:a,"||",null!=a?a.src:a,{name:"ifCond",hash:{},fn:this.program(14,d),inverse:this.program(26,d),data:d}),null!=e&&(k+=e),e=b["if"].call(a,null!=a?a.tableview:a,{name:"if",hash:{},fn:this.program(28,d),inverse:this.noop,data:d}),null!=e&&(k+=e),k+"\n</li>\n"
},2:function(){return"divider"},4:function(){return"cell"},6:function(){return" mui-radio"},8:function(){return" mui-checkbox"},10:function(a){var b=this.lambda,c=this.escapeExpression;return" mui-"+c(b(a,a))},12:function(){return" mui-collapse"},14:function(a,b,c,d){var e,f=b.helperMissing,g=" ";return e=(b.ifCond||a&&a.ifCond||f).call(a,null!=a?a.navigate:a,"||",null!=a?a.href:a,{name:"ifCond",hash:{},fn:this.program(15,d),inverse:this.noop,data:d}),null!=e&&(g+=e),e=(b.ifCond||a&&a.ifCond||f).call(a,null!=a?a.src:a,"||",null!=a?a.desc:a,{name:"ifCond",hash:{},fn:this.program(20,d),inverse:this.program(22,d),data:d}),null!=e&&(g+=e),g+="\n",e=this.invokePartial(c.badge," ","badge",a,void 0,b,c,d),null!=e&&(g+=e),g+="\n",e=this.invokePartial(c.btn," ","btn",a,void 0,b,c,d),null!=e&&(g+=e),g+="\n",e=this.invokePartial(c["switch"]," ","switch",a,void 0,b,c,d),null!=e&&(g+=e),g+="\n",e=this.invokePartial(c.radio," ","radio",a,void 0,b,c,d),null!=e&&(g+=e),g+="\n",e=this.invokePartial(c.checkbox," ","checkbox",a,void 0,b,c,d),null!=e&&(g+=e),g+="\n",e=this.invokePartial(c.media," ","media",a,void 0,b,c,d),null!=e&&(g+=e),g+="\n",e=(b.ifCond||a&&a.ifCond||f).call(a,null!=a?a.navigate:a,"||",null!=a?a.href:a,{name:"ifCond",hash:{},fn:this.program(24,d),inverse:this.noop,data:d}),null!=e&&(g+=e),g},15:function(a,b,c,d){var e,f='\n <a class="';return e=b["if"].call(a,null!=a?a.navigate:a,{name:"if",hash:{},fn:this.program(16,d),inverse:this.noop,data:d}),null!=e&&(f+=e),f+='" ',e=b["if"].call(a,null!=a?a.href:a,{name:"if",hash:{},fn:this.program(18,d),inverse:this.noop,data:d}),null!=e&&(f+=e),f+">\n"},16:function(){return"mui-navigate-right"},18:function(a,b,c,d){var e,f="function",g=b.helperMissing,h=this.escapeExpression;return' href="'+h((e=null!=(e=b.href||(null!=a?a.href:a))?e:g,typeof e===f?e.call(a,{name:"href",hash:{},data:d}):e))+'" '},20:function(){return""},22:function(a,b,c,d){var e,f,g="function",h=b.helperMissing,i=" ";return f=null!=(f=b.title||(null!=a?a.title:a))?f:h,e=typeof f===g?f.call(a,{name:"title",hash:{},data:d}):f,null!=e&&(i+=e),i+"\n"},24:function(){return"\n </a>\n"},26:function(a){var b,c=this.lambda,d=" ";return b=c(a,a),null!=b&&(d+=b),d+"\n"},28:function(a,b,c,d){var e,f=" ";return e=this.invokePartial(c.tableview,"","tableview",a,void 0,b,c,d),null!=e&&(f+=e),f+" "},compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f=this.lambda,g=b.blockHelperMissing;return e=g.call(a,f(a,a),{name:"this",hash:{},fn:this.program(1,d),inverse:this.noop,data:d}),null!=e?e:""},usePartial:!0,useData:!0})),function(a,b){var c=Array.isArray||function(a){return a instanceof Array},d=b.createElement("div");a.each(["tableview","slider","grid"],function(b,e){!function(b){var e=null,f=null;a.fn[b]&&(e=a.fn[b]),a.fn[b]=function(g){var h={output:!0};if(c(g)?h[b]=g:h=a.extend(h,g),!h.hasOwnProperty(b))return e&&e.call(this,h);var i=Handlebars.compile(h.tpl?h.tpl:"{{>"+b+"}}"),j="";return this.each(function(){var b=this.id;if(j=i(a.extend({id:b},h)),h.output===!1)return!1;d.innerHTML=j;for(var c=null;c=d.firstElementChild;)this.parentNode.insertBefore(c,this);this.parentNode.removeChild(this),e&&a.ready(function(){f=e.call(a(c),h)})}),h.output===!1?j:f?f:void 0}}(e)})}(mui,document);
\ No newline at end of file
},2:function(){return"divider"},4:function(){return"cell"},6:function(){return" mui-radio"},8:function(){return" mui-checkbox"},10:function(a){var b=this.lambda,c=this.escapeExpression;return" mui-"+c(b(a,a))},12:function(){return" mui-collapse"},14:function(a,b,c,d){var e,f=b.helperMissing,g=" ";return e=(b.ifCond||a&&a.ifCond||f).call(a,null!=a?a.navigate:a,"||",null!=a?a.href:a,{name:"ifCond",hash:{},fn:this.program(15,d),inverse:this.noop,data:d}),null!=e&&(g+=e),e=(b.ifCond||a&&a.ifCond||f).call(a,null!=a?a.src:a,"||",null!=a?a.desc:a,{name:"ifCond",hash:{},fn:this.program(20,d),inverse:this.program(22,d),data:d}),null!=e&&(g+=e),g+="\n",e=this.invokePartial(c.badge," ","badge",a,void 0,b,c,d),null!=e&&(g+=e),g+="\n",e=this.invokePartial(c.btn," ","btn",a,void 0,b,c,d),null!=e&&(g+=e),g+="\n",e=this.invokePartial(c["switch"]," ","switch",a,void 0,b,c,d),null!=e&&(g+=e),g+="\n",e=this.invokePartial(c.radio," ","radio",a,void 0,b,c,d),null!=e&&(g+=e),g+="\n",e=this.invokePartial(c.checkbox," ","checkbox",a,void 0,b,c,d),null!=e&&(g+=e),g+="\n",e=this.invokePartial(c.media," ","media",a,void 0,b,c,d),null!=e&&(g+=e),g+="\n",e=(b.ifCond||a&&a.ifCond||f).call(a,null!=a?a.navigate:a,"||",null!=a?a.href:a,{name:"ifCond",hash:{},fn:this.program(24,d),inverse:this.noop,data:d}),null!=e&&(g+=e),g},15:function(a,b,c,d){var e,f='\n <a class="';return e=b["if"].call(a,null!=a?a.navigate:a,{name:"if",hash:{},fn:this.program(16,d),inverse:this.noop,data:d}),null!=e&&(f+=e),f+='" ',e=b["if"].call(a,null!=a?a.href:a,{name:"if",hash:{},fn:this.program(18,d),inverse:this.noop,data:d}),null!=e&&(f+=e),f+">\n"},16:function(){return"mui-navigate-right"},18:function(a,b,c,d){var e,f="function",g=b.helperMissing,h=this.escapeExpression;return' href="'+h((e=null!=(e=b.href||(null!=a?a.href:a))?e:g,typeof e===f?e.call(a,{name:"href",hash:{},data:d}):e))+'" '},20:function(){return""},22:function(a,b,c,d){var e,f,g="function",h=b.helperMissing,i=" ";return f=null!=(f=b.title||(null!=a?a.title:a))?f:h,e=typeof f===g?f.call(a,{name:"title",hash:{},data:d}):f,null!=e&&(i+=e),i+"\n"},24:function(){return"\n </a>\n"},26:function(a){var b,c=this.lambda,d=" ";return b=c(a,a),null!=b&&(d+=b),d+"\n"},28:function(a,b,c,d){var e,f=" ";return e=this.invokePartial(c.tableview,"","tableview",a,void 0,b,c,d),null!=e&&(f+=e),f+" "},compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f=this.lambda,g=b.blockHelperMissing;return e=g.call(a,f(a,a),{name:"this",hash:{},fn:this.program(1,d),inverse:this.noop,data:d}),null!=e?e:""},usePartial:!0,useData:!0})),function(a,b){var c=Array.isArray||function(a){return a instanceof Array},d=b.createElement("div");a.each(["tableview","slider","grid"],function(b,e){!function(b){var e=null,f=null;a.fn[b]&&(e=a.fn[b]),a.fn[b]=function(g){var h={output:!0};if(c(g)?h[b]=g:h=a.extend(h,g),!h.hasOwnProperty(b))return e&&e.call(this,h);var i=Handlebars.compile(h.tpl?h.tpl:"{{>"+b+"}}"),j="";return this.each(function(){var c=this.id;if(j=i(a.extend({id:c},h)),h.output===!1)return!1;d.innerHTML=j;for(var g=null;g=d.firstElementChild;)this.parentNode.insertBefore(g,this),e&&"slider"===b&&g.querySelector(".mui-slider-group")&&a.ready(function(){f=e.call(a(g),h)});this.parentNode.removeChild(this)}),h.output===!1?j:f?f:void 0}}(e)})}(mui,document);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -45,7 +45,7 @@
</p>
<p>更多详细介绍,请到<a href="http://dcloudio.github.io/mui">mui官网</a>查看;</p>
<h4>版本介绍</h4>
<p>当前版本为0.5.6,可到<a href="https://github.com/dcloudio/mui">Github</a>上获取最新版本。</p>
<p>当前版本为0.5.8,可到<a href="https://github.com/dcloudio/mui">Github</a>上获取最新版本。</p>
<h4>License</h4>
<p>
mui遵循MIT License,源码已提交至Github,<a href="https://github.com/dcloudio/mui">点击查看</a>;
......
......@@ -36,7 +36,7 @@
</div>
<h5>语音输入搜索框:</h5>
<div class="mui-input-row mui-search">
<input type="search" class="mui-input-speech mui-input-clear" placeholder="带语音识别的搜索框">
<input type="search" class="mui-input-speech mui-input-clear" placeholder="带语音输入的搜索框">
</div>
<form class="mui-input-group">
<div class="mui-input-row">
......@@ -52,9 +52,11 @@
<label>Input</label>
<input type="text" class="mui-input-speech mui-input-clear" placeholder="语音输入">
</div>
<div class="mui-button-row">
<button class="mui-btn mui-btn-primary" onclick="return false;">确认</button>&nbsp;&nbsp;
<button class="mui-btn mui-btn-danger" onclick="return false;">取消</button>
</div>
</form>
<div class="mui-input-row" style="margin: 10px 5px;">
<textarea rows="5" placeholder="多行文本框"></textarea>
</div>
......@@ -63,7 +65,7 @@
<style type="text/css">
h5{
h5 {
margin: 5px 7px;
}
</style>
......
......@@ -69,7 +69,7 @@
</li>
<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
<a href="#">
<span class="mui-icon mui-icon-sms"><span class="mui-badge">5</span></span>
<span class="mui-icon mui-icon-email"><span class="mui-badge">5</span></span>
<div class="mui-media-body">
Email
</div>
......@@ -77,9 +77,9 @@
</li>
<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
<a href="#">
<span class="mui-icon mui-icon-calendar"></span>
<span class="mui-icon mui-icon-contact"></span>
<div class="mui-media-body">
Calendar
Contact
</div>
</a>
</li>
......@@ -93,7 +93,7 @@
</li>
<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
<a href="#">
<span class="mui-icon mui-icon-category"></span>
<span class="mui-icon mui-icon-list"></span>
<div class="mui-media-body">
Sort
</div>
......@@ -125,7 +125,7 @@
</li>
<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
<a href="#">
<span class="mui-icon mui-icon-cog"></span>
<span class="mui-icon mui-icon-gear"></span>
<div class="mui-media-body">
Setting
</div>
......
......@@ -135,6 +135,9 @@
width: '70%',
zindex: 9998
},
show:{
aniShow:'none'
},
waiting:{
autoShow:false
}
......
......@@ -128,10 +128,13 @@
id: 'offcanvas-plus-menu',
url: 'offcanvas-plus-menu.html',
styles: {
left: '30%',
left: left,
width:'70%',
zindex: 9998
},
show:{
aniShow:'none'
},
waiting:{
autoShow:false
}
......
......@@ -81,7 +81,7 @@
</div>
<script>
mui.init({
back : function() {
back: function() {
var webview = plus.webview.currentWebview();
var parent = webview.parent();
if (parent) {
......@@ -90,9 +90,11 @@
}
}
})
(function($) {
document.addEventListener('plus:togglePopover', function() {
$('#popover').popover('toggle');
});
})(mui);
</script>
</body>
</html>
\ No newline at end of file
......@@ -31,16 +31,15 @@
<script>
mui.plusReady(function() {
var popover = plus.webview.create('popovers-with-cross-webviews-popover.html', null, {
top : '45px',
bottom : 0
top: '45px',
bottom: 0
});
plus.webview.currentWebview().append(popover);
document.getElementById('M_Popover_Trigger').addEventListener('tap', function() {
//mui hack plus event
$.fire(popover, 'plus:togglePopover');
mui.fire(popover, 'plus:togglePopover');
});
});
</script>
</body>
</html>
\ No newline at end of file
......@@ -24,7 +24,7 @@
<body>
<style>
.mui-popover{
.mui-popover {
top: 125px;
}
</style>
......@@ -41,29 +41,41 @@
<a id="closePopover" class="mui-btn mui-btn-primary mui-btn-block">Close Popover</a>
</div>
<ul class="mui-table-view">
<li class="mui-table-view-cell"><a href="#">Item1</a></li>
<li class="mui-table-view-cell"><a href="#">Item2</a></li>
<li class="mui-table-view-cell"><a href="#">Item3</a></li>
<li class="mui-table-view-cell"><a href="#">Item4</a></li>
<li class="mui-table-view-cell"><a href="#">Item5</a></li>
<li class="mui-table-view-cell"><a href="#">Item6</a></li>
<li class="mui-table-view-cell"><a href="#">Item7</a></li>
<li class="mui-table-view-cell"><a href="#">Item8</a></li>
<li class="mui-table-view-cell"><a href="#">Item9</a></li>
<li class="mui-table-view-cell"><a href="#">Item10</a></li>
<li class="mui-table-view-cell"><a href="#">Item1</a>
</li>
<li class="mui-table-view-cell"><a href="#">Item2</a>
</li>
<li class="mui-table-view-cell"><a href="#">Item3</a>
</li>
<li class="mui-table-view-cell"><a href="#">Item4</a>
</li>
<li class="mui-table-view-cell"><a href="#">Item5</a>
</li>
<li class="mui-table-view-cell"><a href="#">Item6</a>
</li>
<li class="mui-table-view-cell"><a href="#">Item7</a>
</li>
<li class="mui-table-view-cell"><a href="#">Item8</a>
</li>
<li class="mui-table-view-cell"><a href="#">Item9</a>
</li>
<li class="mui-table-view-cell"><a href="#">Item10</a>
</li>
</ul>
</div>
</div>
<script>
document.getElementById('openPopover').addEventListener('tap', function() {
$('#popover').popover('show', {left: 100, right: 200});
mui('#popover').popover('show', {
left: 100,
right: 200
});
//$('#popover').popover('toggle');//也可以直接调用toggle。该方法自动识别是显示还是隐藏
});
document.getElementById('closePopover').addEventListener('tap', function() {
$('#popover').popover('hide');
mui('#popover').popover('hide');
//$('#popover').popover('toggle');//也可以直接调用toggle。该方法自动识别是显示还是隐藏
});
</script>
</body>
......
......@@ -43,33 +43,34 @@
<script>
//通过init传递当前页面要打开的窗口配置(支持预加载窗口和非预加载窗口,后续只需openWindow传递该窗口id即可)
mui.init({
preloadLimit : 10, //预加载窗口的数量限制(默认为10,超出数量后,先进先出,始终仅保持10个隐藏状态的预加载窗口)
preloadPages : [//指定webview列表
preloadLimit: 10, //预加载窗口的数量限制(默认为10,超出数量后,先进先出,始终仅保持10个隐藏状态的预加载窗口)
preloadPages: [ //指定webview列表
{
//两个webview合成的预加载
id : 'preloadMixWebview', //可选ID,未设置的话使用URL作为窗口ID
url : 'preload-mixwebview-main.html',
subpages : [{
id : 'preloadMixWebviewContent',
url : 'preload-mixwebview-content.html',
styles : {
top : '45px'
id: 'preloadMixWebview', //可选ID,未设置的话使用URL作为窗口ID
url: 'preload-mixwebview-main.html',
subpages: [{
id: 'preloadMixWebviewContent',
url: 'preload-mixwebview-content.html',
styles: {
top: '45px'
},
}]
}, {
id : 'preloadWebview', //可选ID,未设置的话使用URL作为窗口ID
url : 'preload-webview.html',
styles : {
},
afterShowMethodName : 'preload_webview', //跨webview的js call,不应该有这种东西,应该5+触发afterShow,预加载窗口监听实现
}]
id: 'preloadWebview', //可选ID,未设置的话使用URL作为窗口ID
url: 'preload-webview.html',
styles: {},
afterShowMethodName: 'preload_webview', //跨webview的js call,不应该有这种东西,应该5+触发afterShow,预加载窗口监听实现
}
]
});
(function($) {
//点击打开mix窗口(两个webview合成的预加载窗口)
document.getElementById('M_InitMix').addEventListener('tap', function() {
//直接根据窗口ID,打开之前已经设置了的窗口
$.openWindow('preloadMixWebview', {
params : {
count : 10
params: {
count: 10
}
});
});
......@@ -77,8 +78,8 @@
document.getElementById('M_Init').addEventListener('tap', function() {
//直接根据窗口ID,打开之前已经设置了的窗口
$.openWindow('preloadWebview', {
params : {
count : 10
params: {
count: 10
}
});
});
......@@ -88,17 +89,17 @@
//非预加载窗口打开,会自动缓存该页面的配置信息,后续可直接使用ID打开
//预加载窗口,本次打开非预加载,以后打开为预加载
$.openWindow({
id : 'preloadWebviewByOpenWindow',
url : 'preload-webview-with-openwindow.html',
preload : true,
styles : {
},
params : {
count : 10
id: 'preloadWebviewByOpenWindow',
url: 'preload-webview-with-openwindow.html',
preload: true,
styles: {},
params: {
count: 10
},
afterShowMethodName : 'preload_webview'//跨webview的js call,不应该有这种东西,应该5+触发afterShow,预加载窗口监听实现
afterShowMethodName: 'preload_webview' //跨webview的js call,不应该有这种东西,应该5+触发afterShow,预加载窗口监听实现
});
});
})(mui);
</script>
</body>
......
......@@ -27,8 +27,8 @@
<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
<h1 class="mui-title">下拉刷新</h1>
</header>
<div class="mui-content">
<div class="mui-content-padded">
<div id="pullrefresh" class="mui-content mui-scroll-wrapper">
<div class="mui-scroll">
<ul class="mui-table-view mui-table-view-chevron">
<li class="mui-table-view-cell">
<a class="mui-navigate-right">
......@@ -82,27 +82,37 @@
</li>
<li class="mui-table-view-cell">
<a class="mui-navigate-right">
Item 11
</a>
</li>
<li class="mui-table-view-cell">
<a class="mui-navigate-right">
Item 12
</a>
</li>
<li class="mui-table-view-cell">
<a class="mui-navigate-right">
Item 13
</a>
</li>
<li class="mui-table-view-cell">
<a class="mui-navigate-right">
Item 14
</a>
</li>
<li class="mui-table-view-cell">
<a class="mui-navigate-right">
Item 15
</a>
</li>
</ul>
......@@ -112,26 +122,27 @@
mui.init({
swipeBack: false,
pullRefresh: {
container: '.mui-content-padded',
container: '#pullrefresh',
down: {
callback: pullupRefresh
callback: pulldownRefresh
}
}
});
/**
* 上拉加载具体业务实现
* 下拉刷新具体业务实现
*/
function pullupRefresh(callback) {
function pulldownRefresh() {
var self = this;
setTimeout(function() {
callback(); //refresh completed
self.endPulldownToRefresh(); //refresh completed
var table = document.body.querySelector('.mui-table-view');
var cells = document.body.querySelectorAll('.mui-table-view-cell');
for (var i = cells.length, len = i + 3; i < len; i++) {
var li = document.createElement('li');
li.className = 'mui-table-view-cell';
li.innerHTML = '<a class="mui-navigate-right">Item ' + (i + 1) + '</a>';
table.insertBefore(li,table.firstElementChild);
table.insertBefore(li, table.firstElementChild);
}
}, 2000);
}
......
......@@ -23,8 +23,8 @@
<body>
<div class="mui-content">
<div class="mui-content-padded">
<div id="pullrefresh" class="mui-content mui-scroll-wrapper">
<div class="mui-scroll">
<ul class="mui-table-view mui-table-view-chevron">
<li class="mui-table-view-cell">
<a class="mui-navigate-right">
......@@ -106,11 +106,11 @@
</div>
<script>
mui.init({
swipeBack:false,
swipeBack: false,
pullRefresh: {
container: '.mui-content-padded',
container: '#pullrefresh',
down: {
callback:pulldownRefresh
callback: pulldownRefresh
},
up: {
contentrefresh: '正在加载...',
......@@ -121,7 +121,8 @@
/**
* 下拉刷新具体业务实现
*/
function pulldownRefresh(callback){
function pulldownRefresh() {
var self = this;
setTimeout(function() {
var table = document.body.querySelector('.mui-table-view');
var cells = document.body.querySelectorAll('.mui-table-view-cell');
......@@ -132,15 +133,17 @@
//下拉刷新,新纪录插到最前面;
table.insertBefore(li, table.firstChild);
}
callback(); //refresh completed
self.endPulldownToRefresh(); //refresh completed
}, 1500);
}
var count = 0;
/**
* 上拉加载具体业务实现
*/
function pullupRefresh(callback){
function pullupRefresh() {
var self = this;
setTimeout(function() {
callback(); //refresh completed
self.endPullupToRefresh((++count > 2)); //参数为true代表没有更多数据了。
var table = document.body.querySelector('.mui-table-view');
var cells = document.body.querySelectorAll('.mui-table-view-cell');
for (var i = cells.length, len = i + 3; i < len; i++) {
......
......@@ -23,8 +23,8 @@
<body>
<div class="mui-content">
<div class="mui-content-padded">
<div id="pullrefresh" class="mui-content mui-scroll-wrapper">
<div class="mui-scroll">
<ul id='list' class="mui-table-view mui-table-view-chevron">
<li class="mui-table-view-cell">
<a class="mui-navigate-right">
......@@ -61,16 +61,16 @@
</div>
<script>
mui.init({
pullRefresh : {
container: '#list',
down : {
callback :pulldownRefresh
pullRefresh: {
container: '#pullrefresh',
down: {
callback: pulldownRefresh
}
}
});
function pulldownRefresh(callback) {
function pulldownRefresh() {
var self = this;
setTimeout(function() {
var table = document.body.querySelector('.mui-table-view');
var cells = document.body.querySelectorAll('.mui-table-view-cell');
......@@ -81,10 +81,9 @@
table.insertBefore(li, table.firstChild);
}
//refresh completed 这行代码必须调用
callback();
self.endPulldownToRefresh();
}, 1000);
}
</script>
</body>
</html>
\ No newline at end of file
......@@ -27,8 +27,8 @@
<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
<h1 class="mui-title">上拉加载</h1>
</header>
<div class="mui-content">
<div class="mui-content-padded">
<div id="pullrefresh" class="mui-content mui-scroll-wrapper">
<div class="mui-scroll">
<ul class="mui-table-view mui-table-view-chevron">
<li class="mui-table-view-cell">
<a class="mui-navigate-right">
......@@ -45,7 +45,58 @@
Item 3
</a>
</li>
<li class="mui-table-view-cell">
<a class="mui-navigate-right">
Item 4
</a>
</li>
<li class="mui-table-view-cell">
<a class="mui-navigate-right">
Item 5
</a>
</li>
<li class="mui-table-view-cell">
<a class="mui-navigate-right">
Item 6
</a>
</li>
<li class="mui-table-view-cell">
<a class="mui-navigate-right">
Item 7
</a>
</li>
<li class="mui-table-view-cell">
<a class="mui-navigate-right">
Item 8
</a>
</li>
<li class="mui-table-view-cell">
<a class="mui-navigate-right">
Item 9
</a>
</li>
<li class="mui-table-view-cell">
<a class="mui-navigate-right">
Item 10
</a>
</li>
<li class="mui-table-view-cell">
<a class="mui-navigate-right">
Item 11
</a>
</li>
<li class="mui-table-view-cell">
<a class="mui-navigate-right">
Item 12
</a>
</li>
<li class="mui-table-view-cell">
<a class="mui-navigate-right">
Item 13
</a>
</li>
<li class="mui-table-view-cell"><a class="mui-navigate-right">Item 14</a></li>
<li class="mui-table-view-cell"><a class="mui-navigate-right">Item 15</a></li>
</ul>
</div>
</div>
......@@ -53,22 +104,22 @@
mui.init({
swipeBack: false,
pullRefresh: {
container: '.mui-content-padded',
container: '#pullrefresh',
up: {
contentdown: '上拉显示更多',
contentover: '释放立即刷新',
contentrefresh: '正在加载...',
callback: pullupRefresh
}
}
});
var count = 0;
/**
* 上拉加载具体业务实现
*/
function pullupRefresh(callback) {
function pullupRefresh() {
var self = this;
setTimeout(function() {
callback(); //refresh completed
self.endPullupToRefresh((++count > 2)); //参数为true代表没有更多数据了。
var table = document.body.querySelector('.mui-table-view');
var cells = document.body.querySelectorAll('.mui-table-view-cell');
for (var i = cells.length, len = i + 3; i < len; i++) {
......@@ -77,7 +128,7 @@
li.innerHTML = '<a class="mui-navigate-right">Item ' + (i + 1) + '</a>';
table.appendChild(li);
}
}, 2000);
}, 600);
}
</script>
</body>
......
......@@ -38,32 +38,38 @@
</ul>
<div id="slider" class="mui-slider">
<div class="mui-slider-group mui-slider-loop">
<div class="mui-slider-item">
<!-- 额外增加的一个节点(循环轮播:第一个节点是最后一张轮播) -->
<div class="mui-slider-item mui-slider-item-duplicate">
<a href="#">
<img src="../images/yuantiao.jpg">
</a>
</div>
<!-- 第一张 -->
<div class="mui-slider-item">
<a href="#">
<img src="../images/shuijiao.jpg">
</a>
</div>
<!-- 第二张 -->
<div class="mui-slider-item">
<a href="#">
<img src="../images/muwu.jpg">
</a>
</div>
<!-- 第三张 -->
<div class="mui-slider-item">
<a href="#">
<img src="../images/cbd.jpg">
</a>
</div>
<!-- 第四张 -->
<div class="mui-slider-item">
<a href="#">
<img src="../images/yuantiao.jpg">
</a>
</div>
<div class="mui-slider-item">
<!-- 额外增加的一个节点(循环轮播:最后一个节点是第一张轮播) -->
<div class="mui-slider-item mui-slider-item-duplicate">
<a href="#">
<img src="../images/shuijiao.jpg">
</a>
......@@ -82,11 +88,11 @@
document.getElementById("switch").addEventListener('toggle', function(e) {
if (e.detail.isActive) {
slider.slider({
slideshowDelay: 5000
interval: 5000
});
} else {
slider.slider({
slideshowDelay: 0
interval: 0
});
}
});
......
......@@ -30,7 +30,8 @@
<div class="mui-content">
<div class="mui-slider">
<div class="mui-slider-group mui-slider-loop">
<div class="mui-slider-item">
<!-- 额外增加的一个节点(循环轮播:第一个节点是最后一个图文表格) -->
<div class="mui-slider-item mui-slider-item-duplicate">
<ul class="mui-table-view mui-grid-view">
<li class="mui-table-view-cell mui-media mui-col-xs-6"><a href="#"><img class="mui-media-object" src="../images/cbd.jpg">
<div class="mui-media-body">Color of SIP CBD</div></a></li>
......@@ -54,7 +55,8 @@
<div class="mui-media-body">静静看这世界</div></a></li>
</ul>
</div>
<div class="mui-slider-item">
<!-- 额外增加的一个节点(循环轮播:最后一个节点是第一个图文表格) -->
<div class="mui-slider-item mui-slider-item-duplicate">
<ul class="mui-table-view mui-grid-view">
<li class="mui-table-view-cell mui-media mui-col-xs-6"><a href="#"><img class="mui-media-object" src="../images/shuijiao.jpg">
<div class="mui-media-body">幸福就是可以一起睡觉</div></a></li>
......
......@@ -38,7 +38,8 @@
</ul>
<div id="slider" class="mui-slider">
<div class="mui-slider-group mui-slider-loop">
<div class="mui-slider-item">
<!-- 额外增加的一个节点(循环轮播:第一个节点是最后一张轮播) -->
<div class="mui-slider-item mui-slider-item-duplicate">
<a href="#">
<img src="../images/yuantiao.jpg">
<p class="mui-slider-title">静静看这世界</p>
......@@ -68,7 +69,8 @@
<p class="mui-slider-title">静静看这世界</p>
</a>
</div>
<div class="mui-slider-item">
<!-- 额外增加的一个节点(循环轮播:最后一个节点是第一张轮播) -->
<div class="mui-slider-item mui-slider-item-duplicate">
<a href="#">
<img src="../images/shuijiao.jpg">
<p class="mui-slider-title">幸福就是可以一起睡觉</p>
......@@ -88,11 +90,11 @@
document.getElementById("switch").addEventListener('toggle', function(e) {
if (e.detail.isActive) {
slider.slider({
slideshowDelay: 5000
interval: 5000
});
} else {
slider.slider({
slideshowDelay: 0
interval: 0
});
}
});
......
......@@ -38,21 +38,32 @@
</li>
<li class="mui-table-view-cell mui-collapse"><a class="mui-navigate-right" href="#">产品</a>
<ul class="mui-table-view mui-table-view-chevron">
<li class="mui-table-view-cell"><a class="mui-navigate-right" href="#">iOS</a></li>
<li class="mui-table-view-cell"><a class="mui-navigate-right" href="#">Android</a></li>
<li class="mui-table-view-cell"><a class="mui-navigate-right" href="#">HTML5</a></li>
</ul></li>
<li class="mui-table-view-cell"><a class="mui-navigate-right" href="#">iOS</a>
</li>
<li class="mui-table-view-cell"><a class="mui-navigate-right" href="#">Android</a>
</li>
<li class="mui-table-view-cell"><a class="mui-navigate-right" href="#">HTML5</a>
</li>
</ul>
</li>
<li class="mui-table-view-cell mui-collapse"><a class="mui-navigate-right" href="#">方案</a>
<ul class="mui-table-view mui-table-view-chevron">
<li class="mui-table-view-cell"><a class="mui-navigate-right" href="#">PC方案</a></li>
<li class="mui-table-view-cell"><a class="mui-navigate-right" href="#">手机方案</a></li>
<li class="mui-table-view-cell"><a class="mui-navigate-right" href="#">TV方案</a></li>
</ul></li>
<li class="mui-table-view-cell"><a class="mui-navigate-right" href="#">PC方案</a>
</li>
<li class="mui-table-view-cell"><a class="mui-navigate-right" href="#">手机方案</a>
</li>
<li class="mui-table-view-cell"><a class="mui-navigate-right" href="#">TV方案</a>
</li>
</ul>
</li>
<li class="mui-table-view-cell mui-collapse"><a class="mui-navigate-right" href="#">新闻</a>
<ul class="mui-table-view mui-table-view-chevron">
<li class="mui-table-view-cell"><a class="mui-navigate-right" href="#">公司新闻</a></li>
<li class="mui-table-view-cell"><a class="mui-navigate-right" href="#">行业新闻</a></li>
</ul></li>
<li class="mui-table-view-cell"><a class="mui-navigate-right" href="#">公司新闻</a>
</li>
<li class="mui-table-view-cell"><a class="mui-navigate-right" href="#">行业新闻</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
......
......@@ -322,9 +322,6 @@
</ul>
</div>
<script>
mui.init({
swipeBack : false
});
(function($) {
var btnArray = ['确认','取消'];
$('#OA_task_1').on('tap', '.oa-task-action', function() {
......
......@@ -37,7 +37,7 @@
</div>
<script>
document.getElementById('M_Menu').addEventListener('tap', function() {
alert('你刚点了按钮');
mui.alert('你刚点了按钮');
});
</script>
</body>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
/*!
* =====================================================
* Mui v0.5.6 (https://github.com/dcloudio/mui)
* Mui v0.5.8 (https://github.com/dcloudio/mui)
* =====================================================
*/
/*!
......@@ -3107,6 +3107,9 @@ var __module0__ = (function(__dependency1__, __dependency2__, __dependency3__, _
return options.inverse(this);
}
});
hbs.registerHelper("last", function(array, options) {
return options.fn(array[array.length - 1]);
});
}
})(Handlebars);
Handlebars.registerPartial("badge", Handlebars.template({"1":function(depth0,helpers,partials,data) {
......@@ -3186,6 +3189,33 @@ Handlebars.registerPartial("checkbox", Handlebars.template({"1":function(depth0,
return buffer + "\n";
},"useData":true}));
Handlebars.registerPartial("grid", Handlebars.template({"1":function(depth0,helpers,partials,data) {
var stack1, buffer = "<ul class=\"mui-table-view mui-grid-view\">\n";
stack1 = helpers.each.call(depth0, (depth0 != null ? depth0.grid : depth0), {"name":"each","hash":{},"fn":this.program(2, data),"inverse":this.noop,"data":data});
if (stack1 != null) { buffer += stack1; }
return buffer + "</ul>\n";
},"2":function(depth0,helpers,partials,data) {
var stack1, helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression, buffer = " <li class=\"mui-table-view-cell mui-media mui-col-xs-6\">\n <a href=\"";
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0.href : depth0), {"name":"if","hash":{},"fn":this.program(3, data),"inverse":this.program(5, data),"data":data});
if (stack1 != null) { buffer += stack1; }
buffer += "\">\n <img class=\"mui-media-object\" src=\""
+ escapeExpression(((helper = (helper = helpers.src || (depth0 != null ? depth0.src : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"src","hash":{},"data":data}) : helper)))
+ "\">\n <div class=\"mui-media-body\">";
stack1 = ((helper = (helper = helpers.title || (depth0 != null ? depth0.title : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"title","hash":{},"data":data}) : helper));
if (stack1 != null) { buffer += stack1; }
return buffer + "</div>\n </a>\n </li>\n";
},"3":function(depth0,helpers,partials,data) {
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
return escapeExpression(((helper = (helper = helpers.href || (depth0 != null ? depth0.href : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"href","hash":{},"data":data}) : helper)));
},"5":function(depth0,helpers,partials,data) {
return "#";
},"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
var stack1, lambda=this.lambda, blockHelperMissing=helpers.blockHelperMissing, buffer = "";
stack1 = blockHelperMissing.call(depth0, lambda(depth0, depth0), {"name":"this","hash":{},"fn":this.program(1, data),"inverse":this.noop,"data":data});
if (stack1 != null) { buffer += stack1; }
return buffer;
},"useData":true}));
Handlebars.registerPartial("media", Handlebars.template({"1":function(depth0,helpers,partials,data) {
var stack1, buffer = " ";
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0.src : depth0), {"name":"if","hash":{},"fn":this.program(2, data),"inverse":this.noop,"data":data});
......@@ -3265,10 +3295,10 @@ Handlebars.registerPartial("slider", Handlebars.template({"1":function(depth0,he
stack1 = ((helper = (helper = helpers.loop || (depth0 != null ? depth0.loop : depth0)) != null ? helper : helperMissing),(options={"name":"loop","hash":{},"fn":this.program(11, data),"inverse":this.noop,"data":data}),(typeof helper === functionType ? helper.call(depth0, options) : helper));
if (!helpers.loop) { stack1 = blockHelperMissing.call(depth0, stack1, options); }
if (stack1 != null) { buffer += stack1; }
buffer += "\n </div>\n <div class=\"mui-slider-indicator mui-text-right\">\n";
stack1 = helpers.each.call(depth0, (depth0 != null ? depth0.slider : depth0), {"name":"each","hash":{},"fn":this.program(13, data),"inverse":this.noop,"data":data});
buffer += "\n </div>\n";
stack1 = helpers['if'].call(depth0, ((stack1 = ((stack1 = (depth0 != null ? depth0.slider : depth0)) != null ? stack1['0'] : stack1)) != null ? stack1.src : stack1), {"name":"if","hash":{},"fn":this.program(13, data),"inverse":this.program(17, data),"data":data});
if (stack1 != null) { buffer += stack1; }
return buffer + " </div>\n </div>\n";
return buffer + " </div>\n";
},"2":function(depth0,helpers,partials,data) {
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
return " id=\""
......@@ -3277,8 +3307,8 @@ Handlebars.registerPartial("slider", Handlebars.template({"1":function(depth0,he
},"4":function(depth0,helpers,partials,data) {
return " mui-slider-loop";
},"6":function(depth0,helpers,partials,data) {
var stack1, buffer = " ";
stack1 = helpers['with'].call(depth0, ((stack1 = (depth0 != null ? depth0.slider : depth0)) != null ? stack1['0'] : stack1), {"name":"with","hash":{},"fn":this.program(7, data),"inverse":this.noop,"data":data});
var stack1, helperMissing=helpers.helperMissing, buffer = " ";
stack1 = ((helpers.last || (depth0 && depth0.last) || helperMissing).call(depth0, (depth0 != null ? depth0.slider : depth0), {"name":"last","hash":{},"fn":this.program(7, data),"inverse":this.noop,"data":data}));
if (stack1 != null) { buffer += stack1; }
return buffer + " ";
},"7":function(depth0,helpers,partials,data) {
......@@ -3293,17 +3323,27 @@ Handlebars.registerPartial("slider", Handlebars.template({"1":function(depth0,he
return buffer + " </div>\n ";
},"11":function(depth0,helpers,partials,data) {
var stack1, buffer = " ";
stack1 = helpers['with'].call(depth0, ((stack1 = (depth0 != null ? depth0.slider : depth0)) != null ? stack1['slider.length-1'] : stack1), {"name":"with","hash":{},"fn":this.program(7, data),"inverse":this.noop,"data":data});
stack1 = helpers['with'].call(depth0, ((stack1 = (depth0 != null ? depth0.slider : depth0)) != null ? stack1['0'] : stack1), {"name":"with","hash":{},"fn":this.program(7, data),"inverse":this.noop,"data":data});
if (stack1 != null) { buffer += stack1; }
return buffer + " ";
},"13":function(depth0,helpers,partials,data) {
var stack1, buffer = " <div class=\"mui-slider-indicator mui-text-right\">\n";
stack1 = helpers.each.call(depth0, (depth0 != null ? depth0.slider : depth0), {"name":"each","hash":{},"fn":this.program(14, data),"inverse":this.noop,"data":data});
if (stack1 != null) { buffer += stack1; }
return buffer + " </div>\n";
},"14":function(depth0,helpers,partials,data) {
var stack1, buffer = " <div class=\"mui-indicator";
stack1 = helpers['if'].call(depth0, (data && data.first), {"name":"if","hash":{},"fn":this.program(14, data),"inverse":this.noop,"data":data});
stack1 = helpers['if'].call(depth0, (data && data.first), {"name":"if","hash":{},"fn":this.program(15, data),"inverse":this.noop,"data":data});
if (stack1 != null) { buffer += stack1; }
return buffer + "\"></div>\n";
},"14":function(depth0,helpers,partials,data) {
},"15":function(depth0,helpers,partials,data) {
return " mui-active";
},"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
},"17":function(depth0,helpers,partials,data) {
var stack1, lambda=this.lambda, escapeExpression=this.escapeExpression;
return " <div class=\"mui-slider-indicator\" style=\"position: static;background-color: #fff;\">\n <span class=\"mui-action mui-action-previous mui-icon mui-icon-back\"></span>\n <div class=\"mui-number\">\n <span>1</span> / "
+ escapeExpression(lambda(((stack1 = (depth0 != null ? depth0.slider : depth0)) != null ? stack1.length : stack1), depth0))
+ "\n </div>\n <span class=\"mui-action mui-action-next mui-icon mui-icon-forward\"></span>\n </div>\n";
},"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
var stack1, lambda=this.lambda, blockHelperMissing=helpers.blockHelperMissing, buffer = "";
stack1 = blockHelperMissing.call(depth0, lambda(depth0, depth0), {"name":"this","hash":{},"fn":this.program(1, data),"inverse":this.noop,"data":data});
if (stack1 != null) { buffer += stack1; }
......@@ -3331,9 +3371,24 @@ Handlebars.registerPartial("slideritem", Handlebars.template({"1":function(depth
stack1 = lambda(depth0, depth0);
if (stack1 != null) { buffer += stack1; }
return buffer + "</p>\n";
},"8":function(depth0,helpers,partials,data) {
var stack1, buffer = "<ul class=\"mui-table-view mui-grid-view\">\n";
stack1 = helpers.each.call(depth0, depth0, {"name":"each","hash":{},"fn":this.program(9, data),"inverse":this.noop,"data":data});
if (stack1 != null) { buffer += stack1; }
return buffer + "</ul>\n";
},"9":function(depth0,helpers,partials,data) {
var stack1, helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression, buffer = " <li class=\"mui-table-view-cell mui-media mui-col-xs-6\">\n <a href=\"";
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0.href : depth0), {"name":"if","hash":{},"fn":this.program(2, data),"inverse":this.program(4, data),"data":data});
if (stack1 != null) { buffer += stack1; }
buffer += "\">\n <img class=\"mui-media-object\" src=\""
+ escapeExpression(((helper = (helper = helpers.src || (depth0 != null ? depth0.src : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"src","hash":{},"data":data}) : helper)))
+ "\">\n <div class=\"mui-media-body\">";
stack1 = ((helper = (helper = helpers.title || (depth0 != null ? depth0.title : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"title","hash":{},"data":data}) : helper));
if (stack1 != null) { buffer += stack1; }
return buffer + "</div>\n </a>\n </li>\n";
},"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
var stack1, lambda=this.lambda, blockHelperMissing=helpers.blockHelperMissing, buffer = "";
stack1 = blockHelperMissing.call(depth0, lambda(depth0, depth0), {"name":"this","hash":{},"fn":this.program(1, data),"inverse":this.noop,"data":data});
var stack1, buffer = "";
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0.src : depth0), {"name":"if","hash":{},"fn":this.program(1, data),"inverse":this.program(8, data),"data":data});
if (stack1 != null) { buffer += stack1; }
return buffer;
},"useData":true}));
......@@ -3421,10 +3476,31 @@ Handlebars.registerPartial("tableviewcell", Handlebars.template({"1":function(de
if (stack1 != null) { buffer += stack1; }
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0.tableview : depth0), {"name":"if","hash":{},"fn":this.program(12, data),"inverse":this.noop,"data":data});
if (stack1 != null) { buffer += stack1; }
buffer += "\">\n";
stack1 = ((helpers.ifCond || (depth0 && depth0.ifCond) || helperMissing).call(depth0, (depth0 != null ? depth0.navigate : depth0), "||", (depth0 != null ? depth0.href : depth0), {"name":"ifCond","hash":{},"fn":this.program(14, data),"inverse":this.noop,"data":data}));
buffer += "\">\n ";
stack1 = ((helpers.ifCond || (depth0 && depth0.ifCond) || helperMissing).call(depth0, (depth0 != null ? depth0.title : depth0), "||", (depth0 != null ? depth0.src : depth0), {"name":"ifCond","hash":{},"fn":this.program(14, data),"inverse":this.program(26, data),"data":data}));
if (stack1 != null) { buffer += stack1; }
stack1 = ((helpers.ifCond || (depth0 && depth0.ifCond) || helperMissing).call(depth0, (depth0 != null ? depth0.src : depth0), "||", (depth0 != null ? depth0.desc : depth0), {"name":"ifCond","hash":{},"fn":this.program(19, data),"inverse":this.program(21, data),"data":data}));
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0.tableview : depth0), {"name":"if","hash":{},"fn":this.program(28, data),"inverse":this.noop,"data":data});
if (stack1 != null) { buffer += stack1; }
return buffer + "\n</li>\n";
},"2":function(depth0,helpers,partials,data) {
return "divider";
},"4":function(depth0,helpers,partials,data) {
return "cell";
},"6":function(depth0,helpers,partials,data) {
return " mui-radio";
},"8":function(depth0,helpers,partials,data) {
return " mui-checkbox";
},"10":function(depth0,helpers,partials,data) {
var lambda=this.lambda, escapeExpression=this.escapeExpression;
return " mui-"
+ escapeExpression(lambda(depth0, depth0));
},"12":function(depth0,helpers,partials,data) {
return " mui-collapse";
},"14":function(depth0,helpers,partials,data) {
var stack1, helperMissing=helpers.helperMissing, buffer = " ";
stack1 = ((helpers.ifCond || (depth0 && depth0.ifCond) || helperMissing).call(depth0, (depth0 != null ? depth0.navigate : depth0), "||", (depth0 != null ? depth0.href : depth0), {"name":"ifCond","hash":{},"fn":this.program(15, data),"inverse":this.noop,"data":data}));
if (stack1 != null) { buffer += stack1; }
stack1 = ((helpers.ifCond || (depth0 && depth0.ifCond) || helperMissing).call(depth0, (depth0 != null ? depth0.src : depth0), "||", (depth0 != null ? depth0.desc : depth0), {"name":"ifCond","hash":{},"fn":this.program(20, data),"inverse":this.program(22, data),"data":data}));
if (stack1 != null) { buffer += stack1; }
buffer += "\n";
stack1 = this.invokePartial(partials.badge, ' ', 'badge', depth0, undefined, helpers, partials, data);
......@@ -3445,51 +3521,39 @@ Handlebars.registerPartial("tableviewcell", Handlebars.template({"1":function(de
stack1 = this.invokePartial(partials.media, ' ', 'media', depth0, undefined, helpers, partials, data);
if (stack1 != null) { buffer += stack1; }
buffer += "\n";
stack1 = ((helpers.ifCond || (depth0 && depth0.ifCond) || helperMissing).call(depth0, (depth0 != null ? depth0.navigate : depth0), "||", (depth0 != null ? depth0.href : depth0), {"name":"ifCond","hash":{},"fn":this.program(23, data),"inverse":this.noop,"data":data}));
stack1 = ((helpers.ifCond || (depth0 && depth0.ifCond) || helperMissing).call(depth0, (depth0 != null ? depth0.navigate : depth0), "||", (depth0 != null ? depth0.href : depth0), {"name":"ifCond","hash":{},"fn":this.program(24, data),"inverse":this.noop,"data":data}));
if (stack1 != null) { buffer += stack1; }
buffer += " ";
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0.tableview : depth0), {"name":"if","hash":{},"fn":this.program(25, data),"inverse":this.noop,"data":data});
if (stack1 != null) { buffer += stack1; }
return buffer + "\n</li>\n";
},"2":function(depth0,helpers,partials,data) {
return "divider";
},"4":function(depth0,helpers,partials,data) {
return "cell";
},"6":function(depth0,helpers,partials,data) {
return " mui-radio";
},"8":function(depth0,helpers,partials,data) {
return " mui-checkbox";
},"10":function(depth0,helpers,partials,data) {
var lambda=this.lambda, escapeExpression=this.escapeExpression;
return " mui-"
+ escapeExpression(lambda(depth0, depth0));
},"12":function(depth0,helpers,partials,data) {
return " mui-collapse";
},"14":function(depth0,helpers,partials,data) {
var stack1, buffer = " <a class=\"";
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0.navigate : depth0), {"name":"if","hash":{},"fn":this.program(15, data),"inverse":this.noop,"data":data});
return buffer;
},"15":function(depth0,helpers,partials,data) {
var stack1, buffer = "\n <a class=\"";
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0.navigate : depth0), {"name":"if","hash":{},"fn":this.program(16, data),"inverse":this.noop,"data":data});
if (stack1 != null) { buffer += stack1; }
buffer += "\" ";
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0.href : depth0), {"name":"if","hash":{},"fn":this.program(17, data),"inverse":this.noop,"data":data});
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0.href : depth0), {"name":"if","hash":{},"fn":this.program(18, data),"inverse":this.noop,"data":data});
if (stack1 != null) { buffer += stack1; }
return buffer + ">\n";
},"15":function(depth0,helpers,partials,data) {
},"16":function(depth0,helpers,partials,data) {
return "mui-navigate-right";
},"17":function(depth0,helpers,partials,data) {
},"18":function(depth0,helpers,partials,data) {
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
return " href=\""
+ escapeExpression(((helper = (helper = helpers.href || (depth0 != null ? depth0.href : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"href","hash":{},"data":data}) : helper)))
+ "\" ";
},"19":function(depth0,helpers,partials,data) {
},"20":function(depth0,helpers,partials,data) {
return "";
},"21":function(depth0,helpers,partials,data) {
},"22":function(depth0,helpers,partials,data) {
var stack1, helper, functionType="function", helperMissing=helpers.helperMissing, buffer = " ";
stack1 = ((helper = (helper = helpers.title || (depth0 != null ? depth0.title : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"title","hash":{},"data":data}) : helper));
if (stack1 != null) { buffer += stack1; }
return buffer + "\n";
},"23":function(depth0,helpers,partials,data) {
return "\n </a>\r";
},"25":function(depth0,helpers,partials,data) {
},"24":function(depth0,helpers,partials,data) {
return "\n </a>\n";
},"26":function(depth0,helpers,partials,data) {
var stack1, lambda=this.lambda, buffer = " ";
stack1 = lambda(depth0, depth0);
if (stack1 != null) { buffer += stack1; }
return buffer + "\n";
},"28":function(depth0,helpers,partials,data) {
var stack1, buffer = " ";
stack1 = this.invokePartial(partials.tableview, '', 'tableview', depth0, undefined, helpers, partials, data);
if (stack1 != null) { buffer += stack1; }
......@@ -3500,51 +3564,65 @@ Handlebars.registerPartial("tableviewcell", Handlebars.template({"1":function(de
if (stack1 != null) { return stack1; }
else { return ''; }
},"usePartial":true,"useData":true}));
(function($) {
(function($, document) {
var isArray = Array.isArray ||
function(object) {
return object instanceof Array
};
$.each(['tableview', 'slider'], function(index, plugin) {
var div = document.createElement('div');
$.each(['tableview', 'slider', 'grid'], function(index, plugin) {
(function(name) {
var oldPlugin = null;
if (name === 'slider') {
var oldPluginApi = null;
if ($.fn[name]) {
oldPlugin = $.fn[name];
}
$.fn[name] = function(options) {
var template = Handlebars.compile('{{>' + name + '}}');
var opts = {
echo: true
output: true
};
if (isArray(options)) {
opts[name] = options;
} else {
opts = $.extend(opts, options);
}
if (!opts.hasOwnProperty(name)) { //no data
return oldPlugin && oldPlugin.call(this, opts);
}
var template = Handlebars.compile(opts.tpl ? opts.tpl : '{{>' + name + '}}');
var html = '';
this.each(function() {
var id = this.id;
html = template(options);
if (options.echo === false) {
html = template($.extend({
id: id
}, opts));
if (opts.output === false) {
return false;
} else {
this.outerHTML = html;
if (id) {
this.setAttribute('id', id);
}
div.innerHTML = html;
var element = null;
while (!!(element = div.firstElementChild)) {
this.parentNode.insertBefore(element, this);
if (oldPlugin) {
oldPlugin.call(this, opts);
if (name === 'slider' && element.querySelector('.mui-slider-group')) {
$.ready(function() {
oldPluginApi = oldPlugin.call($(element), opts);
});
}
}
}
this.parentNode.removeChild(this);
}
});
if (options.echo === false) {
if (opts.output === false) {
return html;
} else if (oldPluginApi) {
return oldPluginApi;
}
};
})(plugin);
});
})(mui);
\ No newline at end of file
})(mui, document);
\ No newline at end of file
/*!
* =====================================================
* Mui v0.5.7 (https://github.com/dcloudio/mui)
* Mui v0.5.8 (https://github.com/dcloudio/mui)
* =====================================================
*/
!function(a,b){"function"==typeof define&&define.amd?define([],b):"object"==typeof exports?module.exports=b():a.Handlebars=a.Handlebars||b()}(this,function(){var a=function(){"use strict";function a(a){this.string=a}var b;return a.prototype.toString=function(){return""+this.string},b=a}(),b=function(a){"use strict";function b(a){return i[a]}function c(a){for(var b=1;b<arguments.length;b++)for(var c in arguments[b])Object.prototype.hasOwnProperty.call(arguments[b],c)&&(a[c]=arguments[b][c]);return a}function d(a){return a instanceof h?a.toString():null==a?"":a?(a=""+a,k.test(a)?a.replace(j,b):a):a+""}function e(a){return a||0===a?n(a)&&0===a.length?!0:!1:!0}function f(a,b){return(a?a+".":"")+b}var g={},h=a,i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},j=/[&<>"'`]/g,k=/[&<>"'`]/;g.extend=c;var l=Object.prototype.toString;g.toString=l;var m=function(a){return"function"==typeof a};m(/x/)&&(m=function(a){return"function"==typeof a&&"[object Function]"===l.call(a)});var m;g.isFunction=m;var n=Array.isArray||function(a){return a&&"object"==typeof a?"[object Array]"===l.call(a):!1};return g.isArray=n,g.escapeExpression=d,g.isEmpty=e,g.appendContextPath=f,g}(a),c=function(){"use strict";function a(a,b){var d;b&&b.firstLine&&(d=b.firstLine,a+=" - "+d+":"+b.firstColumn);for(var e=Error.prototype.constructor.call(this,a),f=0;f<c.length;f++)this[c[f]]=e[c[f]];d&&(this.lineNumber=d,this.column=b.firstColumn)}var b,c=["description","fileName","lineNumber","message","name","number","stack"];return a.prototype=new Error,b=a}(),d=function(a,b){"use strict";function c(a,b){this.helpers=a||{},this.partials=b||{},d(this)}function d(a){a.registerHelper("helperMissing",function(){if(1===arguments.length)return void 0;throw new g("Missing helper: '"+arguments[arguments.length-1].name+"'")}),a.registerHelper("blockHelperMissing",function(b,c){var d=c.inverse,e=c.fn;if(b===!0)return e(this);if(b===!1||null==b)return d(this);if(k(b))return b.length>0?(c.ids&&(c.ids=[c.name]),a.helpers.each(b,c)):d(this);if(c.data&&c.ids){var g=q(c.data);g.contextPath=f.appendContextPath(c.data.contextPath,c.name),c={data:g}}return e(b,c)}),a.registerHelper("each",function(a,b){if(!b)throw new g("Must pass iterator to #each");var c,d,e=b.fn,h=b.inverse,i=0,j="";if(b.data&&b.ids&&(d=f.appendContextPath(b.data.contextPath,b.ids[0])+"."),l(a)&&(a=a.call(this)),b.data&&(c=q(b.data)),a&&"object"==typeof a)if(k(a))for(var m=a.length;m>i;i++)c&&(c.index=i,c.first=0===i,c.last=i===a.length-1,d&&(c.contextPath=d+i)),j+=e(a[i],{data:c});else for(var n in a)a.hasOwnProperty(n)&&(c&&(c.key=n,c.index=i,c.first=0===i,d&&(c.contextPath=d+n)),j+=e(a[n],{data:c}),i++);return 0===i&&(j=h(this)),j}),a.registerHelper("if",function(a,b){return l(a)&&(a=a.call(this)),!b.hash.includeZero&&!a||f.isEmpty(a)?b.inverse(this):b.fn(this)}),a.registerHelper("unless",function(b,c){return a.helpers["if"].call(this,b,{fn:c.inverse,inverse:c.fn,hash:c.hash})}),a.registerHelper("with",function(a,b){l(a)&&(a=a.call(this));var c=b.fn;if(f.isEmpty(a))return b.inverse(this);if(b.data&&b.ids){var d=q(b.data);d.contextPath=f.appendContextPath(b.data.contextPath,b.ids[0]),b={data:d}}return c(a,b)}),a.registerHelper("log",function(b,c){var d=c.data&&null!=c.data.level?parseInt(c.data.level,10):1;a.log(d,b)}),a.registerHelper("lookup",function(a,b){return a&&a[b]})}var e={},f=a,g=b,h="2.0.0";e.VERSION=h;var i=6;e.COMPILER_REVISION=i;var j={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1"};e.REVISION_CHANGES=j;var k=f.isArray,l=f.isFunction,m=f.toString,n="[object Object]";e.HandlebarsEnvironment=c,c.prototype={constructor:c,logger:o,log:p,registerHelper:function(a,b){if(m.call(a)===n){if(b)throw new g("Arg not supported with multiple helpers");f.extend(this.helpers,a)}else this.helpers[a]=b},unregisterHelper:function(a){delete this.helpers[a]},registerPartial:function(a,b){m.call(a)===n?f.extend(this.partials,a):this.partials[a]=b},unregisterPartial:function(a){delete this.partials[a]}};var o={methodMap:{0:"debug",1:"info",2:"warn",3:"error"},DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(a,b){if(o.level<=a){var c=o.methodMap[a];"undefined"!=typeof console&&console[c]&&console[c].call(console,b)}}};e.logger=o;var p=o.log;e.log=p;var q=function(a){var b=f.extend({},a);return b._parent=a,b};return e.createFrame=q,e}(b,c),e=function(a,b,c){"use strict";function d(a){var b=a&&a[0]||1,c=m;if(b!==c){if(c>b){var d=n[c],e=n[b];throw new l("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+d+") or downgrade your runtime to an older version ("+e+").")}throw new l("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+a[1]+").")}}function e(a,b){if(!b)throw new l("No environment passed to template");if(!a||!a.main)throw new l("Unknown template object: "+typeof a);b.VM.checkRevision(a.compiler);var c=function(c,d,e,f,g,h,i,j,m){g&&(f=k.extend({},f,g));var n=b.VM.invokePartial.call(this,c,e,f,h,i,j,m);if(null==n&&b.compile){var o={helpers:h,partials:i,data:j,depths:m};i[e]=b.compile(c,{data:void 0!==j,compat:a.compat},b),n=i[e](f,o)}if(null!=n){if(d){for(var p=n.split("\n"),q=0,r=p.length;r>q&&(p[q]||q+1!==r);q++)p[q]=d+p[q];n=p.join("\n")}return n}throw new l("The partial "+e+" could not be compiled when running in runtime-only mode")},d={lookup:function(a,b){for(var c=a.length,d=0;c>d;d++)if(a[d]&&null!=a[d][b])return a[d][b]},lambda:function(a,b){return"function"==typeof a?a.call(b):a},escapeExpression:k.escapeExpression,invokePartial:c,fn:function(b){return a[b]},programs:[],program:function(a,b,c){var d=this.programs[a],e=this.fn(a);return b||c?d=f(this,a,e,b,c):d||(d=this.programs[a]=f(this,a,e)),d},data:function(a,b){for(;a&&b--;)a=a._parent;return a},merge:function(a,b){var c=a||b;return a&&b&&a!==b&&(c=k.extend({},b,a)),c},noop:b.VM.noop,compilerInfo:a.compiler},e=function(b,c){c=c||{};var f=c.data;e._setup(c),!c.partial&&a.useData&&(f=i(b,f));var g;return a.useDepths&&(g=c.depths?[b].concat(c.depths):[b]),a.main.call(d,b,d.helpers,d.partials,f,g)};return e.isTop=!0,e._setup=function(c){c.partial?(d.helpers=c.helpers,d.partials=c.partials):(d.helpers=d.merge(c.helpers,b.helpers),a.usePartial&&(d.partials=d.merge(c.partials,b.partials)))},e._child=function(b,c,e){if(a.useDepths&&!e)throw new l("must pass parent depths");return f(d,b,a[b],c,e)},e}function f(a,b,c,d,e){var f=function(b,f){return f=f||{},c.call(a,b,a.helpers,a.partials,f.data||d,e&&[b].concat(e))};return f.program=b,f.depth=e?e.length:0,f}function g(a,b,c,d,e,f,g){var h={partial:!0,helpers:d,partials:e,data:f,depths:g};if(void 0===a)throw new l("The partial "+b+" could not be found");return a instanceof Function?a(c,h):void 0}function h(){return""}function i(a,b){return b&&"root"in b||(b=b?o(b):{},b.root=a),b}var j={},k=a,l=b,m=c.COMPILER_REVISION,n=c.REVISION_CHANGES,o=c.createFrame;return j.checkRevision=d,j.template=e,j.program=f,j.invokePartial=g,j.noop=h,j}(b,c,d),f=function(a,b,c,d,e){"use strict";var f,g=a,h=b,i=c,j=d,k=e,l=function(){var a=new g.HandlebarsEnvironment;return j.extend(a,g),a.SafeString=h,a.Exception=i,a.Utils=j,a.escapeExpression=j.escapeExpression,a.VM=k,a.template=function(b){return k.template(b,a)},a},m=l();return m.create=l,m["default"]=m,f=m}(d,a,c,b,e),g=function(a){"use strict";function b(a){a=a||{},this.firstLine=a.first_line,this.firstColumn=a.first_column,this.lastColumn=a.last_column,this.lastLine=a.last_line}var c,d=a,e={ProgramNode:function(a,c,d){b.call(this,d),this.type="program",this.statements=a,this.strip=c},MustacheNode:function(a,c,d,f,g){if(b.call(this,g),this.type="mustache",this.strip=f,null!=d&&d.charAt){var h=d.charAt(3)||d.charAt(2);this.escaped="{"!==h&&"&"!==h}else this.escaped=!!d;this.sexpr=a instanceof e.SexprNode?a:new e.SexprNode(a,c),this.id=this.sexpr.id,this.params=this.sexpr.params,this.hash=this.sexpr.hash,this.eligibleHelper=this.sexpr.eligibleHelper,this.isHelper=this.sexpr.isHelper},SexprNode:function(a,c,d){b.call(this,d),this.type="sexpr",this.hash=c;var e=this.id=a[0],f=this.params=a.slice(1);this.isHelper=!(!f.length&&!c),this.eligibleHelper=this.isHelper||e.isSimple},PartialNode:function(a,c,d,e,f){b.call(this,f),this.type="partial",this.partialName=a,this.context=c,this.hash=d,this.strip=e,this.strip.inlineStandalone=!0},BlockNode:function(a,c,d,e,f){b.call(this,f),this.type="block",this.mustache=a,this.program=c,this.inverse=d,this.strip=e,d&&!c&&(this.isInverse=!0)},RawBlockNode:function(a,c,f,g){if(b.call(this,g),a.sexpr.id.original!==f)throw new d(a.sexpr.id.original+" doesn't match "+f,this);c=new e.ContentNode(c,g),this.type="block",this.mustache=a,this.program=new e.ProgramNode([c],{},g)},ContentNode:function(a,c){b.call(this,c),this.type="content",this.original=this.string=a},HashNode:function(a,c){b.call(this,c),this.type="hash",this.pairs=a},IdNode:function(a,c){b.call(this,c),this.type="ID";for(var e="",f=[],g=0,h="",i=0,j=a.length;j>i;i++){var k=a[i].part;if(e+=(a[i].separator||"")+k,".."===k||"."===k||"this"===k){if(f.length>0)throw new d("Invalid path: "+e,this);".."===k?(g++,h+="../"):this.isScoped=!0}else f.push(k)}this.original=e,this.parts=f,this.string=f.join("."),this.depth=g,this.idName=h+this.string,this.isSimple=1===a.length&&!this.isScoped&&0===g,this.stringModeValue=this.string},PartialNameNode:function(a,c){b.call(this,c),this.type="PARTIAL_NAME",this.name=a.original},DataNode:function(a,c){b.call(this,c),this.type="DATA",this.id=a,this.stringModeValue=a.stringModeValue,this.idName="@"+a.stringModeValue},StringNode:function(a,c){b.call(this,c),this.type="STRING",this.original=this.string=this.stringModeValue=a},NumberNode:function(a,c){b.call(this,c),this.type="NUMBER",this.original=this.number=a,this.stringModeValue=Number(a)},BooleanNode:function(a,c){b.call(this,c),this.type="BOOLEAN",this.bool=a,this.stringModeValue="true"===a},CommentNode:function(a,c){b.call(this,c),this.type="comment",this.comment=a,this.strip={inlineStandalone:!0}}};return c=e}(c),h=function(){"use strict";var a,b=function(){function a(){this.yy={}}var b={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,CONTENT:12,COMMENT:13,openRawBlock:14,END_RAW_BLOCK:15,OPEN_RAW_BLOCK:16,sexpr:17,CLOSE_RAW_BLOCK:18,openBlock:19,block_option0:20,closeBlock:21,openInverse:22,block_option1:23,OPEN_BLOCK:24,CLOSE:25,OPEN_INVERSE:26,inverseAndProgram:27,INVERSE:28,OPEN_ENDBLOCK:29,path:30,OPEN:31,OPEN_UNESCAPED:32,CLOSE_UNESCAPED:33,OPEN_PARTIAL:34,partialName:35,param:36,partial_option0:37,partial_option1:38,sexpr_repetition0:39,sexpr_option0:40,dataName:41,STRING:42,NUMBER:43,BOOLEAN:44,OPEN_SEXPR:45,CLOSE_SEXPR:46,hash:47,hash_repetition_plus0:48,hashSegment:49,ID:50,EQUALS:51,DATA:52,pathSegments:53,SEP:54,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",12:"CONTENT",13:"COMMENT",15:"END_RAW_BLOCK",16:"OPEN_RAW_BLOCK",18:"CLOSE_RAW_BLOCK",24:"OPEN_BLOCK",25:"CLOSE",26:"OPEN_INVERSE",28:"INVERSE",29:"OPEN_ENDBLOCK",31:"OPEN",32:"OPEN_UNESCAPED",33:"CLOSE_UNESCAPED",34:"OPEN_PARTIAL",42:"STRING",43:"NUMBER",44:"BOOLEAN",45:"OPEN_SEXPR",46:"CLOSE_SEXPR",50:"ID",51:"EQUALS",52:"DATA",54:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[10,3],[14,3],[9,4],[9,4],[19,3],[22,3],[27,2],[21,3],[8,3],[8,3],[11,5],[11,4],[17,3],[17,1],[36,1],[36,1],[36,1],[36,1],[36,1],[36,3],[47,1],[49,3],[35,1],[35,1],[35,1],[41,2],[30,1],[53,3],[53,1],[6,0],[6,2],[20,0],[20,1],[23,0],[23,1],[37,0],[37,1],[38,0],[38,1],[39,0],[39,2],[40,0],[40,1],[48,1],[48,2]],performAction:function(a,b,c,d,e,f){var g=f.length-1;switch(e){case 1:return d.prepareProgram(f[g-1].statements,!0),f[g-1];case 2:this.$=new d.ProgramNode(d.prepareProgram(f[g]),{},this._$);break;case 3:this.$=f[g];break;case 4:this.$=f[g];break;case 5:this.$=f[g];break;case 6:this.$=f[g];break;case 7:this.$=new d.ContentNode(f[g],this._$);break;case 8:this.$=new d.CommentNode(f[g],this._$);break;case 9:this.$=new d.RawBlockNode(f[g-2],f[g-1],f[g],this._$);break;case 10:this.$=new d.MustacheNode(f[g-1],null,"","",this._$);break;case 11:this.$=d.prepareBlock(f[g-3],f[g-2],f[g-1],f[g],!1,this._$);break;case 12:this.$=d.prepareBlock(f[g-3],f[g-2],f[g-1],f[g],!0,this._$);break;case 13:this.$=new d.MustacheNode(f[g-1],null,f[g-2],d.stripFlags(f[g-2],f[g]),this._$);break;case 14:this.$=new d.MustacheNode(f[g-1],null,f[g-2],d.stripFlags(f[g-2],f[g]),this._$);break;case 15:this.$={strip:d.stripFlags(f[g-1],f[g-1]),program:f[g]};break;case 16:this.$={path:f[g-1],strip:d.stripFlags(f[g-2],f[g])};break;case 17:this.$=new d.MustacheNode(f[g-1],null,f[g-2],d.stripFlags(f[g-2],f[g]),this._$);break;case 18:this.$=new d.MustacheNode(f[g-1],null,f[g-2],d.stripFlags(f[g-2],f[g]),this._$);break;case 19:this.$=new d.PartialNode(f[g-3],f[g-2],f[g-1],d.stripFlags(f[g-4],f[g]),this._$);break;case 20:this.$=new d.PartialNode(f[g-2],void 0,f[g-1],d.stripFlags(f[g-3],f[g]),this._$);break;case 21:this.$=new d.SexprNode([f[g-2]].concat(f[g-1]),f[g],this._$);break;case 22:this.$=new d.SexprNode([f[g]],null,this._$);break;case 23:this.$=f[g];break;case 24:this.$=new d.StringNode(f[g],this._$);break;case 25:this.$=new d.NumberNode(f[g],this._$);break;case 26:this.$=new d.BooleanNode(f[g],this._$);break;case 27:this.$=f[g];break;case 28:f[g-1].isHelper=!0,this.$=f[g-1];break;case 29:this.$=new d.HashNode(f[g],this._$);break;case 30:this.$=[f[g-2],f[g]];break;case 31:this.$=new d.PartialNameNode(f[g],this._$);break;case 32:this.$=new d.PartialNameNode(new d.StringNode(f[g],this._$),this._$);break;case 33:this.$=new d.PartialNameNode(new d.NumberNode(f[g],this._$));break;case 34:this.$=new d.DataNode(f[g],this._$);break;case 35:this.$=new d.IdNode(f[g],this._$);break;case 36:f[g-2].push({part:f[g],separator:f[g-1]}),this.$=f[g-2];break;case 37:this.$=[{part:f[g]}];break;case 38:this.$=[];break;case 39:f[g-1].push(f[g]);break;case 48:this.$=[];break;case 49:f[g-1].push(f[g]);break;case 52:this.$=[f[g]];break;case 53:f[g-1].push(f[g])}},table:[{3:1,4:2,5:[2,38],6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],31:[2,38],32:[2,38],34:[2,38]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:[1,10],13:[1,11],14:16,16:[1,20],19:14,22:15,24:[1,18],26:[1,19],28:[2,2],29:[2,2],31:[1,12],32:[1,13],34:[1,17]},{1:[2,1]},{5:[2,39],12:[2,39],13:[2,39],16:[2,39],24:[2,39],26:[2,39],28:[2,39],29:[2,39],31:[2,39],32:[2,39],34:[2,39]},{5:[2,3],12:[2,3],13:[2,3],16:[2,3],24:[2,3],26:[2,3],28:[2,3],29:[2,3],31:[2,3],32:[2,3],34:[2,3]},{5:[2,4],12:[2,4],13:[2,4],16:[2,4],24:[2,4],26:[2,4],28:[2,4],29:[2,4],31:[2,4],32:[2,4],34:[2,4]},{5:[2,5],12:[2,5],13:[2,5],16:[2,5],24:[2,5],26:[2,5],28:[2,5],29:[2,5],31:[2,5],32:[2,5],34:[2,5]},{5:[2,6],12:[2,6],13:[2,6],16:[2,6],24:[2,6],26:[2,6],28:[2,6],29:[2,6],31:[2,6],32:[2,6],34:[2,6]},{5:[2,7],12:[2,7],13:[2,7],16:[2,7],24:[2,7],26:[2,7],28:[2,7],29:[2,7],31:[2,7],32:[2,7],34:[2,7]},{5:[2,8],12:[2,8],13:[2,8],16:[2,8],24:[2,8],26:[2,8],28:[2,8],29:[2,8],31:[2,8],32:[2,8],34:[2,8]},{17:21,30:22,41:23,50:[1,26],52:[1,25],53:24},{17:27,30:22,41:23,50:[1,26],52:[1,25],53:24},{4:28,6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],28:[2,38],29:[2,38],31:[2,38],32:[2,38],34:[2,38]},{4:29,6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],28:[2,38],29:[2,38],31:[2,38],32:[2,38],34:[2,38]},{12:[1,30]},{30:32,35:31,42:[1,33],43:[1,34],50:[1,26],53:24},{17:35,30:22,41:23,50:[1,26],52:[1,25],53:24},{17:36,30:22,41:23,50:[1,26],52:[1,25],53:24},{17:37,30:22,41:23,50:[1,26],52:[1,25],53:24},{25:[1,38]},{18:[2,48],25:[2,48],33:[2,48],39:39,42:[2,48],43:[2,48],44:[2,48],45:[2,48],46:[2,48],50:[2,48],52:[2,48]},{18:[2,22],25:[2,22],33:[2,22],46:[2,22]},{18:[2,35],25:[2,35],33:[2,35],42:[2,35],43:[2,35],44:[2,35],45:[2,35],46:[2,35],50:[2,35],52:[2,35],54:[1,40]},{30:41,50:[1,26],53:24},{18:[2,37],25:[2,37],33:[2,37],42:[2,37],43:[2,37],44:[2,37],45:[2,37],46:[2,37],50:[2,37],52:[2,37],54:[2,37]},{33:[1,42]},{20:43,27:44,28:[1,45],29:[2,40]},{23:46,27:47,28:[1,45],29:[2,42]},{15:[1,48]},{25:[2,46],30:51,36:49,38:50,41:55,42:[1,52],43:[1,53],44:[1,54],45:[1,56],47:57,48:58,49:60,50:[1,59],52:[1,25],53:24},{25:[2,31],42:[2,31],43:[2,31],44:[2,31],45:[2,31],50:[2,31],52:[2,31]},{25:[2,32],42:[2,32],43:[2,32],44:[2,32],45:[2,32],50:[2,32],52:[2,32]},{25:[2,33],42:[2,33],43:[2,33],44:[2,33],45:[2,33],50:[2,33],52:[2,33]},{25:[1,61]},{25:[1,62]},{18:[1,63]},{5:[2,17],12:[2,17],13:[2,17],16:[2,17],24:[2,17],26:[2,17],28:[2,17],29:[2,17],31:[2,17],32:[2,17],34:[2,17]},{18:[2,50],25:[2,50],30:51,33:[2,50],36:65,40:64,41:55,42:[1,52],43:[1,53],44:[1,54],45:[1,56],46:[2,50],47:66,48:58,49:60,50:[1,59],52:[1,25],53:24},{50:[1,67]},{18:[2,34],25:[2,34],33:[2,34],42:[2,34],43:[2,34],44:[2,34],45:[2,34],46:[2,34],50:[2,34],52:[2,34]},{5:[2,18],12:[2,18],13:[2,18],16:[2,18],24:[2,18],26:[2,18],28:[2,18],29:[2,18],31:[2,18],32:[2,18],34:[2,18]},{21:68,29:[1,69]},{29:[2,41]},{4:70,6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],29:[2,38],31:[2,38],32:[2,38],34:[2,38]},{21:71,29:[1,69]},{29:[2,43]},{5:[2,9],12:[2,9],13:[2,9],16:[2,9],24:[2,9],26:[2,9],28:[2,9],29:[2,9],31:[2,9],32:[2,9],34:[2,9]},{25:[2,44],37:72,47:73,48:58,49:60,50:[1,74]},{25:[1,75]},{18:[2,23],25:[2,23],33:[2,23],42:[2,23],43:[2,23],44:[2,23],45:[2,23],46:[2,23],50:[2,23],52:[2,23]},{18:[2,24],25:[2,24],33:[2,24],42:[2,24],43:[2,24],44:[2,24],45:[2,24],46:[2,24],50:[2,24],52:[2,24]},{18:[2,25],25:[2,25],33:[2,25],42:[2,25],43:[2,25],44:[2,25],45:[2,25],46:[2,25],50:[2,25],52:[2,25]},{18:[2,26],25:[2,26],33:[2,26],42:[2,26],43:[2,26],44:[2,26],45:[2,26],46:[2,26],50:[2,26],52:[2,26]},{18:[2,27],25:[2,27],33:[2,27],42:[2,27],43:[2,27],44:[2,27],45:[2,27],46:[2,27],50:[2,27],52:[2,27]},{17:76,30:22,41:23,50:[1,26],52:[1,25],53:24},{25:[2,47]},{18:[2,29],25:[2,29],33:[2,29],46:[2,29],49:77,50:[1,74]},{18:[2,37],25:[2,37],33:[2,37],42:[2,37],43:[2,37],44:[2,37],45:[2,37],46:[2,37],50:[2,37],51:[1,78],52:[2,37],54:[2,37]},{18:[2,52],25:[2,52],33:[2,52],46:[2,52],50:[2,52]},{12:[2,13],13:[2,13],16:[2,13],24:[2,13],26:[2,13],28:[2,13],29:[2,13],31:[2,13],32:[2,13],34:[2,13]},{12:[2,14],13:[2,14],16:[2,14],24:[2,14],26:[2,14],28:[2,14],29:[2,14],31:[2,14],32:[2,14],34:[2,14]},{12:[2,10]},{18:[2,21],25:[2,21],33:[2,21],46:[2,21]},{18:[2,49],25:[2,49],33:[2,49],42:[2,49],43:[2,49],44:[2,49],45:[2,49],46:[2,49],50:[2,49],52:[2,49]},{18:[2,51],25:[2,51],33:[2,51],46:[2,51]},{18:[2,36],25:[2,36],33:[2,36],42:[2,36],43:[2,36],44:[2,36],45:[2,36],46:[2,36],50:[2,36],52:[2,36],54:[2,36]},{5:[2,11],12:[2,11],13:[2,11],16:[2,11],24:[2,11],26:[2,11],28:[2,11],29:[2,11],31:[2,11],32:[2,11],34:[2,11]},{30:79,50:[1,26],53:24},{29:[2,15]},{5:[2,12],12:[2,12],13:[2,12],16:[2,12],24:[2,12],26:[2,12],28:[2,12],29:[2,12],31:[2,12],32:[2,12],34:[2,12]},{25:[1,80]},{25:[2,45]},{51:[1,78]},{5:[2,20],12:[2,20],13:[2,20],16:[2,20],24:[2,20],26:[2,20],28:[2,20],29:[2,20],31:[2,20],32:[2,20],34:[2,20]},{46:[1,81]},{18:[2,53],25:[2,53],33:[2,53],46:[2,53],50:[2,53]},{30:51,36:82,41:55,42:[1,52],43:[1,53],44:[1,54],45:[1,56],50:[1,26],52:[1,25],53:24},{25:[1,83]},{5:[2,19],12:[2,19],13:[2,19],16:[2,19],24:[2,19],26:[2,19],28:[2,19],29:[2,19],31:[2,19],32:[2,19],34:[2,19]},{18:[2,28],25:[2,28],33:[2,28],42:[2,28],43:[2,28],44:[2,28],45:[2,28],46:[2,28],50:[2,28],52:[2,28]},{18:[2,30],25:[2,30],33:[2,30],46:[2,30],50:[2,30]},{5:[2,16],12:[2,16],13:[2,16],16:[2,16],24:[2,16],26:[2,16],28:[2,16],29:[2,16],31:[2,16],32:[2,16],34:[2,16]}],defaultActions:{4:[2,1],44:[2,41],47:[2,43],57:[2,47],63:[2,10],70:[2,15],73:[2,45]},parseError:function(a){throw new Error(a)},parse:function(a){function b(){var a;return a=c.lexer.lex()||1,"number"!=typeof a&&(a=c.symbols_[a]||a),a}var c=this,d=[0],e=[null],f=[],g=this.table,h="",i=0,j=0,k=0;this.lexer.setInput(a),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,"undefined"==typeof this.lexer.yylloc&&(this.lexer.yylloc={});var l=this.lexer.yylloc;f.push(l);var m=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var n,o,p,q,r,s,t,u,v,w={};;){if(p=d[d.length-1],this.defaultActions[p]?q=this.defaultActions[p]:((null===n||"undefined"==typeof n)&&(n=b()),q=g[p]&&g[p][n]),"undefined"==typeof q||!q.length||!q[0]){var x="";if(!k){v=[];for(s in g[p])this.terminals_[s]&&s>2&&v.push("'"+this.terminals_[s]+"'");x=this.lexer.showPosition?"Parse error on line "+(i+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+v.join(", ")+", got '"+(this.terminals_[n]||n)+"'":"Parse error on line "+(i+1)+": Unexpected "+(1==n?"end of input":"'"+(this.terminals_[n]||n)+"'"),this.parseError(x,{text:this.lexer.match,token:this.terminals_[n]||n,line:this.lexer.yylineno,loc:l,expected:v})}}if(q[0]instanceof Array&&q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+p+", token: "+n);switch(q[0]){case 1:d.push(n),e.push(this.lexer.yytext),f.push(this.lexer.yylloc),d.push(q[1]),n=null,o?(n=o,o=null):(j=this.lexer.yyleng,h=this.lexer.yytext,i=this.lexer.yylineno,l=this.lexer.yylloc,k>0&&k--);break;case 2:if(t=this.productions_[q[1]][1],w.$=e[e.length-t],w._$={first_line:f[f.length-(t||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(t||1)].first_column,last_column:f[f.length-1].last_column},m&&(w._$.range=[f[f.length-(t||1)].range[0],f[f.length-1].range[1]]),r=this.performAction.call(w,h,j,i,this.yy,q[1],e,f),"undefined"!=typeof r)return r;t&&(d=d.slice(0,-1*t*2),e=e.slice(0,-1*t),f=f.slice(0,-1*t)),d.push(this.productions_[q[1]][0]),e.push(w.$),f.push(w._$),u=g[d[d.length-2]][d[d.length-1]],d.push(u);break;case 3:return!0}}return!0}},c=function(){var a={EOF:1,parseError:function(a,b){if(!this.yy.parser)throw new Error(a);this.yy.parser.parseError(a,b)},setInput:function(a){return this._input=a,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var b=a.match(/(?:\r\n?|\n).*/g);return b?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b-1),this.offset-=b;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this},more:function(){return this._more=!0,this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),b=new Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,b,c,d,e;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),g=0;g<f.length&&(c=this._input.match(this.rules[f[g]]),!c||b&&!(c[0].length>b[0].length)||(b=c,d=g,this.options.flex));g++);return b?(e=b[0].match(/(?:\r\n?|\n).*/g),e&&(this.yylineno+=e.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:e?e[e.length-1].length-e[e.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(b[0].length),this.matched+=b[0],a=this.performAction.call(this,this.yy,this,f[d],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a?a:void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return"undefined"!=typeof a?a:this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(a){this.begin(a)}};return a.options={},a.performAction=function(a,b,c,d){function e(a,c){return b.yytext=b.yytext.substr(a,b.yyleng-c)}switch(c){case 0:if("\\\\"===b.yytext.slice(-2)?(e(0,1),this.begin("mu")):"\\"===b.yytext.slice(-1)?(e(0,1),this.begin("emu")):this.begin("mu"),b.yytext)return 12;break;case 1:return 12;case 2:return this.popState(),12;case 3:return b.yytext=b.yytext.substr(5,b.yyleng-9),this.popState(),15;case 4:return 12;case 5:return e(0,4),this.popState(),13;case 6:return 45;case 7:return 46;case 8:return 16;case 9:return this.popState(),this.begin("raw"),18;case 10:return 34;case 11:return 24;case 12:return 29;case 13:return this.popState(),28;case 14:return this.popState(),28;case 15:return 26;case 16:return 26;case 17:return 32;case 18:return 31;case 19:this.popState(),this.begin("com");break;case 20:return e(3,5),this.popState(),13;case 21:return 31;case 22:return 51;case 23:return 50;case 24:return 50;case 25:return 54;case 26:break;case 27:return this.popState(),33;case 28:return this.popState(),25;case 29:return b.yytext=e(1,2).replace(/\\"/g,'"'),42;case 30:return b.yytext=e(1,2).replace(/\\'/g,"'"),42;case 31:return 52;case 32:return 44;case 33:return 44;case 34:return 43;case 35:return 50;case 36:return b.yytext=e(1,2),50;case 37:return"INVALID";case 38:return 5}},a.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]*?(?=(\{\{\{\{\/)))/,/^(?:[\s\S]*?--\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{!--)/,/^(?:\{\{![\s\S]*?\}\})/,/^(?:\{\{(~)?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)]))))/,/^(?:\[[^\]]*\])/,/^(?:.)/,/^(?:$)/],a.conditions={mu:{rules:[6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[5],inclusive:!1},raw:{rules:[3,4],inclusive:!1},INITIAL:{rules:[0,1,38],inclusive:!0}},a}();return b.lexer=c,a.prototype=b,b.Parser=a,new a}();return a=b}(),i=function(a){"use strict";function b(a,b){return{left:"~"===a.charAt(2),right:"~"===b.charAt(b.length-3)}}function c(a,b,c,d,i,k){if(a.sexpr.id.original!==d.path.original)throw new j(a.sexpr.id.original+" doesn't match "+d.path.original,a);var l=c&&c.program,m={left:a.strip.left,right:d.strip.right,openStandalone:f(b.statements),closeStandalone:e((l||b).statements)};if(a.strip.right&&g(b.statements,null,!0),l){var n=c.strip;n.left&&h(b.statements,null,!0),n.right&&g(l.statements,null,!0),d.strip.left&&h(l.statements,null,!0),e(b.statements)&&f(l.statements)&&(h(b.statements),g(l.statements))}else d.strip.left&&h(b.statements,null,!0);return i?new this.BlockNode(a,l,b,m,k):new this.BlockNode(a,b,l,m,k)}function d(a,b){for(var c=0,d=a.length;d>c;c++){var i=a[c],j=i.strip;if(j){var k=e(a,c,b,"partial"===i.type),l=f(a,c,b),m=j.openStandalone&&k,n=j.closeStandalone&&l,o=j.inlineStandalone&&k&&l;j.right&&g(a,c,!0),j.left&&h(a,c,!0),o&&(g(a,c),h(a,c)&&"partial"===i.type&&(i.indent=/([ \t]+$)/.exec(a[c-1].original)?RegExp.$1:"")),m&&(g((i.program||i.inverse).statements),h(a,c)),n&&(g(a,c),h((i.inverse||i.program).statements))}}return a}function e(a,b,c){void 0===b&&(b=a.length);var d=a[b-1],e=a[b-2];return d?"content"===d.type?(e||!c?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(d.original):void 0:c}function f(a,b,c){void 0===b&&(b=-1);var d=a[b+1],e=a[b+2];return d?"content"===d.type?(e||!c?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(d.original):void 0:c}function g(a,b,c){var d=a[null==b?0:b+1];if(d&&"content"===d.type&&(c||!d.rightStripped)){var e=d.string;d.string=d.string.replace(c?/^\s+/:/^[ \t]*\r?\n?/,""),d.rightStripped=d.string!==e}}function h(a,b,c){var d=a[null==b?a.length-1:b-1];if(d&&"content"===d.type&&(c||!d.leftStripped)){var e=d.string;return d.string=d.string.replace(c?/\s+$/:/[ \t]+$/,""),d.leftStripped=d.string!==e,d.leftStripped}}var i={},j=a;return i.stripFlags=b,i.prepareBlock=c,i.prepareProgram=d,i}(c),j=function(a,b,c,d){"use strict";function e(a){return a.constructor===h.ProgramNode?a:(g.yy=k,g.parse(a))}var f={},g=a,h=b,i=c,j=d.extend;f.parser=g;var k={};return j(k,i,h),f.parse=e,f}(h,g,i,b),k=function(a,b){"use strict";function c(){}function d(a,b,c){if(null==a||"string"!=typeof a&&a.constructor!==c.AST.ProgramNode)throw new h("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+a);b=b||{},"data"in b||(b.data=!0),b.compat&&(b.useDepths=!0);var d=c.parse(a),e=(new c.Compiler).compile(d,b);return(new c.JavaScriptCompiler).compile(e,b)}function e(a,b,c){function d(){var d=c.parse(a),e=(new c.Compiler).compile(d,b),f=(new c.JavaScriptCompiler).compile(e,b,void 0,!0);return c.template(f)}if(null==a||"string"!=typeof a&&a.constructor!==c.AST.ProgramNode)throw new h("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+a);b=b||{},"data"in b||(b.data=!0),b.compat&&(b.useDepths=!0);var e,f=function(a,b){return e||(e=d()),e.call(this,a,b)};return f._setup=function(a){return e||(e=d()),e._setup(a)},f._child=function(a,b,c){return e||(e=d()),e._child(a,b,c)},f}function f(a,b){if(a===b)return!0;if(i(a)&&i(b)&&a.length===b.length){for(var c=0;c<a.length;c++)if(!f(a[c],b[c]))return!1;return!0}}var g={},h=a,i=b.isArray,j=[].slice;return g.Compiler=c,c.prototype={compiler:c,equals:function(a){var b=this.opcodes.length;if(a.opcodes.length!==b)return!1;for(var c=0;b>c;c++){var d=this.opcodes[c],e=a.opcodes[c];if(d.opcode!==e.opcode||!f(d.args,e.args))return!1}for(b=this.children.length,c=0;b>c;c++)if(!this.children[c].equals(a.children[c]))return!1;return!0},guid:0,compile:function(a,b){this.opcodes=[],this.children=[],this.depths={list:[]},this.options=b,this.stringParams=b.stringParams,this.trackIds=b.trackIds;var c=this.options.knownHelpers;if(this.options.knownHelpers={helperMissing:!0,blockHelperMissing:!0,each:!0,"if":!0,unless:!0,"with":!0,log:!0,lookup:!0},c)for(var d in c)this.options.knownHelpers[d]=c[d];return this.accept(a)},accept:function(a){return this[a.type](a)},program:function(a){for(var b=a.statements,c=0,d=b.length;d>c;c++)this.accept(b[c]);return this.isSimple=1===d,this.depths.list=this.depths.list.sort(function(a,b){return a-b}),this},compileProgram:function(a){var b,c=(new this.compiler).compile(a,this.options),d=this.guid++;
this.usePartial=this.usePartial||c.usePartial,this.children[d]=c;for(var e=0,f=c.depths.list.length;f>e;e++)b=c.depths.list[e],2>b||this.addDepth(b-1);return d},block:function(a){var b=a.mustache,c=a.program,d=a.inverse;c&&(c=this.compileProgram(c)),d&&(d=this.compileProgram(d));var e=b.sexpr,f=this.classifySexpr(e);"helper"===f?this.helperSexpr(e,c,d):"simple"===f?(this.simpleSexpr(e),this.opcode("pushProgram",c),this.opcode("pushProgram",d),this.opcode("emptyHash"),this.opcode("blockValue",e.id.original)):(this.ambiguousSexpr(e,c,d),this.opcode("pushProgram",c),this.opcode("pushProgram",d),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},hash:function(a){var b,c,d=a.pairs;for(this.opcode("pushHash"),b=0,c=d.length;c>b;b++)this.pushParam(d[b][1]);for(;b--;)this.opcode("assignToHash",d[b][0]);this.opcode("popHash")},partial:function(a){var b=a.partialName;this.usePartial=!0,a.hash?this.accept(a.hash):this.opcode("push","undefined"),a.context?this.accept(a.context):(this.opcode("getContext",0),this.opcode("pushContext")),this.opcode("invokePartial",b.name,a.indent||""),this.opcode("append")},content:function(a){a.string&&this.opcode("appendContent",a.string)},mustache:function(a){this.sexpr(a.sexpr),this.opcode(a.escaped&&!this.options.noEscape?"appendEscaped":"append")},ambiguousSexpr:function(a,b,c){var d=a.id,e=d.parts[0],f=null!=b||null!=c;this.opcode("getContext",d.depth),this.opcode("pushProgram",b),this.opcode("pushProgram",c),this.ID(d),this.opcode("invokeAmbiguous",e,f)},simpleSexpr:function(a){var b=a.id;"DATA"===b.type?this.DATA(b):b.parts.length?this.ID(b):(this.addDepth(b.depth),this.opcode("getContext",b.depth),this.opcode("pushContext")),this.opcode("resolvePossibleLambda")},helperSexpr:function(a,b,c){var d=this.setupFullMustacheParams(a,b,c),e=a.id,f=e.parts[0];if(this.options.knownHelpers[f])this.opcode("invokeKnownHelper",d.length,f);else{if(this.options.knownHelpersOnly)throw new h("You specified knownHelpersOnly, but used the unknown helper "+f,a);e.falsy=!0,this.ID(e),this.opcode("invokeHelper",d.length,e.original,e.isSimple)}},sexpr:function(a){var b=this.classifySexpr(a);"simple"===b?this.simpleSexpr(a):"helper"===b?this.helperSexpr(a):this.ambiguousSexpr(a)},ID:function(a){this.addDepth(a.depth),this.opcode("getContext",a.depth);var b=a.parts[0];b?this.opcode("lookupOnContext",a.parts,a.falsy,a.isScoped):this.opcode("pushContext")},DATA:function(a){this.options.data=!0,this.opcode("lookupData",a.id.depth,a.id.parts)},STRING:function(a){this.opcode("pushString",a.string)},NUMBER:function(a){this.opcode("pushLiteral",a.number)},BOOLEAN:function(a){this.opcode("pushLiteral",a.bool)},comment:function(){},opcode:function(a){this.opcodes.push({opcode:a,args:j.call(arguments,1)})},addDepth:function(a){0!==a&&(this.depths[a]||(this.depths[a]=!0,this.depths.list.push(a)))},classifySexpr:function(a){var b=a.isHelper,c=a.eligibleHelper,d=this.options;if(c&&!b){var e=a.id.parts[0];d.knownHelpers[e]?b=!0:d.knownHelpersOnly&&(c=!1)}return b?"helper":c?"ambiguous":"simple"},pushParams:function(a){for(var b=0,c=a.length;c>b;b++)this.pushParam(a[b])},pushParam:function(a){this.stringParams?(a.depth&&this.addDepth(a.depth),this.opcode("getContext",a.depth||0),this.opcode("pushStringParam",a.stringModeValue,a.type),"sexpr"===a.type&&this.sexpr(a)):(this.trackIds&&this.opcode("pushId",a.type,a.idName||a.stringModeValue),this.accept(a))},setupFullMustacheParams:function(a,b,c){var d=a.params;return this.pushParams(d),this.opcode("pushProgram",b),this.opcode("pushProgram",c),a.hash?this.hash(a.hash):this.opcode("emptyHash"),d}},g.precompile=d,g.compile=e,g}(c,b),l=function(a,b){"use strict";function c(a){this.value=a}function d(){}var e,f=a.COMPILER_REVISION,g=a.REVISION_CHANGES,h=b;d.prototype={nameLookup:function(a,b){return d.isValidJavaScriptVariableName(b)?a+"."+b:a+"['"+b+"']"},depthedLookup:function(a){return this.aliases.lookup="this.lookup",'lookup(depths, "'+a+'")'},compilerInfo:function(){var a=f,b=g[a];return[a,b]},appendToBuffer:function(a){return this.environment.isSimple?"return "+a+";":{appendToBuffer:!0,content:a,toString:function(){return"buffer += "+a+";"}}},initializeBuffer:function(){return this.quotedString("")},namespace:"Handlebars",compile:function(a,b,c,d){this.environment=a,this.options=b,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!d,this.name=this.environment.name,this.isChild=!!c,this.context=c||{programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.compileChildren(a,b),this.useDepths=this.useDepths||a.depths.list.length||this.options.compat;var e,f,g,i=a.opcodes;for(f=0,g=i.length;g>f;f++)e=i[f],this[e.opcode].apply(this,e.args);if(this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new h("Compile completed with content left on stack");var j=this.createFunctionContext(d);if(this.isChild)return j;var k={compiler:this.compilerInfo(),main:j},l=this.context.programs;for(f=0,g=l.length;g>f;f++)l[f]&&(k[f]=l[f]);return this.environment.usePartial&&(k.usePartial=!0),this.options.data&&(k.useData=!0),this.useDepths&&(k.useDepths=!0),this.options.compat&&(k.compat=!0),d||(k.compiler=JSON.stringify(k.compiler),k=this.objectLiteral(k)),k},preamble:function(){this.lastContext=0,this.source=[]},createFunctionContext:function(a){var b="",c=this.stackVars.concat(this.registers.list);c.length>0&&(b+=", "+c.join(", "));for(var d in this.aliases)this.aliases.hasOwnProperty(d)&&(b+=", "+d+"="+this.aliases[d]);var e=["depth0","helpers","partials","data"];this.useDepths&&e.push("depths");var f=this.mergeSource(b);return a?(e.push(f),Function.apply(this,e)):"function("+e.join(",")+") {\n "+f+"}"},mergeSource:function(a){for(var b,c,d="",e=!this.forceBuffer,f=0,g=this.source.length;g>f;f++){var h=this.source[f];h.appendToBuffer?b=b?b+"\n + "+h.content:h.content:(b&&(d?d+="buffer += "+b+";\n ":(c=!0,d=b+";\n "),b=void 0),d+=h+"\n ",this.environment.isSimple||(e=!1))}return e?(b||!d)&&(d+="return "+(b||'""')+";\n"):(a+=", buffer = "+(c?"":this.initializeBuffer()),d+=b?"return buffer + "+b+";\n":"return buffer;\n"),a&&(d="var "+a.substring(2)+(c?"":";\n ")+d),d},blockValue:function(a){this.aliases.blockHelperMissing="helpers.blockHelperMissing";var b=[this.contextName(0)];this.setupParams(a,0,b);var c=this.popStack();b.splice(1,0,c),this.push("blockHelperMissing.call("+b.join(", ")+")")},ambiguousBlockValue:function(){this.aliases.blockHelperMissing="helpers.blockHelperMissing";var a=[this.contextName(0)];this.setupParams("",0,a,!0),this.flushInline();var b=this.topStack();a.splice(1,0,b),this.pushSource("if (!"+this.lastHelper+") { "+b+" = blockHelperMissing.call("+a.join(", ")+"); }")},appendContent:function(a){this.pendingContent&&(a=this.pendingContent+a),this.pendingContent=a},append:function(){this.flushInline();var a=this.popStack();this.pushSource("if ("+a+" != null) { "+this.appendToBuffer(a)+" }"),this.environment.isSimple&&this.pushSource("else { "+this.appendToBuffer("''")+" }")},appendEscaped:function(){this.aliases.escapeExpression="this.escapeExpression",this.pushSource(this.appendToBuffer("escapeExpression("+this.popStack()+")"))},getContext:function(a){this.lastContext=a},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(a,b,c){var d=0,e=a.length;for(c||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(a[d++]));e>d;d++)this.replaceStack(function(c){var e=this.nameLookup(c,a[d],"context");return b?" && "+e:" != null ? "+e+" : "+c})},lookupData:function(a,b){this.pushStackLiteral(a?"this.data(data, "+a+")":"data");for(var c=b.length,d=0;c>d;d++)this.replaceStack(function(a){return" && "+this.nameLookup(a,b[d],"data")})},resolvePossibleLambda:function(){this.aliases.lambda="this.lambda",this.push("lambda("+this.popStack()+", "+this.contextName(0)+")")},pushStringParam:function(a,b){this.pushContext(),this.pushString(b),"sexpr"!==b&&("string"==typeof a?this.pushString(a):this.pushStackLiteral(a))},emptyHash:function(){this.pushStackLiteral("{}"),this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}"))},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:[],types:[],contexts:[],ids:[]}},popHash:function(){var a=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push("{"+a.ids.join(",")+"}"),this.stringParams&&(this.push("{"+a.contexts.join(",")+"}"),this.push("{"+a.types.join(",")+"}")),this.push("{\n "+a.values.join(",\n ")+"\n }")},pushString:function(a){this.pushStackLiteral(this.quotedString(a))},push:function(a){return this.inlineStack.push(a),a},pushLiteral:function(a){this.pushStackLiteral(a)},pushProgram:function(a){this.pushStackLiteral(null!=a?this.programExpression(a):null)},invokeHelper:function(a,b,c){this.aliases.helperMissing="helpers.helperMissing";var d=this.popStack(),e=this.setupHelper(a,b),f=(c?e.name+" || ":"")+d+" || helperMissing";this.push("(("+f+").call("+e.callParams+"))")},invokeKnownHelper:function(a,b){var c=this.setupHelper(a,b);this.push(c.name+".call("+c.callParams+")")},invokeAmbiguous:function(a,b){this.aliases.functionType='"function"',this.aliases.helperMissing="helpers.helperMissing",this.useRegister("helper");var c=this.popStack();this.emptyHash();var d=this.setupHelper(0,a,b),e=this.lastHelper=this.nameLookup("helpers",a,"helper");this.push("((helper = (helper = "+e+" || "+c+") != null ? helper : helperMissing"+(d.paramsInit?"),("+d.paramsInit:"")+"),(typeof helper === functionType ? helper.call("+d.callParams+") : helper))")},invokePartial:function(a,b){var c=[this.nameLookup("partials",a,"partial"),"'"+b+"'","'"+a+"'",this.popStack(),this.popStack(),"helpers","partials"];this.options.data?c.push("data"):this.options.compat&&c.push("undefined"),this.options.compat&&c.push("depths"),this.push("this.invokePartial("+c.join(", ")+")")},assignToHash:function(a){var b,c,d,e=this.popStack();this.trackIds&&(d=this.popStack()),this.stringParams&&(c=this.popStack(),b=this.popStack());var f=this.hash;b&&f.contexts.push("'"+a+"': "+b),c&&f.types.push("'"+a+"': "+c),d&&f.ids.push("'"+a+"': "+d),f.values.push("'"+a+"': ("+e+")")},pushId:function(a,b){"ID"===a||"DATA"===a?this.pushString(b):this.pushStackLiteral("sexpr"===a?"true":"null")},compiler:d,compileChildren:function(a,b){for(var c,d,e=a.children,f=0,g=e.length;g>f;f++){c=e[f],d=new this.compiler;var h=this.matchExistingProgram(c);null==h?(this.context.programs.push(""),h=this.context.programs.length,c.index=h,c.name="program"+h,this.context.programs[h]=d.compile(c,b,this.context,!this.precompile),this.context.environments[h]=c,this.useDepths=this.useDepths||d.useDepths):(c.index=h,c.name="program"+h)}},matchExistingProgram:function(a){for(var b=0,c=this.context.environments.length;c>b;b++){var d=this.context.environments[b];if(d&&d.equals(a))return b}},programExpression:function(a){var b=this.environment.children[a],c=(b.depths.list,this.useDepths),d=[b.index,"data"];return c&&d.push("depths"),"this.program("+d.join(", ")+")"},useRegister:function(a){this.registers[a]||(this.registers[a]=!0,this.registers.list.push(a))},pushStackLiteral:function(a){return this.push(new c(a))},pushSource:function(a){this.pendingContent&&(this.source.push(this.appendToBuffer(this.quotedString(this.pendingContent))),this.pendingContent=void 0),a&&this.source.push(a)},pushStack:function(a){this.flushInline();var b=this.incrStack();return this.pushSource(b+" = "+a+";"),this.compileStack.push(b),b},replaceStack:function(a){{var b,d,e,f="";this.isInline()}if(!this.isInline())throw new h("replaceStack on non-inline");var g=this.popStack(!0);if(g instanceof c)f=b=g.value,e=!0;else{d=!this.stackSlot;var i=d?this.incrStack():this.topStackName();f="("+this.push(i)+" = "+g+")",b=this.topStack()}var j=a.call(this,b);e||this.popStack(),d&&this.stackSlot--,this.push("("+f+j+")")},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var a=this.inlineStack;if(a.length){this.inlineStack=[];for(var b=0,d=a.length;d>b;b++){var e=a[b];e instanceof c?this.compileStack.push(e):this.pushStack(e)}}},isInline:function(){return this.inlineStack.length},popStack:function(a){var b=this.isInline(),d=(b?this.inlineStack:this.compileStack).pop();if(!a&&d instanceof c)return d.value;if(!b){if(!this.stackSlot)throw new h("Invalid stack pop");this.stackSlot--}return d},topStack:function(){var a=this.isInline()?this.inlineStack:this.compileStack,b=a[a.length-1];return b instanceof c?b.value:b},contextName:function(a){return this.useDepths&&a?"depths["+a+"]":"depth"+a},quotedString:function(a){return'"'+a.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(this.quotedString(c)+":"+a[c]);return"{"+b.join(",")+"}"},setupHelper:function(a,b,c){var d=[],e=this.setupParams(b,a,d,c),f=this.nameLookup("helpers",b,"helper");return{params:d,paramsInit:e,name:f,callParams:[this.contextName(0)].concat(d).join(", ")}},setupOptions:function(a,b,c){var d,e,f,g={},h=[],i=[],j=[];g.name=this.quotedString(a),g.hash=this.popStack(),this.trackIds&&(g.hashIds=this.popStack()),this.stringParams&&(g.hashTypes=this.popStack(),g.hashContexts=this.popStack()),e=this.popStack(),f=this.popStack(),(f||e)&&(f||(f="this.noop"),e||(e="this.noop"),g.fn=f,g.inverse=e);for(var k=b;k--;)d=this.popStack(),c[k]=d,this.trackIds&&(j[k]=this.popStack()),this.stringParams&&(i[k]=this.popStack(),h[k]=this.popStack());return this.trackIds&&(g.ids="["+j.join(",")+"]"),this.stringParams&&(g.types="["+i.join(",")+"]",g.contexts="["+h.join(",")+"]"),this.options.data&&(g.data="data"),g},setupParams:function(a,b,c,d){var e=this.objectLiteral(this.setupOptions(a,b,c));return d?(this.useRegister("options"),c.push("options"),"options="+e):(c.push(e),"")}};for(var i="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield".split(" "),j=d.RESERVED_WORDS={},k=0,l=i.length;l>k;k++)j[i[k]]=!0;return d.isValidJavaScriptVariableName=function(a){return!d.RESERVED_WORDS[a]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(a)},e=d}(d,c),m=function(a,b,c,d,e){"use strict";var f,g=a,h=b,i=c.parser,j=c.parse,k=d.Compiler,l=d.compile,m=d.precompile,n=e,o=g.create,p=function(){var a=o();return a.compile=function(b,c){return l(b,c,a)},a.precompile=function(b,c){return m(b,c,a)},a.AST=h,a.Compiler=k,a.JavaScriptCompiler=n,a.Parser=i,a.parse=j,a};return g=p(),g.create=p,g["default"]=g,f=g}(f,g,j,k,l);return m}),function(a){a&&(a.registerHelper("ifCond",function(a,b,c,d){switch(b){case"==":return a==c?d.fn(this):d.inverse(this);case"===":return a===c?d.fn(this):d.inverse(this);case"<":return c>a?d.fn(this):d.inverse(this);case"<=":return c>=a?d.fn(this):d.inverse(this);case">":return a>c?d.fn(this):d.inverse(this);case">=":return a>=c?d.fn(this):d.inverse(this);case"&&":return a&&c?d.fn(this):d.inverse(this);case"||":return a||c?d.fn(this):d.inverse(this);default:return d.inverse(this)}}),a.registerHelper("last",function(a,b){return b.fn(a[a.length-1])}))}(Handlebars),Handlebars.registerPartial("badge",Handlebars.template({1:function(a,b,c,d){var e,f='<span class="mui-badge';return e=b["if"].call(a,null!=a?a.style:a,{name:"if",hash:{},fn:this.program(2,d),inverse:this.noop,data:d}),null!=e&&(f+=e),f+='">',e=b["if"].call(a,null!=a?a.text:a,{name:"if",hash:{},fn:this.program(4,d),inverse:this.program(6,d),data:d}),null!=e&&(f+=e),f+"</span>\r"},2:function(a,b,c,d){var e,f,g="function",h=b.helperMissing,i=" mui-badge-";return f=null!=(f=b.style||(null!=a?a.style:a))?f:h,e=typeof f===g?f.call(a,{name:"style",hash:{},data:d}):f,null!=e&&(i+=e),i},4:function(a,b,c,d){var e,f,g="function",h=b.helperMissing;return f=null!=(f=b.text||(null!=a?a.text:a))?f:h,e=typeof f===g?f.call(a,{name:"text",hash:{},data:d}):f,null!=e?e:""},6:function(a){var b,c=this.lambda;return b=c(a,a),null!=b?b:""},compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f,g,h="function",i=b.helperMissing,j=b.blockHelperMissing;return f=null!=(f=b.badge||(null!=a?a.badge:a))?f:i,g={name:"badge",hash:{},fn:this.program(1,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.badge||(e=j.call(a,e,g)),null!=e?e:""},useData:!0})),Handlebars.registerPartial("btn",Handlebars.template({1:function(a,b,c,d){var e,f='<button class="mui-btn';return e=b["if"].call(a,null!=a?a.style:a,{name:"if",hash:{},fn:this.program(2,d),inverse:this.noop,data:d}),null!=e&&(f+=e),f+='">',e=b["if"].call(a,null!=a?a.text:a,{name:"if",hash:{},fn:this.program(4,d),inverse:this.program(6,d),data:d}),null!=e&&(f+=e),f+"</button>\n"},2:function(a,b,c,d){var e,f,g="function",h=b.helperMissing,i=" mui-btn-";return f=null!=(f=b.style||(null!=a?a.style:a))?f:h,e=typeof f===g?f.call(a,{name:"style",hash:{},data:d}):f,null!=e&&(i+=e),i},4:function(a,b,c,d){var e,f,g="function",h=b.helperMissing;return f=null!=(f=b.text||(null!=a?a.text:a))?f:h,e=typeof f===g?f.call(a,{name:"text",hash:{},data:d}):f,null!=e?e:""},6:function(a){var b,c=this.lambda;return b=c(a,a),null!=b?b:""},compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f,g,h="function",i=b.helperMissing,j=b.blockHelperMissing;return f=null!=(f=b.btn||(null!=a?a.btn:a))?f:i,g={name:"btn",hash:{},fn:this.program(1,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.btn||(e=j.call(a,e,g)),null!=e?e:""},useData:!0})),Handlebars.registerPartial("checkbox",Handlebars.template({1:function(a,b,c,d){var e,f="function",g=b.helperMissing,h=this.escapeExpression;return'<input name="'+h((e=null!=(e=b.name||(null!=a?a.name:a))?e:g,typeof e===f?e.call(a,{name:"name",hash:{},data:d}):e))+'" type="checkbox" value="'+h((e=null!=(e=b.value||(null!=a?a.value:a))?e:g,typeof e===f?e.call(a,{name:"value",hash:{},data:d}):e))+'"> '},compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f,g,h="function",i=b.helperMissing,j=b.blockHelperMissing,k="";return f=null!=(f=b.checkbox||(null!=a?a.checkbox:a))?f:i,g={name:"checkbox",hash:{},fn:this.program(1,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.checkbox||(e=j.call(a,e,g)),null!=e&&(k+=e),k+"\n"},useData:!0})),Handlebars.registerPartial("grid",Handlebars.template({1:function(a,b,c,d){var e,f='<ul class="mui-table-view mui-grid-view">\n';return e=b.each.call(a,null!=a?a.grid:a,{name:"each",hash:{},fn:this.program(2,d),inverse:this.noop,data:d}),null!=e&&(f+=e),f+"</ul>\n"},2:function(a,b,c,d){var e,f,g="function",h=b.helperMissing,i=this.escapeExpression,j=' <li class="mui-table-view-cell mui-media mui-col-xs-6">\n <a href="';return e=b["if"].call(a,null!=a?a.href:a,{name:"if",hash:{},fn:this.program(3,d),inverse:this.program(5,d),data:d}),null!=e&&(j+=e),j+='">\n <img class="mui-media-object" src="'+i((f=null!=(f=b.src||(null!=a?a.src:a))?f:h,typeof f===g?f.call(a,{name:"src",hash:{},data:d}):f))+'">\n <div class="mui-media-body">',f=null!=(f=b.title||(null!=a?a.title:a))?f:h,e=typeof f===g?f.call(a,{name:"title",hash:{},data:d}):f,null!=e&&(j+=e),j+"</div>\n </a>\n </li>\n"},3:function(a,b,c,d){var e,f="function",g=b.helperMissing,h=this.escapeExpression;return h((e=null!=(e=b.href||(null!=a?a.href:a))?e:g,typeof e===f?e.call(a,{name:"href",hash:{},data:d}):e))},5:function(){return"#"},compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f=this.lambda,g=b.blockHelperMissing,h="";return e=g.call(a,f(a,a),{name:"this",hash:{},fn:this.program(1,d),inverse:this.noop,data:d}),null!=e&&(h+=e),h},useData:!0})),Handlebars.registerPartial("media",Handlebars.template({1:function(a,b,c,d){var e,f=" ";return e=b["if"].call(a,null!=a?a.src:a,{name:"if",hash:{},fn:this.program(2,d),inverse:this.noop,data:d}),null!=e&&(f+=e),f+=" ",e=b["if"].call(a,null!=a?a.desc:a,{name:"if",hash:{},fn:this.program(7,d),inverse:this.noop,data:d}),null!=e&&(f+=e),f+" "},2:function(a,b,c,d){var e,f,g="function",h=b.helperMissing,i=this.escapeExpression,j='\n<img class="mui-media-object ';return e=b["if"].call(a,null!=a?a.position:a,{name:"if",hash:{},fn:this.program(3,d),inverse:this.program(5,d),data:d}),null!=e&&(j+=e),j+'" src="'+i((f=null!=(f=b.src||(null!=a?a.src:a))?f:h,typeof f===g?f.call(a,{name:"src",hash:{},data:d}):f))+'">'},3:function(a,b,c,d){var e,f="function",g=b.helperMissing,h=this.escapeExpression;return"mui-pull-"+h((e=null!=(e=b.position||(null!=a?a.position:a))?e:g,typeof e===f?e.call(a,{name:"position",hash:{},data:d}):e))},5:function(){return"mui-pull-left"},7:function(a,b,c,d){var e,f,g="function",h=b.helperMissing,i='\n<div class="mui-media-body">\n ';return f=null!=(f=b.title||(null!=a?a.title:a))?f:h,e=typeof f===g?f.call(a,{name:"title",hash:{},data:d}):f,null!=e&&(i+=e),i+="\n <p class='",e=b["if"].call(a,null!=a?a.ellipsis:a,{name:"if",hash:{},fn:this.program(8,d),inverse:this.program(10,d),data:d}),null!=e&&(i+=e),i+="'>",f=null!=(f=b.desc||(null!=a?a.desc:a))?f:h,e=typeof f===g?f.call(a,{name:"desc",hash:{},data:d}):f,null!=e&&(i+=e),i+"</p>\n</div>\n"},8:function(a,b,c,d){var e,f="function",g=b.helperMissing,h=this.escapeExpression;return"mui-ellipsis-"+h((e=null!=(e=b.ellipsis||(null!=a?a.ellipsis:a))?e:g,typeof e===f?e.call(a,{name:"ellipsis",hash:{},data:d}):e))},10:function(){return"mui-ellipsis"},compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f=this.lambda,g=b.blockHelperMissing,h="";return e=g.call(a,f(a,a),{name:"this",hash:{},fn:this.program(1,d),inverse:this.noop,data:d}),null!=e&&(h+=e),h+"\n"},useData:!0})),Handlebars.registerPartial("radio",Handlebars.template({1:function(a,b,c,d){var e,f="function",g=b.helperMissing,h=this.escapeExpression;return'<input name="'+h((e=null!=(e=b.name||(null!=a?a.name:a))?e:g,typeof e===f?e.call(a,{name:"name",hash:{},data:d}):e))+'" type="radio" value="'+h((e=null!=(e=b.value||(null!=a?a.value:a))?e:g,typeof e===f?e.call(a,{name:"value",hash:{},data:d}):e))+'"> '},compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f,g,h="function",i=b.helperMissing,j=b.blockHelperMissing,k="";return f=null!=(f=b.radio||(null!=a?a.radio:a))?f:i,g={name:"radio",hash:{},fn:this.program(1,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.radio||(e=j.call(a,e,g)),null!=e&&(k+=e),k+"\n"},useData:!0})),Handlebars.registerPartial("slider",Handlebars.template({1:function(a,b,c,d){var e,f,g,h="function",i=b.helperMissing,j=b.blockHelperMissing,k="<div";return e=b["if"].call(a,null!=a?a.id:a,{name:"if",hash:{},fn:this.program(2,d),inverse:this.noop,data:d}),null!=e&&(k+=e),k+=' class="mui-slider">\n <div class="mui-slider-group',f=null!=(f=b.loop||(null!=a?a.loop:a))?f:i,g={name:"loop",hash:{},fn:this.program(4,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.loop||(e=j.call(a,e,g)),null!=e&&(k+=e),k+='">\n ',f=null!=(f=b.loop||(null!=a?a.loop:a))?f:i,g={name:"loop",hash:{},fn:this.program(6,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.loop||(e=j.call(a,e,g)),null!=e&&(k+=e),k+=" ",e=b.each.call(a,null!=a?a.slider:a,{name:"each",hash:{},fn:this.program(9,d),inverse:this.noop,data:d}),null!=e&&(k+=e),k+=" ",f=null!=(f=b.loop||(null!=a?a.loop:a))?f:i,g={name:"loop",hash:{},fn:this.program(11,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.loop||(e=j.call(a,e,g)),null!=e&&(k+=e),k+="\n </div>\n",e=b["if"].call(a,null!=(e=null!=(e=null!=a?a.slider:a)?e[0]:e)?e.src:e,{name:"if",hash:{},fn:this.program(13,d),inverse:this.program(17,d),data:d}),null!=e&&(k+=e),k+" </div>\n"},2:function(a,b,c,d){var e,f="function",g=b.helperMissing,h=this.escapeExpression;return' id="'+h((e=null!=(e=b.id||(null!=a?a.id:a))?e:g,typeof e===f?e.call(a,{name:"id",hash:{},data:d}):e))+'" '},4:function(){return" mui-slider-loop"},6:function(a,b,c,d){var e,f=b.helperMissing,g=" ";return e=(b.last||a&&a.last||f).call(a,null!=a?a.slider:a,{name:"last",hash:{},fn:this.program(7,d),inverse:this.noop,data:d}),null!=e&&(g+=e),g+" "},7:function(a,b,c,d){var e,f='\n <div class="mui-slider-item mui-slider-item-duplicate">\n';return e=this.invokePartial(c.slideritem," ","slideritem",a,void 0,b,c,d),null!=e&&(f+=e),f+" </div>\n "},9:function(a,b,c,d){var e,f='\n <div class="mui-slider-item">\n';return e=this.invokePartial(c.slideritem," ","slideritem",a,void 0,b,c,d),null!=e&&(f+=e),f+" </div>\n "},11:function(a,b,c,d){var e,f=" ";return e=b["with"].call(a,null!=(e=null!=a?a.slider:a)?e[0]:e,{name:"with",hash:{},fn:this.program(7,d),inverse:this.noop,data:d}),null!=e&&(f+=e),f+" "},13:function(a,b,c,d){var e,f=' <div class="mui-slider-indicator mui-text-right">\n';return e=b.each.call(a,null!=a?a.slider:a,{name:"each",hash:{},fn:this.program(14,d),inverse:this.noop,data:d}),null!=e&&(f+=e),f+" </div>\n"},14:function(a,b,c,d){var e,f=' <div class="mui-indicator';return e=b["if"].call(a,d&&d.first,{name:"if",hash:{},fn:this.program(15,d),inverse:this.noop,data:d}),null!=e&&(f+=e),f+'"></div>\n'},15:function(){return" mui-active"},17:function(a){var b,c=this.lambda,d=this.escapeExpression;return' <div class="mui-slider-indicator" style="position: static;background-color: #fff;">\n <span class="mui-action mui-action-previous mui-icon mui-icon-back"></span>\n <div class="mui-number">\n <span>1</span> / '+d(c(null!=(b=null!=a?a.slider:a)?b.length:b,a))+'\n </div>\n <span class="mui-action mui-action-next mui-icon mui-icon-forward"></span>\n </div>\n'},compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f=this.lambda,g=b.blockHelperMissing,h="";return e=g.call(a,f(a,a),{name:"this",hash:{},fn:this.program(1,d),inverse:this.noop,data:d}),null!=e&&(h+=e),h},usePartial:!0,useData:!0})),Handlebars.registerPartial("slideritem",Handlebars.template({1:function(a,b,c,d){var e,f,g,h="function",i=b.helperMissing,j=this.escapeExpression,k=b.blockHelperMissing,l='<a href="';return e=b["if"].call(a,null!=a?a.href:a,{name:"if",hash:{},fn:this.program(2,d),inverse:this.program(4,d),data:d}),null!=e&&(l+=e),l+='">\n <img src="'+j((f=null!=(f=b.src||(null!=a?a.src:a))?f:i,typeof f===h?f.call(a,{name:"src",hash:{},data:d}):f))+'">',f=null!=(f=b.title||(null!=a?a.title:a))?f:i,g={name:"title",hash:{},fn:this.program(6,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.title||(e=k.call(a,e,g)),null!=e&&(l+=e),l+"</a>\n"},2:function(a,b,c,d){var e,f="function",g=b.helperMissing,h=this.escapeExpression;return h((e=null!=(e=b.href||(null!=a?a.href:a))?e:g,typeof e===f?e.call(a,{name:"href",hash:{},data:d}):e))},4:function(){return"#"},6:function(a){var b,c=this.lambda,d='\n <p class="mui-slider-title">';return b=c(a,a),null!=b&&(d+=b),d+"</p>\n"},8:function(a,b,c,d){var e,f='<ul class="mui-table-view mui-grid-view">\n';return e=b.each.call(a,a,{name:"each",hash:{},fn:this.program(9,d),inverse:this.noop,data:d}),null!=e&&(f+=e),f+"</ul>\n"},9:function(a,b,c,d){var e,f,g="function",h=b.helperMissing,i=this.escapeExpression,j=' <li class="mui-table-view-cell mui-media mui-col-xs-6">\n <a href="';return e=b["if"].call(a,null!=a?a.href:a,{name:"if",hash:{},fn:this.program(2,d),inverse:this.program(4,d),data:d}),null!=e&&(j+=e),j+='">\n <img class="mui-media-object" src="'+i((f=null!=(f=b.src||(null!=a?a.src:a))?f:h,typeof f===g?f.call(a,{name:"src",hash:{},data:d}):f))+'">\n <div class="mui-media-body">',f=null!=(f=b.title||(null!=a?a.title:a))?f:h,e=typeof f===g?f.call(a,{name:"title",hash:{},data:d}):f,null!=e&&(j+=e),j+"</div>\n </a>\n </li>\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f="";return e=b["if"].call(a,null!=a?a.src:a,{name:"if",hash:{},fn:this.program(1,d),inverse:this.program(8,d),data:d}),null!=e&&(f+=e),f},useData:!0})),Handlebars.registerPartial("switch",Handlebars.template({1:function(a,b,c,d){var e,f,g,h="function",i=b.helperMissing,j=b.blockHelperMissing,k='<div class="mui-switch';return f=null!=(f=b.style||(null!=a?a.style:a))?f:i,g={name:"style",hash:{},fn:this.program(2,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.style||(e=j.call(a,e,g)),null!=e&&(k+=e),f=null!=(f=b.size||(null!=a?a.size:a))?f:i,g={name:"size",hash:{},fn:this.program(2,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.size||(e=j.call(a,e,g)),null!=e&&(k+=e),f=null!=(f=b.active||(null!=a?a.active:a))?f:i,g={name:"active",hash:{},fn:this.program(4,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.active||(e=j.call(a,e,g)),null!=e&&(k+=e),k+'">\n <div class="mui-switch-handle"></div>\n</div>\n'},2:function(a){var b=this.lambda,c=this.escapeExpression;return" mui-switch-"+c(b(a,a))},4:function(){return" mui-active"},compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f,g,h="function",i=b.helperMissing,j=b.blockHelperMissing;return f=null!=(f=b["switch"]||(null!=a?a["switch"]:a))?f:i,g={name:"switch",hash:{},fn:this.program(1,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b["switch"]||(e=j.call(a,e,g)),null!=e?e:""},useData:!0})),Handlebars.registerPartial("tableview",Handlebars.template({1:function(a,b,c,d){var e,f,g,h="function",i=b.helperMissing,j=b.blockHelperMissing,k="<ul";return e=b["if"].call(a,null!=a?a.id:a,{name:"if",hash:{},fn:this.program(2,d),inverse:this.noop,data:d}),null!=e&&(k+=e),k+=' class="mui-table-view',f=null!=(f=b.chevron||(null!=a?a.chevron:a))?f:i,g={name:"chevron",hash:{},fn:this.program(4,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.chevron||(e=j.call(a,e,g)),null!=e&&(k+=e),f=null!=(f=b.striped||(null!=a?a.striped:a))?f:i,g={name:"striped",hash:{},fn:this.program(6,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.striped||(e=j.call(a,e,g)),null!=e&&(k+=e),f=null!=(f=b.inverted||(null!=a?a.inverted:a))?f:i,g={name:"inverted",hash:{},fn:this.program(8,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.inverted||(e=j.call(a,e,g)),null!=e&&(k+=e),k+='">\n ',f=null!=(f=b.tableview||(null!=a?a.tableview:a))?f:i,g={name:"tableview",hash:{},fn:this.program(10,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.tableview||(e=j.call(a,e,g)),null!=e&&(k+=e),k+"\n</ul>\n"},2:function(a,b,c,d){var e,f="function",g=b.helperMissing,h=this.escapeExpression;return' id="'+h((e=null!=(e=b.id||(null!=a?a.id:a))?e:g,typeof e===f?e.call(a,{name:"id",hash:{},data:d}):e))+'"'},4:function(){return" mui-table-view-chevron"},6:function(){return" mui-table-view-striped"},8:function(){return" mui-table-view-inverted"},10:function(a,b,c,d){var e,f=" ";return e=this.invokePartial(c.tableviewcell,"","tableviewcell",a,void 0,b,c,d),null!=e&&(f+=e),f+" "},compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f=this.lambda,g=b.blockHelperMissing,h="";return e=g.call(a,f(a,a),{name:"this",hash:{},fn:this.program(1,d),inverse:this.noop,data:d}),null!=e&&(h+=e),h},usePartial:!0,useData:!0})),Handlebars.registerPartial("tableviewcell",Handlebars.template({1:function(a,b,c,d){var e,f,g,h="function",i=b.helperMissing,j=b.blockHelperMissing,k='<li class="mui-table-view-';return e=b["if"].call(a,null!=a?a.divider:a,{name:"if",hash:{},fn:this.program(2,d),inverse:this.program(4,d),data:d}),null!=e&&(k+=e),f=null!=(f=b.radio||(null!=a?a.radio:a))?f:i,g={name:"radio",hash:{},fn:this.program(6,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.radio||(e=j.call(a,e,g)),null!=e&&(k+=e),f=null!=(f=b.checkbox||(null!=a?a.checkbox:a))?f:i,g={name:"checkbox",hash:{},fn:this.program(8,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.checkbox||(e=j.call(a,e,g)),null!=e&&(k+=e),f=null!=(f=b.position||(null!=a?a.position:a))?f:i,g={name:"position",hash:{},fn:this.program(10,d),inverse:this.noop,data:d},e=typeof f===h?f.call(a,g):f,b.position||(e=j.call(a,e,g)),null!=e&&(k+=e),e=b["if"].call(a,null!=a?a.tableview:a,{name:"if",hash:{},fn:this.program(12,d),inverse:this.noop,data:d}),null!=e&&(k+=e),k+='">\n ',e=(b.ifCond||a&&a.ifCond||i).call(a,null!=a?a.title:a,"||",null!=a?a.src:a,{name:"ifCond",hash:{},fn:this.program(14,d),inverse:this.program(26,d),data:d}),null!=e&&(k+=e),e=b["if"].call(a,null!=a?a.tableview:a,{name:"if",hash:{},fn:this.program(28,d),inverse:this.noop,data:d}),null!=e&&(k+=e),k+"\n</li>\n"
},2:function(){return"divider"},4:function(){return"cell"},6:function(){return" mui-radio"},8:function(){return" mui-checkbox"},10:function(a){var b=this.lambda,c=this.escapeExpression;return" mui-"+c(b(a,a))},12:function(){return" mui-collapse"},14:function(a,b,c,d){var e,f=b.helperMissing,g=" ";return e=(b.ifCond||a&&a.ifCond||f).call(a,null!=a?a.navigate:a,"||",null!=a?a.href:a,{name:"ifCond",hash:{},fn:this.program(15,d),inverse:this.noop,data:d}),null!=e&&(g+=e),e=(b.ifCond||a&&a.ifCond||f).call(a,null!=a?a.src:a,"||",null!=a?a.desc:a,{name:"ifCond",hash:{},fn:this.program(20,d),inverse:this.program(22,d),data:d}),null!=e&&(g+=e),g+="\n",e=this.invokePartial(c.badge," ","badge",a,void 0,b,c,d),null!=e&&(g+=e),g+="\n",e=this.invokePartial(c.btn," ","btn",a,void 0,b,c,d),null!=e&&(g+=e),g+="\n",e=this.invokePartial(c["switch"]," ","switch",a,void 0,b,c,d),null!=e&&(g+=e),g+="\n",e=this.invokePartial(c.radio," ","radio",a,void 0,b,c,d),null!=e&&(g+=e),g+="\n",e=this.invokePartial(c.checkbox," ","checkbox",a,void 0,b,c,d),null!=e&&(g+=e),g+="\n",e=this.invokePartial(c.media," ","media",a,void 0,b,c,d),null!=e&&(g+=e),g+="\n",e=(b.ifCond||a&&a.ifCond||f).call(a,null!=a?a.navigate:a,"||",null!=a?a.href:a,{name:"ifCond",hash:{},fn:this.program(24,d),inverse:this.noop,data:d}),null!=e&&(g+=e),g},15:function(a,b,c,d){var e,f='\n <a class="';return e=b["if"].call(a,null!=a?a.navigate:a,{name:"if",hash:{},fn:this.program(16,d),inverse:this.noop,data:d}),null!=e&&(f+=e),f+='" ',e=b["if"].call(a,null!=a?a.href:a,{name:"if",hash:{},fn:this.program(18,d),inverse:this.noop,data:d}),null!=e&&(f+=e),f+">\n"},16:function(){return"mui-navigate-right"},18:function(a,b,c,d){var e,f="function",g=b.helperMissing,h=this.escapeExpression;return' href="'+h((e=null!=(e=b.href||(null!=a?a.href:a))?e:g,typeof e===f?e.call(a,{name:"href",hash:{},data:d}):e))+'" '},20:function(){return""},22:function(a,b,c,d){var e,f,g="function",h=b.helperMissing,i=" ";return f=null!=(f=b.title||(null!=a?a.title:a))?f:h,e=typeof f===g?f.call(a,{name:"title",hash:{},data:d}):f,null!=e&&(i+=e),i+"\n"},24:function(){return"\n </a>\n"},26:function(a){var b,c=this.lambda,d=" ";return b=c(a,a),null!=b&&(d+=b),d+"\n"},28:function(a,b,c,d){var e,f=" ";return e=this.invokePartial(c.tableview,"","tableview",a,void 0,b,c,d),null!=e&&(f+=e),f+" "},compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f=this.lambda,g=b.blockHelperMissing;return e=g.call(a,f(a,a),{name:"this",hash:{},fn:this.program(1,d),inverse:this.noop,data:d}),null!=e?e:""},usePartial:!0,useData:!0})),function(a,b){var c=Array.isArray||function(a){return a instanceof Array},d=b.createElement("div");a.each(["tableview","slider","grid"],function(b,e){!function(b){var e=null,f=null;a.fn[b]&&(e=a.fn[b]),a.fn[b]=function(g){var h={output:!0};if(c(g)?h[b]=g:h=a.extend(h,g),!h.hasOwnProperty(b))return e&&e.call(this,h);var i=Handlebars.compile(h.tpl?h.tpl:"{{>"+b+"}}"),j="";return this.each(function(){var b=this.id;if(j=i(a.extend({id:b},h)),h.output===!1)return!1;d.innerHTML=j;for(var c=null;c=d.firstElementChild;)this.parentNode.insertBefore(c,this);this.parentNode.removeChild(this),e&&a.ready(function(){f=e.call(a(c),h)})}),h.output===!1?j:f?f:void 0}}(e)})}(mui,document);
\ No newline at end of file
},2:function(){return"divider"},4:function(){return"cell"},6:function(){return" mui-radio"},8:function(){return" mui-checkbox"},10:function(a){var b=this.lambda,c=this.escapeExpression;return" mui-"+c(b(a,a))},12:function(){return" mui-collapse"},14:function(a,b,c,d){var e,f=b.helperMissing,g=" ";return e=(b.ifCond||a&&a.ifCond||f).call(a,null!=a?a.navigate:a,"||",null!=a?a.href:a,{name:"ifCond",hash:{},fn:this.program(15,d),inverse:this.noop,data:d}),null!=e&&(g+=e),e=(b.ifCond||a&&a.ifCond||f).call(a,null!=a?a.src:a,"||",null!=a?a.desc:a,{name:"ifCond",hash:{},fn:this.program(20,d),inverse:this.program(22,d),data:d}),null!=e&&(g+=e),g+="\n",e=this.invokePartial(c.badge," ","badge",a,void 0,b,c,d),null!=e&&(g+=e),g+="\n",e=this.invokePartial(c.btn," ","btn",a,void 0,b,c,d),null!=e&&(g+=e),g+="\n",e=this.invokePartial(c["switch"]," ","switch",a,void 0,b,c,d),null!=e&&(g+=e),g+="\n",e=this.invokePartial(c.radio," ","radio",a,void 0,b,c,d),null!=e&&(g+=e),g+="\n",e=this.invokePartial(c.checkbox," ","checkbox",a,void 0,b,c,d),null!=e&&(g+=e),g+="\n",e=this.invokePartial(c.media," ","media",a,void 0,b,c,d),null!=e&&(g+=e),g+="\n",e=(b.ifCond||a&&a.ifCond||f).call(a,null!=a?a.navigate:a,"||",null!=a?a.href:a,{name:"ifCond",hash:{},fn:this.program(24,d),inverse:this.noop,data:d}),null!=e&&(g+=e),g},15:function(a,b,c,d){var e,f='\n <a class="';return e=b["if"].call(a,null!=a?a.navigate:a,{name:"if",hash:{},fn:this.program(16,d),inverse:this.noop,data:d}),null!=e&&(f+=e),f+='" ',e=b["if"].call(a,null!=a?a.href:a,{name:"if",hash:{},fn:this.program(18,d),inverse:this.noop,data:d}),null!=e&&(f+=e),f+">\n"},16:function(){return"mui-navigate-right"},18:function(a,b,c,d){var e,f="function",g=b.helperMissing,h=this.escapeExpression;return' href="'+h((e=null!=(e=b.href||(null!=a?a.href:a))?e:g,typeof e===f?e.call(a,{name:"href",hash:{},data:d}):e))+'" '},20:function(){return""},22:function(a,b,c,d){var e,f,g="function",h=b.helperMissing,i=" ";return f=null!=(f=b.title||(null!=a?a.title:a))?f:h,e=typeof f===g?f.call(a,{name:"title",hash:{},data:d}):f,null!=e&&(i+=e),i+"\n"},24:function(){return"\n </a>\n"},26:function(a){var b,c=this.lambda,d=" ";return b=c(a,a),null!=b&&(d+=b),d+"\n"},28:function(a,b,c,d){var e,f=" ";return e=this.invokePartial(c.tableview,"","tableview",a,void 0,b,c,d),null!=e&&(f+=e),f+" "},compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f=this.lambda,g=b.blockHelperMissing;return e=g.call(a,f(a,a),{name:"this",hash:{},fn:this.program(1,d),inverse:this.noop,data:d}),null!=e?e:""},usePartial:!0,useData:!0})),function(a,b){var c=Array.isArray||function(a){return a instanceof Array},d=b.createElement("div");a.each(["tableview","slider","grid"],function(b,e){!function(b){var e=null,f=null;a.fn[b]&&(e=a.fn[b]),a.fn[b]=function(g){var h={output:!0};if(c(g)?h[b]=g:h=a.extend(h,g),!h.hasOwnProperty(b))return e&&e.call(this,h);var i=Handlebars.compile(h.tpl?h.tpl:"{{>"+b+"}}"),j="";return this.each(function(){var c=this.id;if(j=i(a.extend({id:c},h)),h.output===!1)return!1;d.innerHTML=j;for(var g=null;g=d.firstElementChild;)this.parentNode.insertBefore(g,this),e&&"slider"===b&&g.querySelector(".mui-slider-group")&&a.ready(function(){f=e.call(a(g),h)});this.parentNode.removeChild(this)}),h.output===!1?j:f?f:void 0}}(e)})}(mui,document);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment