!function(root, doc, factory) { "function" == typeof define && define.amd ? define([ "jquery" ], function($) { return factory($, root, doc), $.mobile; }) : factory(root.jQuery, root, doc); }(this, document, function(jQuery, window3, document1, undefined9) { var $27, nsNormalizeDict, oldFind, rbrace, jqmDataRE, $1, window1, compensateToolbars, $2, undefined1, uuid1, slice, _cleanData, $3, rcapitals, replaceFunction, $4, doc1, bool, docElem, refNode, fakeBody1, div1, $5, support1, $6, self1, $win1, dummyFnToInitNavigate, $7, undefined2, path2, $base, dialogHashKey, $8, undefined3, $9, path1, initialHref, $10, undefined4, props1, testElement, vendorPrefixes, $11, heldCall, curr, diff1, handler1, lastCall, $12, baseElement, base1, $13, undefined5, originalWidget, keepNativeFactoryDefault, orig1, $14, undefined6, pageTransitionQueue, isPageTransitioning, $15, window2, $16, $17, $18, $19, $20, $21, undefined7, rInitialLetter, iconposClass1, $22, $23, $24, meta, initialContent1, disabledZoom, enabledZoom, disabledInitially, $25, $26, undefined8, rDividerListItem, origDefaultFilterCallback; jQuery.mobile = {}, (function($, window, undefined) { $.extend($.mobile, { version: "1.4.2", subPageUrlKey: "ui-page", hideUrlBar: !0, keepNative: ":jqmData(role='none'), :jqmData(role='nojs')", activePageClass: "ui-page-active", activeBtnClass: "ui-btn-active", focusClass: "ui-focus", ajaxEnabled: !0, hashListeningEnabled: !0, linkBindingEnabled: !0, defaultPageTransition: "fade", maxTransitionWidth: !1, minScrollBack: 0, defaultDialogTransition: "pop", pageLoadErrorMessage: "Error Loading Page", pageLoadErrorMessageTheme: "a", phonegapNavigationEnabled: !1, autoInitializePage: !0, pushStateEnabled: !0, ignoreContentEnabled: !1, buttonMarkup: { hoverDelay: 200 }, dynamicBaseEnabled: !0, pageContainer: $(), allowCrossDomainPages: !1, dialogHashKey: "&ui-state=dialog" }); })(jQuery, this), nsNormalizeDict = {}, oldFind = ($27 = jQuery).find, rbrace = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/, jqmDataRE = /:jqmData\(([^)]*)\)/g, $27.extend($27.mobile, { ns: "", getAttribute: function(element, key) { var data; (element = element.jquery ? element[0] : element) && element.getAttribute && (data = element.getAttribute("data-" + $27.mobile.ns + key)); try { data = "true" === data || "false" !== data && ("null" === data ? null : +data + "" === data ? +data : rbrace.test(data) ? JSON.parse(data) : data); } catch (err) {} return data; }, nsNormalizeDict: nsNormalizeDict, nsNormalize: function(prop) { return nsNormalizeDict[prop] || (nsNormalizeDict[prop] = $27.camelCase($27.mobile.ns + prop)); }, closestPageData: function($target) { return $target.closest(":jqmData(role='page'), :jqmData(role='dialog')").data("mobile-page"); } }), $27.fn.jqmData = function(prop, value) { var result; return void 0 !== prop && (prop && (prop = $27.mobile.nsNormalize(prop)), result = arguments.length < 2 || void 0 === value ? this.data(prop) : this.data(prop, value)), result; }, $27.jqmData = function(elem, prop, value) { var result; return void 0 !== prop && (result = $27.data(elem, prop ? $27.mobile.nsNormalize(prop) : prop, value)), result; }, $27.fn.jqmRemoveData = function(prop) { return this.removeData($27.mobile.nsNormalize(prop)); }, $27.jqmRemoveData = function(elem, prop) { return $27.removeData(elem, $27.mobile.nsNormalize(prop)); }, $27.find = function(selector, context, ret, extra) { return selector.indexOf(":jqmData") > -1 && (selector = selector.replace(jqmDataRE, "[data-" + ($27.mobile.ns || "") + "$1]")), oldFind.call(this, selector, context, ret, extra); }, $27.extend($27.find, oldFind), (function($, undefined) { var removeData, orig2, uuid = 0, runiqueId = /^ui-id-\d+$/; function focusable(element, isTabIndexNotNaN) { var map, mapName, img, nodeName = element.nodeName.toLowerCase(); return "area" === nodeName ? (mapName = (map = element.parentNode).name, !!element.href && !!mapName && "map" === map.nodeName.toLowerCase() && !!(img = $("img[usemap=#" + mapName + "]")[0]) && visible(img)) : (/input|select|textarea|button|object/.test(nodeName) ? !element.disabled : "a" === nodeName ? element.href || isTabIndexNotNaN : isTabIndexNotNaN) && visible(element); } function visible(element) { return $.expr.filters.visible(element) && !$(element).parents().addBack().filter(function() { return "hidden" === $.css(this, "visibility"); }).length; } $.ui = $.ui || {}, $.extend($.ui, { version: "c0ab71056b936627e8a7821f03c044aec6280a40", keyCode: { BACKSPACE: 8, COMMA: 188, DELETE: 46, DOWN: 40, END: 35, ENTER: 13, ESCAPE: 27, HOME: 36, LEFT: 37, PAGE_DOWN: 34, PAGE_UP: 33, PERIOD: 190, RIGHT: 39, SPACE: 32, TAB: 9, UP: 38 } }), $.fn.extend({ focus: (orig2 = $.fn.focus, function(delay, fn) { return "number" == typeof delay ? this.each(function() { var elem = this; setTimeout(function() { $(elem).focus(), fn && fn.call(elem); }, delay); }) : orig2.apply(this, arguments); }), scrollParent: function() { var scrollParent; return scrollParent = $.ui.ie && /(static|relative)/.test(this.css("position")) || /absolute/.test(this.css("position")) ? this.parents().filter(function() { return /(relative|absolute|fixed)/.test($.css(this, "position")) && /(auto|scroll)/.test($.css(this, "overflow") + $.css(this, "overflow-y") + $.css(this, "overflow-x")); }).eq(0) : this.parents().filter(function() { return /(auto|scroll)/.test($.css(this, "overflow") + $.css(this, "overflow-y") + $.css(this, "overflow-x")); }).eq(0), /fixed/.test(this.css("position")) || !scrollParent.length ? $(this[0].ownerDocument || document1) : scrollParent; }, uniqueId: function() { return this.each(function() { this.id || (this.id = "ui-id-" + ++uuid); }); }, removeUniqueId: function() { return this.each(function() { runiqueId.test(this.id) && $(this).removeAttr("id"); }); } }), $.extend($.expr[":"], { data: $.expr.createPseudo ? $.expr.createPseudo(function(dataName) { return function(elem) { return !!$.data(elem, dataName); }; }) : function(elem, i, match) { return !!$.data(elem, match[3]); }, focusable: function(element) { return focusable(element, !isNaN($.attr(element, "tabindex"))); }, tabbable: function(element) { var tabIndex = $.attr(element, "tabindex"), isTabIndexNaN = isNaN(tabIndex); return (isTabIndexNaN || tabIndex >= 0) && focusable(element, !isTabIndexNaN); } }), $("").outerWidth(1).jquery || $.each([ "Width", "Height" ], function(i, name) { var side = "Width" === name ? [ "Left", "Right" ] : [ "Top", "Bottom" ], type = name.toLowerCase(), orig = { innerWidth: $.fn.innerWidth, innerHeight: $.fn.innerHeight, outerWidth: $.fn.outerWidth, outerHeight: $.fn.outerHeight }; function reduce(elem, size, border, margin) { return $.each(side, function() { size -= parseFloat($.css(elem, "padding" + this)) || 0, border && (size -= parseFloat($.css(elem, "border" + this + "Width")) || 0), margin && (size -= parseFloat($.css(elem, "margin" + this)) || 0); }), size; } $.fn["inner" + name] = function(size) { return size === undefined ? orig["inner" + name].call(this) : this.each(function() { $(this).css(type, reduce(this, size) + "px"); }); }, $.fn["outer" + name] = function(size, margin) { return "number" != typeof size ? orig["outer" + name].call(this, size) : this.each(function() { $(this).css(type, reduce(this, size, !0, margin) + "px"); }); }; }), $.fn.addBack || ($.fn.addBack = function(selector) { return this.add(null == selector ? this.prevObject : this.prevObject.filter(selector)); }), $("").data("a-b", "a").removeData("a-b").data("a-b") && ($.fn.removeData = (removeData = $.fn.removeData, function(key) { return arguments.length ? removeData.call(this, $.camelCase(key)) : removeData.call(this); })), $.ui.ie = !!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()), $.support.selectstart = "onselectstart" in document1.createElement("div"), $.fn.extend({ disableSelection: function() { return this.bind(($.support.selectstart ? "selectstart" : "mousedown") + ".ui-disableSelection", function(event) { event.preventDefault(); }); }, enableSelection: function() { return this.unbind(".ui-disableSelection"); }, zIndex: function(zIndex) { if (zIndex !== undefined) return this.css("zIndex", zIndex); if (this.length) for(var position, value, elem = $(this[0]); elem.length && elem[0] !== document1;){ if (("absolute" === (position = elem.css("position")) || "relative" === position || "fixed" === position) && !isNaN(value = parseInt(elem.css("zIndex"), 10)) && 0 !== value) return value; elem = elem.parent(); } return 0; } }), $.ui.plugin = { add: function(module, option, set) { var i, proto = $.ui[module].prototype; for(i in set)proto.plugins[i] = proto.plugins[i] || [], proto.plugins[i].push([ option, set[i] ]); }, call: function(instance, name, args, allowDisconnected) { var i, set = instance.plugins[name]; if (set && (allowDisconnected || instance.element[0].parentNode && 11 !== instance.element[0].parentNode.nodeType)) for(i = 0; i < set.length; i++)instance.options[set[i][0]] && set[i][1].apply(instance.element, args); } }; })(jQuery), $1 = jQuery, window1 = this, compensateToolbars = function(page, desiredHeight) { var pageParent = page.parent(), toolbarsAffectingHeight = [], externalHeaders = pageParent.children(":jqmData(role='header')"), internalHeaders = page.children(":jqmData(role='header')"), externalFooters = pageParent.children(":jqmData(role='footer')"), internalFooters = page.children(":jqmData(role='footer')"); return 0 === internalHeaders.length && externalHeaders.length > 0 && (toolbarsAffectingHeight = toolbarsAffectingHeight.concat(externalHeaders.toArray())), 0 === internalFooters.length && externalFooters.length > 0 && (toolbarsAffectingHeight = toolbarsAffectingHeight.concat(externalFooters.toArray())), $1.each(toolbarsAffectingHeight, function(index, value) { desiredHeight -= $1(value).outerHeight(); }), Math.max(0, desiredHeight); }, $1.extend($1.mobile, { window: $1(window1), document: $1(document1), keyCode: $1.ui.keyCode, behaviors: {}, silentScroll: function(ypos) { "number" !== $1.type(ypos) && (ypos = $1.mobile.defaultHomeScroll), $1.event.special.scrollstart.enabled = !1, setTimeout(function() { window1.scrollTo(0, ypos), $1.mobile.document.trigger("silentscroll", { x: 0, y: ypos }); }, 20), setTimeout(function() { $1.event.special.scrollstart.enabled = !0; }, 150); }, getClosestBaseUrl: function(ele) { var url = $1(ele).closest(".ui-page").jqmData("url"), base = $1.mobile.path.documentBase.hrefNoHash; return $1.mobile.dynamicBaseEnabled && url && $1.mobile.path.isPath(url) || (url = base), $1.mobile.path.makeUrlAbsolute(url, base); }, removeActiveLinkClass: function(forceRemoval) { $1.mobile.activeClickedLink && (!$1.mobile.activeClickedLink.closest("." + $1.mobile.activePageClass).length || forceRemoval) && $1.mobile.activeClickedLink.removeClass($1.mobile.activeBtnClass), $1.mobile.activeClickedLink = null; }, getInheritedTheme: function(el, defaultTheme) { for(var c, m, e = el[0], ltr = "", re = /ui-(bar|body|overlay)-([a-z])\b/; e;){ if ((c = e.className || "") && (m = re.exec(c)) && (ltr = m[2])) break; e = e.parentNode; } return ltr || defaultTheme || "a"; }, enhanceable: function(elements) { return this.haveParents(elements, "enhance"); }, hijackable: function(elements) { return this.haveParents(elements, "ajax"); }, haveParents: function(elements, attr) { if (!$1.mobile.ignoreContentEnabled) return elements; var e, $element, excluded, i, count = elements.length, $newSet = $1(); for(i = 0; i < count; i++){ for($element = elements.eq(i), excluded = !1, e = elements[i]; e;){ if ("false" === (e.getAttribute ? e.getAttribute("data-" + $1.mobile.ns + attr) : "")) { excluded = !0; break; } e = e.parentNode; } excluded || ($newSet = $newSet.add($element)); } return $newSet; }, getScreenHeight: function() { return window1.innerHeight || $1.mobile.window.height(); }, resetActivePageHeight: function(height) { var page = $1("." + $1.mobile.activePageClass), pageHeight = page.height(), pageOuterHeight = page.outerHeight(!0); height = compensateToolbars(page, "number" == typeof height ? height : $1.mobile.getScreenHeight()), page.css("min-height", height - (pageOuterHeight - pageHeight)); }, loading: function() { var loader = this.loading._widget || $1($1.mobile.loader.prototype.defaultHtml).loader(), returnValue = loader.loader.apply(loader, arguments); return this.loading._widget = loader, returnValue; } }), $1.addDependents = function(elem, newDependents) { var $elem = $1(elem), dependents = $elem.jqmData("dependents") || $1(); $elem.jqmData("dependents", $1(dependents).add(newDependents)); }, $1.fn.extend({ removeWithDependents: function() { $1.removeWithDependents(this); }, enhanceWithin: function() { var index, widgetElements = {}, keepNative = $1.mobile.page.prototype.keepNativeSelector(), that = this; for(index in $1.mobile.nojs && $1.mobile.nojs(this), $1.mobile.links && $1.mobile.links(this), $1.mobile.degradeInputsWithin && $1.mobile.degradeInputsWithin(this), $1.fn.buttonMarkup && this.find($1.fn.buttonMarkup.initSelector).not(keepNative).jqmEnhanceable().buttonMarkup(), $1.fn.fieldcontain && this.find(":jqmData(role='fieldcontain')").not(keepNative).jqmEnhanceable().fieldcontain(), $1.each($1.mobile.widgets, function(name, constructor) { if (constructor.initSelector) { var elements = $1.mobile.enhanceable(that.find(constructor.initSelector)); elements.length > 0 && (elements = elements.not(keepNative)), elements.length > 0 && (widgetElements[constructor.prototype.widgetName] = elements); } }), widgetElements)widgetElements[index][index](); return this; }, addDependents: function(newDependents) { $1.addDependents(this, newDependents); }, getEncodedText: function() { return $1("").text(this.text()).html(); }, jqmEnhanceable: function() { return $1.mobile.enhanceable(this); }, jqmHijackable: function() { return $1.mobile.hijackable(this); } }), $1.removeWithDependents = function(nativeElement) { var element = $1(nativeElement); (element.jqmData("dependents") || $1()).remove(), element.remove(); }, $1.addDependents = function(nativeElement, newDependents) { var element = $1(nativeElement), dependents = element.jqmData("dependents") || $1(); element.jqmData("dependents", $1(dependents).add(newDependents)); }, $1.find.matches = function(expr, set) { return $1.find(expr, null, null, set); }, $1.find.matchesSelector = function(node, expr) { return $1.find(expr, null, null, [ node ]).length > 0; }, $2 = jQuery, uuid1 = 0, slice = Array.prototype.slice, _cleanData = $2.cleanData, $2.cleanData = function(elems) { for(var elem, i = 0; null != (elem = elems[i]); i++)try { $2(elem).triggerHandler("remove"); } catch (e) {} _cleanData(elems); }, $2.widget = function(name, base, prototype) { var fullName, existingConstructor, constructor, basePrototype, proxiedPrototype = {}, namespace = name.split(".")[0]; return fullName = namespace + "-" + (name = name.split(".")[1]), prototype || (prototype = base, base = $2.Widget), $2.expr[":"][fullName.toLowerCase()] = function(elem) { return !!$2.data(elem, fullName); }, $2[namespace] = $2[namespace] || {}, existingConstructor = $2[namespace][name], constructor = $2[namespace][name] = function(options, element) { if (!this._createWidget) return new constructor(options, element); arguments.length && this._createWidget(options, element); }, $2.extend(constructor, existingConstructor, { version: prototype.version, _proto: $2.extend({}, prototype), _childConstructors: [] }), basePrototype = new base(), basePrototype.options = $2.widget.extend({}, basePrototype.options), $2.each(prototype, function(prop, value) { if (!$2.isFunction(value)) { proxiedPrototype[prop] = value; return; } proxiedPrototype[prop] = function() { var returnValue, __super = this._super, __superApply = this._superApply; return this._super = function() { return base.prototype[prop].apply(this, arguments); }, this._superApply = function(args) { return base.prototype[prop].apply(this, args); }, returnValue = value.apply(this, arguments), this._super = __super, this._superApply = __superApply, returnValue; }; }), constructor.prototype = $2.widget.extend(basePrototype, { widgetEventPrefix: existingConstructor ? basePrototype.widgetEventPrefix || name : name }, proxiedPrototype, { constructor: constructor, namespace: namespace, widgetName: name, widgetFullName: fullName }), existingConstructor ? ($2.each(existingConstructor._childConstructors, function(i, child) { var childPrototype = child.prototype; $2.widget(childPrototype.namespace + "." + childPrototype.widgetName, constructor, child._proto); }), delete existingConstructor._childConstructors) : base._childConstructors.push(constructor), $2.widget.bridge(name, constructor), constructor; }, $2.widget.extend = function(target) { for(var key, value, input = slice.call(arguments, 1), inputIndex = 0, inputLength = input.length; inputIndex < inputLength; inputIndex++)for(key in input[inputIndex])value = input[inputIndex][key], input[inputIndex].hasOwnProperty(key) && value !== undefined1 && ($2.isPlainObject(value) ? target[key] = $2.isPlainObject(target[key]) ? $2.widget.extend({}, target[key], value) : $2.widget.extend({}, value) : target[key] = value); return target; }, $2.widget.bridge = function(name, object) { var fullName = object.prototype.widgetFullName || name; $2.fn[name] = function(options) { var isMethodCall = "string" == typeof options, args = slice.call(arguments, 1), returnValue = this; return options = !isMethodCall && args.length ? $2.widget.extend.apply(null, [ options ].concat(args)) : options, isMethodCall ? this.each(function() { var methodValue, instance = $2.data(this, fullName); return "instance" === options ? (returnValue = instance, !1) : instance ? $2.isFunction(instance[options]) && "_" !== options.charAt(0) ? (methodValue = instance[options].apply(instance, args)) !== instance && methodValue !== undefined1 ? (returnValue = methodValue && methodValue.jquery ? returnValue.pushStack(methodValue.get()) : methodValue, !1) : void 0 : $2.error("no such method '" + options + "' for " + name + " widget instance") : $2.error("cannot call methods on " + name + " prior to initialization; attempted to call method '" + options + "'"); }) : this.each(function() { var instance = $2.data(this, fullName); instance ? instance.option(options || {})._init() : $2.data(this, fullName, new object(options, this)); }), returnValue; }; }, $2.Widget = function() {}, $2.Widget._childConstructors = [], $2.Widget.prototype = { widgetName: "widget", widgetEventPrefix: "", defaultElement: "
", options: { disabled: !1, create: null }, _createWidget: function(options, element) { element = $2(element || this.defaultElement || this)[0], this.element = $2(element), this.uuid = uuid1++, this.eventNamespace = "." + this.widgetName + this.uuid, this.options = $2.widget.extend({}, this.options, this._getCreateOptions(), options), this.bindings = $2(), this.hoverable = $2(), this.focusable = $2(), element !== this && ($2.data(element, this.widgetFullName, this), this._on(!0, this.element, { remove: function(event) { event.target === element && this.destroy(); } }), this.document = $2(element.style ? element.ownerDocument : element.document || element), this.window = $2(this.document[0].defaultView || this.document[0].parentWindow)), this._create(), this._trigger("create", null, this._getCreateEventData()), this._init(); }, _getCreateOptions: $2.noop, _getCreateEventData: $2.noop, _create: $2.noop, _init: $2.noop, destroy: function() { this._destroy(), this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData($2.camelCase(this.widgetFullName)), this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName + "-disabled ui-state-disabled"), this.bindings.unbind(this.eventNamespace), this.hoverable.removeClass("ui-state-hover"), this.focusable.removeClass("ui-state-focus"); }, _destroy: $2.noop, widget: function() { return this.element; }, option: function(key, value) { var parts, curOption, i, options = key; if (0 === arguments.length) return $2.widget.extend({}, this.options); if ("string" == typeof key) if (options = {}, key = (parts = key.split(".")).shift(), parts.length) { for(i = 0, curOption = options[key] = $2.widget.extend({}, this.options[key]); i < parts.length - 1; i++)curOption[parts[i]] = curOption[parts[i]] || {}, curOption = curOption[parts[i]]; if (key = parts.pop(), value === undefined1) return undefined1 === curOption[key] ? null : curOption[key]; curOption[key] = value; } else { if (value === undefined1) return undefined1 === this.options[key] ? null : this.options[key]; options[key] = value; } return this._setOptions(options), this; }, _setOptions: function(options) { var key; for(key in options)this._setOption(key, options[key]); return this; }, _setOption: function(key, value) { return this.options[key] = value, "disabled" === key && (this.widget().toggleClass(this.widgetFullName + "-disabled", !!value), this.hoverable.removeClass("ui-state-hover"), this.focusable.removeClass("ui-state-focus")), this; }, enable: function() { return this._setOptions({ disabled: !1 }); }, disable: function() { return this._setOptions({ disabled: !0 }); }, _on: function(suppressDisabledCheck, element, handlers) { var delegateElement, instance = this; "boolean" != typeof suppressDisabledCheck && (handlers = element, element = suppressDisabledCheck, suppressDisabledCheck = !1), handlers ? (element = delegateElement = $2(element), this.bindings = this.bindings.add(element)) : (handlers = element, element = this.element, delegateElement = this.widget()), $2.each(handlers, function(event, handler) { function handlerProxy() { if (!(!suppressDisabledCheck && (!0 === instance.options.disabled || $2(this).hasClass("ui-state-disabled")))) return ("string" == typeof handler ? instance[handler] : handler).apply(instance, arguments); } "string" != typeof handler && (handlerProxy.guid = handler.guid = handler.guid || handlerProxy.guid || $2.guid++); var match = event.match(/^(\w+)\s*(.*)$/), eventName = match[1] + instance.eventNamespace, selector = match[2]; selector ? delegateElement.delegate(selector, eventName, handlerProxy) : element.bind(eventName, handlerProxy); }); }, _off: function(element, eventName) { eventName = (eventName || "").split(" ").join(this.eventNamespace + " ") + this.eventNamespace, element.unbind(eventName).undelegate(eventName); }, _delay: function(handler, delay) { var instance = this; return setTimeout(function() { return ("string" == typeof handler ? instance[handler] : handler).apply(instance, arguments); }, delay || 0); }, _hoverable: function(element) { this.hoverable = this.hoverable.add(element), this._on(element, { mouseenter: function(event) { $2(event.currentTarget).addClass("ui-state-hover"); }, mouseleave: function(event) { $2(event.currentTarget).removeClass("ui-state-hover"); } }); }, _focusable: function(element) { this.focusable = this.focusable.add(element), this._on(element, { focusin: function(event) { $2(event.currentTarget).addClass("ui-state-focus"); }, focusout: function(event) { $2(event.currentTarget).removeClass("ui-state-focus"); } }); }, _trigger: function(type, event, data) { var prop, orig, callback = this.options[type]; if (data = data || {}, (event = $2.Event(event)).type = (type === this.widgetEventPrefix ? type : this.widgetEventPrefix + type).toLowerCase(), event.target = this.element[0], orig = event.originalEvent) for(prop in orig)prop in event || (event[prop] = orig[prop]); return this.element.trigger(event, data), !($2.isFunction(callback) && !1 === callback.apply(this.element[0], [ event ].concat(data)) || event.isDefaultPrevented()); } }, $2.each({ show: "fadeIn", hide: "fadeOut" }, function(method, defaultEffect) { $2.Widget.prototype["_" + method] = function(element, options, callback) { "string" == typeof options && (options = { effect: options }); var hasOptions, effectName = options ? !0 === options || "number" == typeof options ? defaultEffect : options.effect || defaultEffect : method; "number" == typeof (options = options || {}) && (options = { duration: options }), hasOptions = !$2.isEmptyObject(options), options.complete = callback, options.delay && element.delay(options.delay), hasOptions && $2.effects && $2.effects.effect[effectName] ? element[method](options) : effectName !== method && element[effectName] ? element[effectName](options.duration, options.easing, callback) : element.queue(function(next) { $2(this)[method](), callback && callback.call(element[0]), next(); }); }; }), $3 = jQuery, rcapitals = /[A-Z]/g, replaceFunction = function(c) { return "-" + c.toLowerCase(); }, $3.extend($3.Widget.prototype, { _getCreateOptions: function() { var option, value, elem = this.element[0], options = {}; if (!$3.mobile.getAttribute(elem, "defaults")) for(option in this.options)null != (value = $3.mobile.getAttribute(elem, option.replace(rcapitals, replaceFunction))) && (options[option] = value); return options; } }), $3.mobile.widget = $3.Widget, (function($) { var loaderClass = "ui-loader", $html = $("html"); $.widget("mobile.loader", { options: { theme: "a", textVisible: !1, html: "", text: "loading" }, defaultHtml: "

", fakeFixLoader: function() { var activeBtn = $("." + $.mobile.activeBtnClass).first(); this.element.css({ top: $.support.scrollTop && this.window.scrollTop() + this.window.height() / 2 || activeBtn.length && activeBtn.offset().top || 100 }); }, checkLoaderPosition: function() { var offset = this.element.offset(), scrollTop = this.window.scrollTop(), screenHeight = $.mobile.getScreenHeight(); (offset.top < scrollTop || offset.top - scrollTop > screenHeight) && (this.element.addClass("ui-loader-fakefix"), this.fakeFixLoader(), this.window.unbind("scroll", this.checkLoaderPosition).bind("scroll", $.proxy(this.fakeFixLoader, this))); }, resetHtml: function() { this.element.html($(this.defaultHtml).html()); }, show: function(theme, msgText, textonly) { var textVisible, message, loadSettings; this.resetHtml(), "object" === $.type(theme) ? theme = (loadSettings = $.extend({}, this.options, theme)).theme : (loadSettings = this.options, theme = theme || loadSettings.theme), message = msgText || (!1 === loadSettings.text ? "" : loadSettings.text), $html.addClass("ui-loading"), textVisible = loadSettings.textVisible, this.element.attr("class", loaderClass + " ui-corner-all ui-body-" + theme + " ui-loader-" + (textVisible || msgText || theme.text ? "verbose" : "default") + (loadSettings.textonly || textonly ? " ui-loader-textonly" : "")), loadSettings.html ? this.element.html(loadSettings.html) : this.element.find("h1").text(message), this.element.appendTo($.mobile.pageContainer), this.checkLoaderPosition(), this.window.bind("scroll", $.proxy(this.checkLoaderPosition, this)); }, hide: function() { $html.removeClass("ui-loading"), this.options.text && this.element.removeClass("ui-loader-fakefix"), $.mobile.window.unbind("scroll", this.fakeFixLoader), $.mobile.window.unbind("scroll", this.checkLoaderPosition); } }); })(jQuery, this), (function($, window, undefined) { var fake_onhashchange, str_hashchange = "hashchange", doc = document1, special = $.event.special, doc_mode = doc.documentMode, supports_onhashchange = "on" + str_hashchange in window && (doc_mode === undefined || doc_mode > 7); function get_fragment(url) { return "#" + (url = url || location.href).replace(/^[^#]*#?(.*)$/, "$1"); } $.fn[str_hashchange] = function(fn) { return fn ? this.bind(str_hashchange, fn) : this.trigger(str_hashchange); }, $.fn[str_hashchange].delay = 50, special[str_hashchange] = $.extend(special[str_hashchange], { setup: function() { if (supports_onhashchange) return !1; $(fake_onhashchange.start); }, teardown: function() { if (supports_onhashchange) return !1; $(fake_onhashchange.stop); } }), fake_onhashchange = (function() { var iframe, iframe_src, timeout_id, self = {}, last_hash = get_fragment(), fn_retval = function(val) { return val; }, history_set = fn_retval, history_get = fn_retval; function poll() { var hash = get_fragment(), history_hash = history_get(last_hash); hash !== last_hash ? (history_set(last_hash = hash, history_hash), $(window).trigger(str_hashchange)) : history_hash !== last_hash && (location.href = location.href.replace(/#.*/, "") + history_hash), timeout_id = setTimeout(poll, $.fn[str_hashchange].delay); } return self.start = function() { timeout_id || poll(); }, self.stop = function() { timeout_id && clearTimeout(timeout_id), timeout_id = undefined; }, !window.attachEvent || window.addEventListener || supports_onhashchange || (self.start = function() { iframe || (iframe_src = (iframe_src = $.fn[str_hashchange].src) && iframe_src + get_fragment(), iframe = $("