mirror of
https://gitlab.silvrtree.co.uk/martind2000/obrand-admin-server.git
synced 2025-02-19 05:59:17 +00:00
64 lines
217 KiB
JavaScript
64 lines
217 KiB
JavaScript
|
/** vim: et:ts=4:sw=4:sts=4
|
||
|
* @license RequireJS 2.1.22 Copyright (c) 2010-2015, The Dojo Foundation All Rights Reserved.
|
||
|
* Available via the MIT or new BSD license.
|
||
|
* see: http://github.com/jrburke/requirejs for details
|
||
|
*/
|
||
|
var requirejs,require,define;/*!
|
||
|
* Bootstrap v3.1.1 (http://getbootstrap.com)
|
||
|
* Copyright 2011-2014 Twitter, Inc.
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||
|
*/
|
||
|
if(function(global){function isFunction(e){return"[object Function]"===ostring.call(e)}function isArray(e){return"[object Array]"===ostring.call(e)}function each(e,t){if(e){var n;for(n=0;n<e.length&&(!e[n]||!t(e[n],n,e));n+=1);}}function eachReverse(e,t){if(e){var n;for(n=e.length-1;n>-1&&(!e[n]||!t(e[n],n,e));n-=1);}}function hasProp(e,t){return hasOwn.call(e,t)}function getOwn(e,t){return hasProp(e,t)&&e[t]}function eachProp(e,t){var n;for(n in e)if(hasProp(e,n)&&t(e[n],n))break}function mixin(e,t,n,i){return t&&eachProp(t,function(t,r){(n||!hasProp(e,r))&&(!i||"object"!=typeof t||!t||isArray(t)||isFunction(t)||t instanceof RegExp?e[r]=t:(e[r]||(e[r]={}),mixin(e[r],t,n,i)))}),e}function bind(e,t){return function(){return t.apply(e,arguments)}}function scripts(){return document.getElementsByTagName("script")}function defaultOnError(e){throw e}function getGlobal(e){if(!e)return e;var t=global;return each(e.split("."),function(e){t=t[e]}),t}function makeError(e,t,n,i){var r=new Error(t+"\nhttp://requirejs.org/docs/errors.html#"+e);return r.requireType=e,r.requireModules=i,n&&(r.originalError=n),r}function newContext(e){function t(e){var t,n;for(t=0;t<e.length;t++)if(n=e[t],"."===n)e.splice(t,1),t-=1;else if(".."===n){if(0===t||1===t&&".."===e[2]||".."===e[t-1])continue;t>0&&(e.splice(t-1,2),t-=2)}}function n(e,n,i){var r,o,a,s,u,l,c,f,p,d,h,g,m=n&&n.split("/"),v=T.map,y=v&&v["*"];if(e&&(e=e.split("/"),c=e.length-1,T.nodeIdCompat&&jsSuffixRegExp.test(e[c])&&(e[c]=e[c].replace(jsSuffixRegExp,"")),"."===e[0].charAt(0)&&m&&(g=m.slice(0,m.length-1),e=g.concat(e)),t(e),e=e.join("/")),i&&v&&(m||y)){a=e.split("/");e:for(s=a.length;s>0;s-=1){if(l=a.slice(0,s).join("/"),m)for(u=m.length;u>0;u-=1)if(o=getOwn(v,m.slice(0,u).join("/")),o&&(o=getOwn(o,l))){f=o,p=s;break e}!d&&y&&getOwn(y,l)&&(d=getOwn(y,l),h=s)}!f&&d&&(f=d,p=h),f&&(a.splice(0,p,f),e=a.join("/"))}return r=getOwn(T.pkgs,e),r?r:e}function i(e){isBrowser&&each(scripts(),function(t){return t.getAttribute("data-requiremodule")===e&&t.getAttribute("data-requirecontext")===x.contextName?(t.parentNode.removeChild(t),!0):void 0})}function r(e){var t=getOwn(T.paths,e);return t&&isArray(t)&&t.length>1?(t.shift(),x.require.undef(e),x.makeRequire(null,{skipMap:!0})([e]),!0):void 0}function o(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function a(e,t,i,r){var a,s,u,l,c=null,f=t?t.name:null,p=e,d=!0,h="";return e||(d=!1,e="_@r"+(O+=1)),l=o(e),c=l[0],e=l[1],c&&(c=n(c,f,r),s=getOwn(A,c)),e&&(c?h=s&&s.normalize?s.normalize(e,function(e){return n(e,f,r)}):-1===e.indexOf("!")?n(e,f,r):e:(h=n(e,f,r),l=o(h),c=l[0],h=l[1],i=!0,a=x.nameToUrl(h))),u=!c||s||i?"":"_unnormalized"+($+=1),{prefix:c,name:h,parentMap:t,unnormalized:!!u,url:a,originalName:p,isDefine:d,id:(c?c+"!"+h:h)+u}}function s(e){var t=e.id,n=getOwn(k,t);return n||(n=k[t]=new x.Module(e)),n}function u(e,t,n){var i=e.id,r=getOwn(k,i);!hasProp(A,i)||r&&!r.defineEmitComplete?(r=s(e),r.error&&"error"===t?n(r.error):r.on(t,n)):"defined"===t&&n(A[i])}function l(e,t){var n=e.requireModules,i=!1;t?t(e):(each(n,function(t){var n=getOwn(k,t);n&&(n.error=e,n.events.error&&(i=!0,n.emit("error",e)))}),i||req.onError(e))}function c(){globalDefQueue.length&&(each(globalDefQueue,function(e){var t=e[0];"string"==typeof t&&(x.defQueueMap[t]=!0),N.push(e)}),globalDefQueue=[])}function f(e){delete k[e],delete E[e]}function p(e,t,n){var i=e.map.id;e.error?e.emit("error",e.error):(t[i]=!0,each(e.depMaps,function(i,r){var o=i.id,a=getOwn(k,o);!a||e.depMatched[r]||n[o]||(getOwn(t,o)?(e.defineDep(r,A[o]),e.check()):p(a,t,n))}),n[i]=!0)}function d(){var e,t,n=1e3*T.waitSeconds,o=n&&x.startTime+n<(new Date).getTime(),a=[],s=[],u=!1,c=!0;if(!y){if(y=!0,eachProp(E,function(e){var n=e.map,l=n.id;if(e.enabled&&(n.isDefine||s.push(e),!e.error))if(!e.inited&&o)r(l)?(t=!0,u=!0):(a.push(l),i(l));else if(!e.inited&&e.fetched&&n.isDefine&&(u=!0,!n.prefix))return c=!1}),o&&a.length)return e=makeError("timeout","Load timeout for modules: "+a,null,a),e.contextName=x.contextName,l(e);c&&each(s,function(e){p(e,{},{})
|
||
|
* jQuery JavaScript Library v2.2.3
|
||
|
* http://jquery.com/
|
||
|
*
|
||
|
* Includes Sizzle.js
|
||
|
* http://sizzlejs.com/
|
||
|
*
|
||
|
* Copyright jQuery Foundation and other contributors
|
||
|
* Released under the MIT license
|
||
|
* http://jquery.org/license
|
||
|
*
|
||
|
* Date: 2016-04-05T19:26Z
|
||
|
*/
|
||
|
function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=!!e&&"length"in e&&e.length,n=oe.type(e);return"function"===n||oe.isWindow(e)?!1:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function i(e,t,n){if(oe.isFunction(t))return oe.grep(e,function(e,i){return!!t.call(e,i,e)!==n});if(t.nodeType)return oe.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(ge.test(t))return oe.filter(t,e,n);t=oe.filter(t,e)}return oe.grep(e,function(e){return Z.call(t,e)>-1!==n})}function r(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function o(e){var t={};return oe.each(e.match(we)||[],function(e,n){t[n]=!0}),t}function a(){J.removeEventListener("DOMContentLoaded",a),e.removeEventListener("load",a),oe.ready()}function s(){this.expando=oe.expando+s.uid++}function u(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(Ae,"-$&").toLowerCase(),n=e.getAttribute(i),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:Ne.test(n)?oe.parseJSON(n):n}catch(r){}Se.set(e,t,n)}else n=void 0;return n}function l(e,t,n,i){var r,o=1,a=20,s=i?function(){return i.cur()}:function(){return oe.css(e,t,"")},u=s(),l=n&&n[3]||(oe.cssNumber[t]?"":"px"),c=(oe.cssNumber[t]||"px"!==l&&+u)&&De.exec(oe.css(e,t));if(c&&c[3]!==l){l=l||c[3],n=n||[],c=+u||1;do o=o||".5",c/=o,oe.style(e,t,c+l);while(o!==(o=s()/u)&&1!==o&&--a)}return n&&(c=+c||+u||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=l,i.start=c,i.end=r)),r}function c(e,t){var n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&oe.nodeName(e,t)?oe.merge([e],n):n}function f(e,t){for(var n=0,i=e.length;i>n;n++)Ee.set(e[n],"globalEval",!t||Ee.get(t[n],"globalEval"))}function p(e,t,n,i,r){for(var o,a,s,u,l,p,d=t.createDocumentFragment(),h=[],g=0,m=e.length;m>g;g++)if(o=e[g],o||0===o)if("object"===oe.type(o))oe.merge(h,o.nodeType?[o]:o);else if(Le.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(qe.exec(o)||["",""])[1].toLowerCase(),u=Me[s]||Me._default,a.innerHTML=u[1]+oe.htmlPrefilter(o)+u[2],p=u[0];p--;)a=a.lastChild;oe.merge(h,a.childNodes),a=d.firstChild,a.textContent=""}else h.push(t.createTextNode(o));for(d.textContent="",g=0;o=h[g++];)if(i&&oe.inArray(o,i)>-1)r&&r.push(o);else if(l=oe.contains(o.ownerDocument,o),a=c(d.appendChild(o),"script"),l&&f(a),n)for(p=0;o=a[p++];)Re.test(o.type||"")&&n.push(o);return d}function d(){return!0}function h(){return!1}function g(){try{return J.activeElement}catch(e){}}function m(e,t,n,i,r,o){var a,s;if("object"==typeof t){"string"!=typeof n&&(i=i||n,n=void 0);for(s in t)m(e,s,n,i,t[s],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),r===!1)r=h;else if(!r)return e;return 1===o&&(a=r,r=function(e){return oe().off(e),a.apply(this,arguments)},r.guid=a.guid||(a.guid=oe.guid++)),e.each(function(){oe.event.add(this,t,r,i,n)})}function v(e,t){return oe.nodeName(e,"table")&&oe.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function y(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function b(e){var t=Ue.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function x(e,t){var n,i,r,o,a,s,u,l;if(1===t.nodeType){if(Ee.hasData(e)&&(o=Ee.access(e),a=Ee.set(t,o),l=o.events)){delete a.handle,a.events={};for(r in l)for(n=0,i=l[r].length;i>n;n++)oe.event.add(t,r,l[r][n])}Se.hasData(e)&&(s=Se.access(e),u=oe.extend({},s),Se.set(t,u))}}function w(e,t){var n=t.nodeName.toLowerCase();"input"===n&&je.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}function C(e,t,n,i){t=Y.apply([],t);var r,o,a,s,u,l,f=0,d=e.length,h=d-1,g=t[0],m=oe.isFunction(g);if(m||d>1&&"string"==typeof g&
|
||
|
* Sizzle CSS Selector Engine v2.2.1
|
||
|
* http://sizzlejs.com/
|
||
|
*
|
||
|
* Copyright jQuery Foundation and other contributors
|
||
|
* Released under the MIT license
|
||
|
* http://jquery.org/license
|
||
|
*
|
||
|
* Date: 2015-10-17
|
||
|
*/
|
||
|
function(e){function t(e,t,n,i){var r,o,a,s,u,l,f,d,h=t&&t.ownerDocument,g=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==g&&9!==g&&11!==g)return n;if(!i&&((t?t.ownerDocument||t:F)!==$&&O(t),t=t||$,q)){if(11!==g&&(l=ve.exec(e)))if(r=l[1]){if(9===g){if(!(a=t.getElementById(r)))return n;if(a.id===r)return n.push(a),n}else if(h&&(a=h.getElementById(r))&&P(t,a)&&a.id===r)return n.push(a),n}else{if(l[2])return K.apply(n,t.getElementsByTagName(e)),n;if((r=l[3])&&w.getElementsByClassName&&t.getElementsByClassName)return K.apply(n,t.getElementsByClassName(r)),n}if(w.qsa&&!z[e+" "]&&(!R||!R.test(e))){if(1!==g)h=t,d=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(be,"\\$&"):t.setAttribute("id",s=I),f=E(e),o=f.length,u=pe.test(s)?"#"+s:"[id='"+s+"']";o--;)f[o]=u+" "+p(f[o]);d=f.join(","),h=ye.test(e)&&c(t.parentNode)||t}if(d)try{return K.apply(n,h.querySelectorAll(d)),n}catch(m){}finally{s===I&&t.removeAttribute("id")}}}return N(e.replace(se,"$1"),t,n,i)}function n(){function e(n,i){return t.push(n+" ")>C.cacheLength&&delete e[t.shift()],e[n+" "]=i}var t=[];return e}function i(e){return e[I]=!0,e}function r(e){var t=$.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),i=n.length;i--;)C.attrHandle[n[i]]=t}function a(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||X)-(~e.sourceIndex||X);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function l(e){return i(function(t){return t=+t,i(function(n,i){for(var r,o=e([],n.length,t),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))})})}function c(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function f(){}function p(e){for(var t=0,n=e.length,i="";n>t;t++)i+=e[t].value;return i}function d(e,t,n){var i=t.dir,r=n&&"parentNode"===i,o=H++;return t.first?function(t,n,o){for(;t=t[i];)if(1===t.nodeType||r)return e(t,n,o)}:function(t,n,a){var s,u,l,c=[B,o];if(a){for(;t=t[i];)if((1===t.nodeType||r)&&e(t,n,a))return!0}else for(;t=t[i];)if(1===t.nodeType||r){if(l=t[I]||(t[I]={}),u=l[t.uniqueID]||(l[t.uniqueID]={}),(s=u[i])&&s[0]===B&&s[1]===o)return c[2]=s[2];if(u[i]=c,c[2]=e(t,n,a))return!0}}}function h(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function g(e,n,i){for(var r=0,o=n.length;o>r;r++)t(e,n[r],i);return i}function m(e,t,n,i,r){for(var o,a=[],s=0,u=e.length,l=null!=t;u>s;s++)(o=e[s])&&(!n||n(o,i,r))&&(a.push(o),l&&t.push(s));return a}function v(e,t,n,r,o,a){return r&&!r[I]&&(r=v(r)),o&&!o[I]&&(o=v(o,a)),i(function(i,a,s,u){var l,c,f,p=[],d=[],h=a.length,v=i||g(t||"*",s.nodeType?[s]:s,[]),y=!e||!i&&t?v:m(v,p,e,s,u),b=n?o||(i?e:h||r)?[]:a:y;if(n&&n(y,b,s,u),r)for(l=m(b,d),r(l,[],s,u),c=l.length;c--;)(f=l[c])&&(b[d[c]]=!(y[d[c]]=f));if(i){if(o||e){if(o){for(l=[],c=b.length;c--;)(f=b[c])&&l.push(y[c]=f);o(null,b=[],l,u)}for(c=b.length;c--;)(f=b[c])&&(l=o?ee(i,f):p[c])>-1&&(i[l]=!(a[l]=f))}}else b=m(b===a?b.splice(h,b.length):b),o?o(null,a,b,u):K.apply(a,b)})}function y(e){for(var t,n,i,r=e.length,o=C.relative[e[0].type],a=o||C.relative[" "],s=o?1:0,u=d(function(e){return e===t},a,!0),l=d(function(e){return ee(t,e)>-1},a,!0),c=[function(e,n,i){var r=!o&&(i||n!==A)||((t=n).nodeType?u(e,n,i):l(e,n,i));return t=null,r}];r>s;s++)if(n=C.relative[e[s].type])c=[d(h(c),n)];else{if(n=C.filter[e[s].type].apply(null,e[s].matches),n[I]){for(i=++s;r>i&&!C.relative[e[i].type];i++);return v(s>1&&h(c),s>1&&p(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(se,"$1"),n,i>s&&y(e.slice(s,i)),r>i&&y(e=e.slice(i)),r>i&&p(e))}c.push(n)}return h(c)}function b(e,n){var r=n.length>0,o=e.length>0,a=function(i,a,s,u,l){var c,f,p,d=0,h="0",g=i&&[],v=[],y=A,b=i||o&&C.find.TAG("*",l),x=B+=null==y?1:Math.random()||.1,w=b.length;for(l&&(A=a===$||a||l);h!=
|
||
|
c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&f.teardown.call(e,h,m.handle)!==!1||oe.removeEvent(e,d,m.handle),delete u[d])}else for(d in u)oe.event.remove(e,d+t[l],n,i,!0);oe.isEmptyObject(u)&&Ee.remove(e,"handle events")}},dispatch:function(e){e=oe.event.fix(e);var t,n,i,r,o,a=[],s=G.call(arguments),u=(Ee.get(this,"events")||{})[e.type]||[],l=oe.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,e)!==!1){for(a=oe.event.handlers.call(this,e,u),t=0;(r=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!e.isImmediatePropagationStopped();)(!e.rnamespace||e.rnamespace.test(o.namespace))&&(e.handleObj=o,e.data=o.data,i=((oe.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s),void 0!==i&&(e.result=i)===!1&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,r,o,a=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==e.type)){for(i=[],n=0;s>n;n++)o=t[n],r=o.selector+" ",void 0===i[r]&&(i[r]=o.needsContext?oe(r,this).index(u)>-1:oe.find(r,this,null,[u]).length),i[r]&&i.push(o);i.length&&a.push({elem:u,handlers:i})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,i,r,o=t.button;return null==e.pageX&&null!=t.clientX&&(n=e.target.ownerDocument||J,i=n.documentElement,r=n.body,e.pageX=t.clientX+(i&&i.scrollLeft||r&&r.scrollLeft||0)-(i&&i.clientLeft||r&&r.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||r&&r.scrollTop||0)-(i&&i.clientTop||r&&r.clientTop||0)),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},fix:function(e){if(e[oe.expando])return e;var t,n,i,r=e.type,o=e,a=this.fixHooks[r];for(a||(this.fixHooks[r]=a=Ie.test(r)?this.mouseHooks:Pe.test(r)?this.keyHooks:{}),i=a.props?this.props.concat(a.props):this.props,e=new oe.Event(o),t=i.length;t--;)n=i[t],e[n]=o[n];return e.target||(e.target=J),3===e.target.nodeType&&(e.target=e.target.parentNode),a.filter?a.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==g()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===g()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&oe.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return oe.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},oe.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},oe.Event=function(e,t){return this instanceof oe.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?d:h):this.type=e,t&&oe.extend(this,t),this.timeStamp=e&&e.timeStamp||oe.now(),void(this[oe.expando]=!0)):new oe.Event(e,t)},oe.Event.prototype={constructor:oe.Event,isDefaultPrevented:h,isPropagationStopped:h,isImmediatePropagationStopped:h,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=d,e&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=d,e&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=d,e&&e.stopImmediatePropagation(),this.stopPropagation()}},oe.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointe
|
||
|
for(a in r)s.setRequestHeader(a,r[a]);n=function(e){return function(){n&&(n=i=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(qt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),i=s.onerror=n("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){n&&i()})},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(u){if(n)throw u}},abort:function(){n&&n()}}:void 0}),oe.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return oe.globalEval(e),e}}}),oe.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),oe.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(i,r){t=oe("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),J.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Mt=[],Lt=/(=)\?(?=&|$)|\?\?/;oe.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Mt.pop()||oe.expando+"_"+vt++;return this[e]=!0,e}}),oe.ajaxPrefilter("json jsonp",function(t,n,i){var r,o,a,s=t.jsonp!==!1&&(Lt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Lt.test(t.data)&&"data");return s||"jsonp"===t.dataTypes[0]?(r=t.jsonpCallback=oe.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Lt,"$1"+r):t.jsonp!==!1&&(t.url+=(yt.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return a||oe.error(r+" was not called"),a[0]},t.dataTypes[0]="json",o=e[r],e[r]=function(){a=arguments},i.always(function(){void 0===o?oe(e).removeProp(r):e[r]=o,t[r]&&(t.jsonpCallback=n.jsonpCallback,Mt.push(r)),a&&oe.isFunction(o)&&o(a[0]),a=o=void 0}),"script"):void 0}),oe.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||J;var i=he.exec(e),r=!n&&[];return i?[t.createElement(i[1])]:(i=p([e],t,r),r&&r.length&&oe(r).remove(),oe.merge([],i.childNodes))};var Pt=oe.fn.load;oe.fn.load=function(e,t,n){if("string"!=typeof e&&Pt)return Pt.apply(this,arguments);var i,r,o,a=this,s=e.indexOf(" ");return s>-1&&(i=oe.trim(e.slice(s)),e=e.slice(0,s)),oe.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),a.length>0&&oe.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(i?oe("<div>").append(oe.parseHTML(e)).find(i):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},oe.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){oe.fn[t]=function(e){return this.on(t,e)}}),oe.expr.filters.animated=function(e){return oe.grep(oe.timers,function(t){return e===t.elem}).length},oe.offset={setOffset:function(e,t,n){var i,r,o,a,s,u,l,c=oe.css(e,"position"),f=oe(e),p={};"static"===c&&(e.style.position="relative"),s=f.offset(),o=oe.css(e,"top"),u=oe.css(e,"left"),l=("absolute"===c||"fixed"===c)&&(o+u).indexOf("auto")>-1,l?(i=f.position(),a=i.top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(u)||0),oe.isFunction(t)&&(t=t.call(e,n,oe.extend({},s))),null!=t.top&&(p.top=t.top-s.top+a),null!=t.left&&(p.left=t.left-s.left+r),"using"in t?t.using.call(e,p):f.css(p)}},oe.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){oe.offset.setOffset(this,e,t)});var t,n,i=this[0],r={top:0,left:0},o=i&&i.ownerDocument;if(o)return t=o.documentElement,oe.contains(t,i)?(r=i.getBoundingClientRect(),n=X(o),{top:r.top+n.pageYOffset-t.clientTop,left:r.left+n.pageXOffset-t.clientLeft}):r},position:function(){if(this[0]){var e,t,n=this[0],i={top:0,left:0};return"fixed"===oe.css(n,"pos
|
||
|
t.addClass("active"),a?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active"),i&&i()}var o=n.find("> .active"),a=i&&e.support.transition&&o.hasClass("fade");a?o.one(e.support.transition.end,r).emulateTransitionEnd(150):r(),o.removeClass("in")};var n=e.fn.tab;e.fn.tab=function(n){return this.each(function(){var i=e(this),r=i.data("bs.tab");r||i.data("bs.tab",r=new t(this)),"string"==typeof n&&r[n]()})},e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=n,this},e(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault(),e(this).tab("show")})}(jQuery),+function(e){var t=function(n,i){this.options=e.extend({},t.DEFAULTS,i),this.$window=e(window).on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(n),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0},t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var e=this.$window.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-e},t.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=e(document).height(),i=this.$window.scrollTop(),r=this.$element.offset(),o=this.options.offset,a=o.top,s=o.bottom;"top"==this.affixed&&(r.top+=i),"object"!=typeof o&&(s=a=o),"function"==typeof a&&(a=o.top(this.$element)),"function"==typeof s&&(s=o.bottom(this.$element));var u=null!=this.unpin&&i+this.unpin<=r.top?!1:null!=s&&r.top+this.$element.height()>=n-s?"bottom":null!=a&&a>=i?"top":!1;if(this.affixed!==u){this.unpin&&this.$element.css("top","");var l="affix"+(u?"-"+u:""),c=e.Event(l+".bs.affix");this.$element.trigger(c),c.isDefaultPrevented()||(this.affixed=u,this.unpin="bottom"==u?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(l).trigger(e.Event(l.replace("affix","affixed"))),"bottom"==u&&this.$element.offset({top:n-s-this.$element.height()}))}}};var n=e.fn.affix;e.fn.affix=function(n){return this.each(function(){var i=e(this),r=i.data("bs.affix"),o="object"==typeof n&&n;r||i.data("bs.affix",r=new t(this,o)),"string"==typeof n&&r[n]()})},e.fn.affix.Constructor=t,e.fn.affix.noConflict=function(){return e.fn.affix=n,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var t=e(this),n=t.data();n.offset=n.offset||{},n.offsetBottom&&(n.offset.bottom=n.offsetBottom),n.offsetTop&&(n.offset.top=n.offsetTop),t.affix(n)})})}(jQuery),define("bootstrap",["jquery"],function(){}),/*!
|
||
|
* Knockout JavaScript library v3.3.0
|
||
|
* (c) Steven Sanderson - http://knockoutjs.com/
|
||
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
||
|
*/
|
||
|
function(){!function(e){var t=this||(0,eval)("this"),n=t.document,i=t.navigator,r=t.jQuery,o=t.JSON;!function(e){"function"==typeof define&&define.amd?define("knockout",["exports","require"],e):e("function"==typeof require&&"object"==typeof exports&&"object"==typeof module?module.exports||exports:t.ko={})}(function(a,s){function u(e,t){return null===e||typeof e in d?e===t:!1}function l(t,n){var i;return function(){i||(i=setTimeout(function(){i=e,t()},n))}}function c(e,t){var n;return function(){clearTimeout(n),n=setTimeout(e,t)}}function f(e,t,n,i){p.d[e]={init:function(e,r,o,a,s){var u,l;return p.w(function(){var o=p.a.c(r()),a=!n!=!o,c=!l;(c||t||a!==u)&&(c&&p.Z.oa()&&(l=p.a.la(p.e.childNodes(e),!0)),a?(c||p.e.T(e,p.a.la(l)),p.Ja(i?i(s,o):s,e)):p.e.ma(e),u=a)},null,{q:e}),{controlsDescendantBindings:!0}}},p.h.ka[e]=!1,p.e.R[e]=!0}var p="undefined"!=typeof a?a:{};p.b=function(e,t){for(var n=e.split("."),i=p,r=0;r<n.length-1;r++)i=i[n[r]];i[n[n.length-1]]=t},p.D=function(e,t,n){e[t]=n},p.version="3.3.0",p.b("version",p.version),p.a=function(){function a(e,t){for(var n in e)e.hasOwnProperty(n)&&t(n,e[n])}function s(e,t){if(t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function u(e,t){return e.__proto__=t,e}function l(e,t,n,i){var r=e[t].match(m)||[];p.a.o(n.match(m),function(e){p.a.ga(r,e,i)}),e[t]=r.join(" ")}var c={__proto__:[]}instanceof Array,f={},d={};f[i&&/Firefox\/2/i.test(i.userAgent)?"KeyboardEvent":"UIEvents"]=["keyup","keydown","keypress"],f.MouseEvents="click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave".split(" "),a(f,function(e,t){if(t.length)for(var n=0,i=t.length;i>n;n++)d[t[n]]=e});var h={propertychange:!0},g=n&&function(){for(var t=3,i=n.createElement("div"),r=i.getElementsByTagName("i");i.innerHTML="<!--[if gt IE "+ ++t+"]><i></i><![endif]-->",r[0];);return t>4?t:e}(),m=/\S+/g;return{Bb:["authenticity_token",/^__RequestVerificationToken(_.*)?$/],o:function(e,t){for(var n=0,i=e.length;i>n;n++)t(e[n],n)},m:function(e,t){if("function"==typeof Array.prototype.indexOf)return Array.prototype.indexOf.call(e,t);for(var n=0,i=e.length;i>n;n++)if(e[n]===t)return n;return-1},vb:function(e,t,n){for(var i=0,r=e.length;r>i;i++)if(t.call(n,e[i],i))return e[i];return null},ya:function(e,t){var n=p.a.m(e,t);n>0?e.splice(n,1):0===n&&e.shift()},wb:function(e){e=e||[];for(var t=[],n=0,i=e.length;i>n;n++)0>p.a.m(t,e[n])&&t.push(e[n]);return t},Ka:function(e,t){e=e||[];for(var n=[],i=0,r=e.length;r>i;i++)n.push(t(e[i],i));return n},xa:function(e,t){e=e||[];for(var n=[],i=0,r=e.length;r>i;i++)t(e[i],i)&&n.push(e[i]);return n},ia:function(e,t){if(t instanceof Array)e.push.apply(e,t);else for(var n=0,i=t.length;i>n;n++)e.push(t[n]);return e},ga:function(e,t,n){var i=p.a.m(p.a.cb(e),t);0>i?n&&e.push(t):n||e.splice(i,1)},za:c,extend:s,Fa:u,Ga:c?u:s,A:a,pa:function(e,t){if(!e)return e;var n,i={};for(n in e)e.hasOwnProperty(n)&&(i[n]=t(e[n],n,e));return i},Ra:function(e){for(;e.firstChild;)p.removeNode(e.firstChild)},Jb:function(e){e=p.a.O(e);for(var t=(e[0]&&e[0].ownerDocument||n).createElement("div"),i=0,r=e.length;r>i;i++)t.appendChild(p.S(e[i]));return t},la:function(e,t){for(var n=0,i=e.length,r=[];i>n;n++){var o=e[n].cloneNode(!0);r.push(t?p.S(o):o)}return r},T:function(e,t){if(p.a.Ra(e),t)for(var n=0,i=t.length;i>n;n++)e.appendChild(t[n])},Qb:function(e,t){var n=e.nodeType?[e]:e;if(0<n.length){for(var i=n[0],r=i.parentNode,o=0,a=t.length;a>o;o++)r.insertBefore(t[o],i);for(o=0,a=n.length;a>o;o++)p.removeNode(n[o])}},na:function(e,t){if(e.length){for(t=8===t.nodeType&&t.parentNode||t;e.length&&e[0].parentNode!==t;)e.splice(0,1);if(1<e.length){var n=e[0],i=e[e.length-1];for(e.length=0;n!==i;)if(e.push(n),n=n.nextSibling,!n)return;e.push(i)}}return e},Sb:function(e,t){7>g?e.setAttribute("selected",t):e.selected=t},ib:function(t){return null===t||t===e?"":t.trim?t.trim():t.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Dc:function(e,t){return e=e||"",t.length>e.length?!1:e.substring(0,t.length)===t},jc:function(e,t){if(e===t)return!0;if(11===e.nodeType)return!1;if(t.contains)return
|
||
|
},p.Oa=function(t){switch(t.nodeType){case 1:case 8:var n=p.Tb(t);if(n)return n;if(t.parentNode)return p.Oa(t.parentNode)}return e},p.gc=function(t){return(t=p.Oa(t))?t.$data:e},p.b("bindingHandlers",p.d),p.b("applyBindings",p.ub),p.b("applyBindingsToDescendants",p.Ja),p.b("applyBindingAccessorsToNode",p.va),p.b("applyBindingsToNode",p.cc),p.b("contextFor",p.Oa),p.b("dataFor",p.gc)}(),function(e){function t(t,i){var a,s=r.hasOwnProperty(t)?r[t]:e;s?s.U(i):(s=r[t]=new p.Q,s.U(i),n(t,function(e,n){var i=!(!n||!n.synchronous);o[t]={definition:e,tc:i},delete r[t],a||i?s.notifySubscribers(e):setTimeout(function(){s.notifySubscribers(e)},0)}),a=!0)}function n(e,t){i("getConfig",[e],function(n){n?i("loadComponent",[e,n],function(e){t(e,n)}):t(null,null)})}function i(t,n,r,o){o||(o=p.g.loaders.slice(0));var a=o.shift();if(a){var s=a[t];if(s){var u=!1;if(s.apply(a,n.concat(function(e){u?r(null):null!==e?r(e):i(t,n,r,o)}))!==e&&(u=!0,!a.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.")}else i(t,n,r,o)}else r(null)}var r={},o={};p.g={get:function(n,i){var r=o.hasOwnProperty(n)?o[n]:e;r?r.tc?p.k.u(function(){i(r.definition)}):setTimeout(function(){i(r.definition)},0):t(n,i)},zb:function(e){delete o[e]},ob:i},p.g.loaders=[],p.b("components",p.g),p.b("components.get",p.g.get),p.b("components.clearCachedDefinition",p.g.zb)}(),function(){function e(e,t,n,i){function r(){0===--s&&i(o)}var o={},s=2,u=n.template;n=n.viewModel,u?a(t,u,function(t){p.g.ob("loadTemplate",[e,t],function(e){o.template=e,r()})}):r(),n?a(t,n,function(t){p.g.ob("loadViewModel",[e,t],function(e){o[c]=e,r()})}):r()}function i(e,t,n){if("function"==typeof t)n(function(e){return new t(e)});else if("function"==typeof t[c])n(t[c]);else if("instance"in t){var r=t.instance;n(function(){return r})}else"viewModel"in t?i(e,t.viewModel,n):e("Unknown viewModel value: "+t)}function r(e){switch(p.a.v(e)){case"script":return p.a.ca(e.text);case"textarea":return p.a.ca(e.value);case"template":if(o(e.content))return p.a.la(e.content.childNodes)}return p.a.la(e.childNodes)}function o(e){return t.DocumentFragment?e instanceof DocumentFragment:e&&11===e.nodeType}function a(e,n,i){"string"==typeof n.require?s||t.require?(s||t.require)([n.require],i):e("Uses require, but no AMD loader is present"):i(n)}function u(e){return function(t){throw Error("Component '"+e+"': "+t)}}var l={};p.g.register=function(e,t){if(!t)throw Error("Invalid configuration for "+e);if(p.g.Xa(e))throw Error("Component "+e+" is already registered");l[e]=t},p.g.Xa=function(e){return e in l},p.g.Ec=function(e){delete l[e],p.g.zb(e)},p.g.Ab={getConfig:function(e,t){t(l.hasOwnProperty(e)?l[e]:null)},loadComponent:function(t,n,i){var r=u(t);a(r,n,function(n){e(t,r,n,i)})},loadTemplate:function(e,i,a){if(e=u(e),"string"==typeof i)a(p.a.ca(i));else if(i instanceof Array)a(i);else if(o(i))a(p.a.O(i.childNodes));else if(i.element)if(i=i.element,t.HTMLElement?i instanceof HTMLElement:i&&i.tagName&&1===i.nodeType)a(r(i));else if("string"==typeof i){var s=n.getElementById(i);s?a(r(s)):e("Cannot find element with ID "+i)}else e("Unknown element type: "+i);else e("Unknown template value: "+i)},loadViewModel:function(e,t,n){i(u(e),t,n)}};var c="createViewModel";p.b("components.register",p.g.register),p.b("components.isRegistered",p.g.Xa),p.b("components.unregister",p.g.Ec),p.b("components.defaultLoader",p.g.Ab),p.g.loaders.push(p.g.Ab),p.g.$b=l}(),function(){function e(e,n){var i=e.getAttribute("params");if(i){var i=t.parseBindingsString(i,n,e,{valueAccessors:!0,bindingParams:!0}),i=p.a.pa(i,function(t){return p.w(t,null,{q:e})}),r=p.a.pa(i,function(t){var n=t.B();return t.$()?p.w({read:function(){return p.a.c(t())},write:p.Da(n)&&function(e){t()(e)},q:e}):n});return r.hasOwnProperty("$raw")||(r.$raw=i),r}return{$raw:{}}}p.g.getComponentNameForNode=function(e){return e=p.a.v(e),p.g.Xa(e)&&e},p.g.sb=function(t,n,i,r){if(1===n.nodeType){var o=p.g.getComponentNameForNode(n);if(o){if(t=t||{},t.component)throw Error('Cannot use the "component
|
||
|
------------------------------------------------------------------------------
|
||
|
Copyright (c) Microsoft Corporation
|
||
|
All rights reserved.
|
||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
See the Apache Version 2.0 License for specific language governing permissions and limitations under the License.
|
||
|
------------------------------------------------------------------------------
|
||
|
*/
|
||
|
function(e,t){function n(e,t,n,i,r,o,a){this.inputItem=t,this.stateArrayIndex=n,this.mappingOptions=r,this.arrayOfState=o,this.outputObservableArray=a,this.outputArray=this.outputObservableArray.peek(),this.isIncluded=null,this.suppressNotification=!1,this.outputArrayIndex=e.observable(i),this.disposeFuncFromMostRecentMapping=null,this.mappedValueComputed=e.computed(this.mappingEvaluator,this),this.mappedValueComputed.subscribe(this.onMappingResultChanged,this),this.previousMappedValue=this.mappedValueComputed.peek()}function i(e,t){if(!e)return null;switch(e.status){case"added":return e.index;case"deleted":return e.index+t;default:throw new Error("Unknown diff status: "+e.status)}}function r(e,t,i,r,o,a,s,u,l){var c="number"==typeof t.moved,f=c?i[t.moved]:new n(e,t.value,r,o,a,s,u);return s.splice(r,0,f),f.isIncluded&&l.splice(o,0,f.mappedValueComputed.peek()),c&&(f.stateArrayIndex=r,f.setOutputArrayIndexSilently(o)),f}function o(e,t,n,i,r){var o=t.splice(n,1)[0];o.isIncluded&&r.splice(i,1),"number"!=typeof e.moved&&o.dispose()}function a(e,t,n){return e.stateArrayIndex=t,e.setOutputArrayIndexSilently(n),n+(e.isIncluded?1:0)}function s(e,t){for(var n={},i=0;i<e.length;i++){var r=e[i];"added"===r.status&&"number"==typeof r.moved&&(n[r.moved]=t[r.moved])}return n}function u(e,t,n){return n.length&&t[e.index]?t[e.index].outputArrayIndex.peek():n.length}function l(e,t,n,l,c,f){return t.subscribe(function(t){if(t.length){for(var p=s(t,n),d=0,h=t[0],g=0,m=h&&u(h,n,l),v=h.index;h||v<n.length;v++)if(i(h,g)===v){switch(h.status){case"added":var y=r(e,h,p,v,m,f,n,c,l);y.isIncluded&&m++,g++;break;case"deleted":o(h,n,v,m,l),g--,v--;break;default:throw new Error("Unknown diff status: "+h.status)}d++,h=t[d]}else v<n.length&&(m=a(n[v],v,m));c.valueHasMutated()}},null,"arrayChange")}function c(e,t){var i=this,r=[],o=[],a=e.observableArray(o),s=i.peek();if("function"==typeof t&&(t={mapping:t}),t.mappingWithDisposeCallback){if(t.mapping||t.disposeItem)throw new Error("'mappingWithDisposeCallback' cannot be used in conjunction with 'mapping' or 'disposeItem'.")}else if(!t.mapping)throw new Error("Specify either 'mapping' or 'mappingWithDisposeCallback'.");for(var u=0;u<s.length;u++){var c=s[u],f=new n(e,c,u,o.length,t,r,a),p=f.mappedValueComputed.peek();r.push(f),f.isIncluded&&o.push(p)}var h=l(e,i,r,o,a,t),g=e.computed(a).extend({trackArrayChanges:!0}),m=g.dispose;return g.dispose=function(){h.dispose(),e.utils.arrayForEach(r,function(e){e.dispose()}),m.call(this,arguments)},d(e,g),g}function f(e,t){return c.call(this,e,function(e){return t(e)?e:m})}function p(e){function t(e,t){return function(){return t.apply(this,[e].concat(Array.prototype.slice.call(arguments,0)))}}e[v]={map:t(e,c),filter:t(e,f)}}function d(e,t){return e.utils.extend(t,e[v]),t}function h(e){e.projections={_exclusionMarker:m},p(e),d(e,e.observableArray.fn)}function g(){if("undefined"!=typeof module&&"undefined"!=typeof module.exports){var t=require("knockout");h(t),module.exports=t}else"function"==typeof define&&define.amd?define("knockout-projections",["knockout"],h):"ko"in e&&h(e.ko)}var m={};n.prototype.dispose=function(){this.mappedValueComputed.dispose(),this.disposeResultFromMostRecentEvaluation()},n.prototype.disposeResultFromMostRecentEvaluation=function(){if(this.disposeFuncFromMostRecentMapping&&(this.disposeFuncFromMostRecentMapping(),this.disposeFuncFromMostRecentMapping=null),this.mappingOptions.disposeItem){var e=this.mappedValueComputed();this.mappingOptions.disposeItem(e)}},n.prototype.mappingEvaluator=function(){null!==this.isIncluded&&this.disposeResultFromMostRecentEvaluation();var e;if(this.mappingOptions.mapping)e=this.mappingOptions.mapping(this.inputItem,this.outputArrayIndex);else{if(!this.mappingOptions.mappingWithDisposeCallback)throw new Error("No mapping callback given.");var t=this.mappingOptions.mappingWithDisposeCallback(this.inputItem,this.outputArrayIndex);if(!("mappedValue"in t))throw new Error("Return value from mappingWithDisposeCallback should have a 'mappedItem' property.");e=t.mappedValue,this.disposeFuncFromMostRecentMapping=t.
|
||
|
* Hasher <http://github.com/millermedeiros/hasher>
|
||
|
* @author Miller Medeiros
|
||
|
* @version 1.2.0 (2013/11/11 03:18 PM)
|
||
|
* Released under the MIT License
|
||
|
*/
|
||
|
function(){var e=function(e){var t=function(t){function n(e){return String(e||"").replace(/\W/g,"\\$&")}function i(e){if(!e)return"";var t=new RegExp("^"+n(d.prependHash)+"|"+n(d.appendHash)+"$","g");return e.replace(t,"")}function r(){var e=C.exec(d.getURL()),t=e&&e[1]||"";try{return d.raw?t:decodeURIComponent(t)}catch(n){return t}}function o(){return v?v.contentWindow.frameHash:null}function a(){v=x.createElement("iframe"),v.src="about:blank",v.style.display="none",x.body.appendChild(v)}function s(){if(v&&h!==o()){var e=v.contentWindow.document;e.open(),e.write("<html><head><title>"+x.title+'</title><script type="text/javascript">var frameHash="'+h+'";</script></head><body> </body></html>'),e.close()}}function u(e,t){if(h!==e){var n=h;h=e,N&&(t?v.contentWindow.frameHash=e:s()),d.changed.dispatch(i(e),i(n))}}function l(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n)}function c(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent&&e.detachEvent("on"+t,n)}function f(e){e=Array.prototype.slice.call(arguments);var t=e.join(d.separator);return t=t?d.prependHash+t.replace(k,"")+d.appendHash:t}function p(e){return e=encodeURI(e),E&&A&&(e=e.replace(/\?/,"%3F")),e}var d,h,g,m,v,y,b=25,x=t.document,w=(t.history,e.Signal),C=/#(.*)$/,T=/(\?.*)|(\#.*)/,k=/^\#/,E=!1,S="onhashchange"in t&&7!==x.documentMode,N=E&&!S,A="file:"===location.protocol;return y=N?function(){var e=r(),t=o();t!==h&&t!==e?d.setHash(i(t)):e!==h&&u(e)}:function(){var e=r();e!==h&&u(e)},d={VERSION:"1.2.0",raw:!1,appendHash:"",prependHash:"/",separator:"/",changed:new w,stopped:new w,initialized:new w,init:function(){m||(h=r(),S?l(t,"hashchange",y):(N&&(v||a(),s()),g=setInterval(y,b)),m=!0,d.initialized.dispatch(i(h)))},stop:function(){m&&(S?c(t,"hashchange",y):(clearInterval(g),g=null),m=!1,d.stopped.dispatch(i(h)))},isActive:function(){return m},getURL:function(){return t.location.href},getBaseURL:function(){return d.getURL().replace(T,"")},setHash:function(e){e=f.apply(null,arguments),e!==h&&(u(e),e===h&&(d.raw||(e=p(e)),t.location.hash="#"+e))},replaceHash:function(e){e=f.apply(null,arguments),e!==h&&(u(e,!0),e===h&&(d.raw||(e=p(e)),t.location.replace("#"+e)))},getHash:function(){return i(h)},getHashAsArray:function(){return d.getHash().split(d.separator)},dispose:function(){d.stop(),d.initialized.dispose(),d.stopped.dispose(),d.changed.dispose(),v=d=t.hasher=null},toString:function(){return'[hasher version="'+d.VERSION+'" hash="'+d.getHash()+'"]'}},d.initialized.memorize=!0,d}(window);return t};"function"==typeof define&&define.amd?define("hasher",["signals"],e):"object"==typeof exports?module.exports=e(require("signals")):window.hasher=e(window.signals)}(),define("app/router",["exports","module","knockout","crossroads","hasher"],function(e,t,n,i,r){function o(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=o(n),u=o(i),l=o(r),c=function p(e){var t=this;a(this,p),this.currentRoute=s["default"].observable({}),s["default"].utils.arrayForEach(e.routes,function(e){u["default"].addRoute(e.url,function(n){t.currentRoute(s["default"].utils.extend(n,e.params))})}),u["default"].normalizeFn=u["default"].NORM_AS_OBJECT,l["default"].initialized.add(function(e){return u["default"].parse(e)}),l["default"].changed.add(function(e){return u["default"].parse(e)}),l["default"].init()},f=new c({routes:[{url:"",params:{page:"home-page"}},{url:"about",params:{page:"about-page"}},{url:"contact",params:{page:"contact-page"}},{url:"login",params:{page:"login"}}]});t.exports=f}),define("app/startup",["exports","jquery","bootstrap","knockout","knockout-projections","./router"],function(e,t,n,i,r,o){function a(e){return e&&e.__esModule?e:{"default":e}}var s=a(i);s["default"].components.register("nav-bar",{require:"components/nav-bar/nav-bar"}),s["default"].components.register("home-page",{require:"components/home-page/home"}),s["default"].components.register("about-page",{template:{require:"text!components/about-page/about.html"
|
||
|
* @license text 2.0.15 Copyright jQuery Foundation and other contributors.
|
||
|
* Released under MIT license, http://github.com/requirejs/text/LICENSE
|
||
|
*/
|
||
|
define("text",["module"],function(e){function t(e,t){return void 0===e||""===e?t:e}function n(e,n,i,r){if(n===r)return!0;if(e===i){if("http"===e)return t(n,"80")===t(r,"80");if("https"===e)return t(n,"443")===t(r,"443")}return!1}var i,r,o,a,s,u=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],l=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,c=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,f="undefined"!=typeof location&&location.href,p=f&&location.protocol&&location.protocol.replace(/\:/,""),d=f&&location.hostname,h=f&&(location.port||void 0),g={},m=e.config&&e.config()||{};return i={version:"2.0.15",strip:function(e){if(e){e=e.replace(l,"");var t=e.match(c);t&&(e=t[1])}else e="";return e},jsEscape:function(e){return e.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")},createXhr:m.createXhr||function(){var e,t,n;if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;if("undefined"!=typeof ActiveXObject)for(t=0;3>t;t+=1){n=u[t];try{e=new ActiveXObject(n)}catch(i){}if(e){u=[n];break}}return e},parseName:function(e){var t,n,i,r=!1,o=e.lastIndexOf("."),a=0===e.indexOf("./")||0===e.indexOf("../");return-1!==o&&(!a||o>1)?(t=e.substring(0,o),n=e.substring(o+1)):t=e,i=n||t,o=i.indexOf("!"),-1!==o&&(r="strip"===i.substring(o+1),i=i.substring(0,o),n?n=i:t=i),{moduleName:t,ext:n,strip:r}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(e,t,r,o){var a,s,u,l=i.xdRegExp.exec(e);return l?(a=l[2],s=l[3],s=s.split(":"),u=s[1],s=s[0],(!a||a===t)&&(!s||s.toLowerCase()===r.toLowerCase())&&(!u&&!s||n(a,u,t,o))):!0},finishLoad:function(e,t,n,r){n=t?i.strip(n):n,m.isBuild&&(g[e]=n),r(n)},load:function(e,t,n,r){if(r&&r.isBuild&&!r.inlineText)return void n();m.isBuild=r&&r.isBuild;var o=i.parseName(e),a=o.moduleName+(o.ext?"."+o.ext:""),s=t.toUrl(a),u=m.useXhr||i.useXhr;
|
||
|
//!strip part to avoid file system issues.
|
||
|
return 0===s.indexOf("empty:")?void n():void(!f||u(s,p,d,h)?i.get(s,function(t){i.finishLoad(e,o.strip,t,n)},function(e){n.error&&n.error(e)}):t([a],function(e){i.finishLoad(o.moduleName+"."+o.ext,o.strip,e,n)}))},write:function(e,t,n,r){if(g.hasOwnProperty(t)){var o=i.jsEscape(g[t]);n.asModule(e+"!"+t,"define(function () { return '"+o+"';});\n")}},writeFile:function(e,t,n,r,o){var a=i.parseName(t),s=a.ext?"."+a.ext:"",u=a.moduleName+s,l=n.toUrl(a.moduleName+s)+".js";i.load(u,n,function(t){var n=function(e){return r(l,e)};n.asModule=function(e,t){return r.asModule(e,l,t)},i.write(e,u,n,o)},o)}},"node"===m.env||!m.env&&"undefined"!=typeof process&&process.versions&&process.versions.node&&!process.versions["node-webkit"]&&!process.versions["atom-shell"]?(r=require.nodeRequire("fs"),i.get=function(e,t,n){try{var i=r.readFileSync(e,"utf8");"\ufeff"===i[0]&&(i=i.substring(1)),t(i)}catch(o){n&&n(o)}}):"xhr"===m.env||!m.env&&i.createXhr()?i.get=function(e,t,n,r){var o,a=i.createXhr();if(a.open("GET",e,!0),r)for(o in r)r.hasOwnProperty(o)&&a.setRequestHeader(o.toLowerCase(),r[o]);m.onXhr&&m.onXhr(a,e),a.onreadystatechange=function(i){var r,o;4===a.readyState&&(r=a.status||0,r>399&&600>r?(o=new Error(e+" HTTP status: "+r),o.xhr=a,n&&n(o)):t(a.responseText),m.onXhrComplete&&m.onXhrComplete(a,e))},a.send(null)}:"rhino"===m.env||!m.env&&"undefined"!=typeof Packages&&"undefined"!=typeof java?i.get=function(e,t){var n,i,r="utf-8",o=new java.io.File(e),a=java.lang.System.getProperty("line.separator"),s=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(o),r)),u="";try{for(n=new java.lang.StringBuffer,i=s.readLine(),i&&i.length()&&65279===i.charAt(0)&&(i=i.substring(1)),null!==i&&n.append(i);null!==(i=s.readLine());)n.append(a),n.append(i);u=String(n.toString())}finally{s.close()}t(u)}:("xpconnect"===m.env||!m.env&&"undefined"!=typeof Components&&Components.classes&&Components.interfaces)&&(o=Components.classes,a=Components.interfaces,Components.utils["import"]("resource://gre/modules/FileUtils.jsm"),s="@mozilla.org/windows-registry-key;1"in o,i.get=function(e,t){var n,i,r,u={};s&&(e=e.replace(/\//g,"\\")),r=new FileUtils.File(e);try{n=o["@mozilla.org/network/file-input-stream;1"].createInstance(a.nsIFileInputStream),n.init(r,1,0,!1),i=o["@mozilla.org/intl/converter-input-stream;1"].createInstance(a.nsIConverterInputStream),i.init(n,"utf-8",n.available(),a.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER),i.readString(n.available(),u),i.close(),n.close(),t(u.value)}catch(l){throw new Error((r&&r.path||"")+": "+l)}}),i}),define("text!components/nav-bar/nav-bar.html",[],function(){return'<!--\n The navigation UI that is docked to the top of the window. Most of this markup simply\n follows Bootstrap conventions. The only Knockout-specific parts are the data-bind\n attributes on the <li> elements.\n-->\n<nav class="navbar navbar-light bg-faded navbar-fixed-top" role="navigation">\n <div class="container">\n <div class="navbar-header">\n <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">\n <span class="sr-only">Toggle navigation</span>\n <span class="icon-bar"></span>\n <span class="icon-bar"></span>\n <span class="icon-bar"></span>\n </button>\n <a class="navbar-brand" href="#">OBrand Admin</a>\n </div>\n <div class="collapse navbar-collapse">\n\n <ul class="nav navbar-nav">\n <li data-bind="css: { active: route().page === \'home-page\' }">\n <a href="#">Home</a>\n </li>\n\n <li data-bind="css: { active: route().page === \'about-page\' }">\n <a href="#about">About</a>\n </li>\n\n <li data-bind="css: { active: route().page === \'contact-page\' }">\n <a href="#contact">Contact</a>\n </li>\n\n <li data-bind="css: { active: route().page === \'profile-page\' }">\n <a href="#profile">Profile</a>\n </li>\n <li data-bind="css: { active: route().page === \'company-page\' }">
|