//     Fiber.min.js 1.0.3
//     @author: Kirollos Risk
//
//     Copyright (c) 2012 LinkedIn.
//     All Rights Reserved. Apache Software License 2.0
//     http://www.apache.org/licenses/LICENSE-2.0
!function(a){function d(a,b){var c;for(c in a)a.hasOwnProperty(c)&&(b[c]=a[c])}function e(){}var b=!1,c=Array.prototype;previousFiber=a.Fiber,e.extend=function(a){function h(){b||"function"!=typeof this.init||(this.init.apply(this,arguments),delete this.init)}var g,c=this.prototype,f=a(c);return b=!0,g=h.prototype=new this,b=!1,d(f,g),g.constructor=h,h.__base__=c,h.extend=e.extend,h},e.proxy=function(a,b){var c,e,d={};1===arguments.length&&(b=a,a=b.constructor.__base__),e=function(c){return function(){return a[c].apply(b,arguments)}};for(c in a)a.hasOwnProperty(c)&&"function"==typeof a[c]&&(d[c]=e(c));return d},e.decorate=function(a){var b,e=a.constructor.__base__,f=c.slice.call(arguments,1),g=f.length;for(b=0;g>b;b++)d(f[b].call(a,e),a)},e.mixin=function(a){var b,e=a.__base__,f=c.slice.call(arguments,1),g=f.length;for(b=0;g>b;b++)d(f[b](e),a.prototype)},e.noConflict=function(){return a.Fiber=previousFiber,e},"undefined"!=typeof module?"function"==typeof module.setExports?module.setExports(e):module.exports&&(module.exports=e):a.Fiber=e}(this);/**
 * @license
 * Inject (c) 2011 LinkedIn [https://github.com/linkedin/inject] Apache Software License 2.0
 * lscache (c) 2011 Pamela Fox [https://github.com/pamelafox/lscache] Apache Software License 2.0
 * Link.js (c) 2012 Calyptus Life AB, Sweden [https://github.com/calyptus/link.js] Simplified BSD & MIT License
 * GoWithTheFlow.js (c) 2011 Jerome Etienne, [https://github.com/jeromeetienne/gowiththeflow.js] MIT License
 * easyXDM (c) 2011 2009-2011 Øyvind Sean Kinsey, oyvind@kinsey.no [https://github.com/oyvindkinsey/easyXDM] MIT License
 */
!function(context,undefined){function proxy(e,t){if(!t)throw Error("proxying requires a scope");if(!e)throw Error("proxying requires a function");return function(){return e.apply(t,arguments)}}function each(e,t){for(var n=0,r=e.length;r>n;n++)t(e[n])}var IS_IE=eval("/*@cc_on!@*/false"),IS_GK=!1;(function(){var e=navigator.userAgent.toLowerCase();-1!==e.indexOf("gecko")&&(IS_GK=!0)})();var FILE_STORAGE_TOKEN="INJECT",LSCACHE_SCHEMA_VERSION=1,LSCACHE_SCHEMA_VERSION_STRING="!version",LSCACHE_APP_KEY_STRING="!appCacheKey",AMD_DEFERRED="###DEFERRED###",NAMESPACE="Inject",FILE_SUFFIX_REGEX=/.*?\.(js|txt)(\?.*)?$/,BASIC_FILE_SUFFIX=".js",HOST_PREFIX_REGEX=/^https?:\/\//,HOST_SUFFIX_REGEX=/^(.*?)(\/.*|$)/,RESPONSE_SLICER_REGEX=/^(.+?)[\s]+([\w\W]+?)[\s]+([\w\W]+)$/m,FUNCTION_REGEX=/^[\s\(]*function[^\(]*\(([^)]*)\)/,FUNCTION_NEWLINES_REGEX=/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\//g,FUNCTION_BODY_REGEX=/[\w\W]*?\{([\w\W]*)\}/m,WHITESPACE_REGEX=/\s+/g,REQUIRE_REGEX=/(?:^|[^\w\$_.\(])require\s*\(\s*("[^"\\]*(?:\\.[^"\\]*)*"|'[^'\\]*(?:\\.[^'\\]*)*')\s*\)/g,DEFINE_EXTRACTION_REGEX=/(?:^|[\s]+)define[\s]*\([\s]*((?:"|')\S+?(?:"|'))?,?[\s]*(?:\[([\w\W]+?)\])?/g,BUILTINS={require:!0,exports:!0,module:!0},BUILTINS_REPLACE_REGEX=/[\s]|"|'|(require)|(exports)|(module)/g,GREEDY_REQUIRE_REXEX=/require.*/,JS_COMMENTS_REGEX=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,RELATIVE_PATH_REGEX=/^(\.{1,2}\/).+/,ABSOLUTE_PATH_REGEX=/^([A-Za-z]+:)?\/\//,PROTOCOL_REGEX=/:\/\//,PROTOCOL_STRING="://",PROTOCOL_EXPANDED_REGEX=/__INJECT_PROTOCOL_COLON_SLASH_SLASH__/,PROTOCOL_EXPANDED_STRING="__INJECT_PROTOCOL_COLON_SLASH_SLASH__",HAS_OWN_PROPERTY=Object.prototype.hasOwnProperty,HAS_LOCAL_STORAGE=function(){try{return localStorage.setItem("injectLStest","ok"),localStorage.removeItem("injectLStest"),!0}catch(e){return!1}}(),userConfig={moduleRoot:null,fileExpires:300,useSuffix:!0,xd:{relayFile:null,relaySwf:null},debug:{sourceMap:!1,logging:!1}},context=this,userModules={},easyXdm=!1,isHostMethod=function(e,t){var n=typeof e[t];return"function"===n||!("object"!==n||!e[t])||"unknown"===n},getXhr=function(){if(isHostMethod(window,"XMLHttpRequest"))return function(){return new XMLHttpRequest};var e=function(){for(var t=["Microsoft","Msxml2","Msxml3"],n=t.length;n--;)try{return e=t[n]+".XMLHTTP",new ActiveXObject(e),e}catch(r){}}();return function(){return new ActiveXObject(e)}}(),debugLog=function(){};(function(){var e="undefined"!=typeof console&&console.log&&"function"==typeof console.log,t=function(e,t){userConfig.debug&&userConfig.debug.logging&&console.log("## "+e+" ##"+"\n"+t)};e&&(debugLog=t)})();var commonJSHeader=["","__INJECT_NS__.INTERNAL.execute.__FUNCTION_ID__ = function() {","  with (window) {",'  __INJECT_NS__.INTERNAL.modules.__FUNCTION_ID__ = __INJECT_NS__.INTERNAL.createModule("__MODULE_ID__", "__MODULE_URI__");',"    __INJECT_NS__.INTERNAL.execs.__FUNCTION_ID__ = function() {","      var module = __INJECT_NS__.INTERNAL.modules.__FUNCTION_ID__,","          require = __INJECT_NS__.INTERNAL.createRequire(module.id, module.uri),","          define = __INJECT_NS__.INTERNAL.createDefine(module.id, module.uri),","          exports = module.exports;",""].join("\n"),commonJSFooter=["","    __INJECT_NS__.INTERNAL.modules.__FUNCTION_ID__ = module;","    };",'    __INJECT_NS__.INTERNAL.defineExecutingModuleAs("__MODULE_ID__", "__MODULE_URI__");',"    __error = window.onerror;","    try {","      __INJECT_NS__.INTERNAL.execs.__FUNCTION_ID__.call(__INJECT_NS__.INTERNAL.modules.__FUNCTION_ID__);","    }","    catch (__EXCEPTION__) {","      __INJECT_NS__.INTERNAL.modules.__FUNCTION_ID__.error = __EXCEPTION__;","    }","    __INJECT_NS__.INTERNAL.undefineExecutingModule();","    return __INJECT_NS__.INTERNAL.modules.__FUNCTION_ID__;","  }","};",""].join("\n");(function(){(function(e,t){"object"==typeof exports?module.exports=t(this):"function"==typeof define&&define.amd?define(function(){return t(e)}):e.Fiber=t(e)})(this,function(e){function t(e,t){var n;for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}function n(){}var r=!1,o=Array.prototype,i=e.Fiber;return n.extend=function(e){function o(){r||(this.init.apply(this,arguments),this.init=void 0)}var i,a=this.prototype,u=e(a);return r=!0,i=o.prototype=new this,r=!1,i.init=function(){"function"==typeof a.init&&a.init.apply(this,arguments)},t(u,i),i.constructor=o,o.__base__=a,o.extend=o.prototype.extend||n.extend,o},n.proxy=function(e,t){var n,r,o={};1===arguments.length&&(t=e,e=t.constructor.__base__),r=function(n){return function(){return e[n].apply(t,arguments)}};for(n in e)e.hasOwnProperty(n)&&"function"==typeof e[n]&&(o[n]=r(n));return o},n.decorate=function(e){var n,r=e.constructor.__base__,i=o.slice.call(arguments,1),a=i.length;for(n=0;a>n;n++)t(i[n].call(e,r),e)},n.mixin=function(e){var n,r=e.__base__,i=o.slice.call(arguments,1),a=i.length;for(n=0;a>n;n++)t(i[n](r),e.prototype)},n.noConflict=function(){return e.Fiber=i,n},n})})();var LinkJS={};(function(){"use strict";function e(e){this.id=null,this.source=e,this.requires=[],this.imports=[],this.exportedVariables=[],this.exportedFunctions=[],this.declaredVariables=[],this.declaredFunctions=[],this.expectedVariables=[],this.lexicalExports=!0,this.exportedProperties=[],this.strict=0,this.lexicalScope=!0,this.amd=!1,this.tokens=[],this.lexicalEnvironment={}}function t(e){return dt[e[0]].replace(/\$(\d)/g,function(t,n){return e[n]})}function n(){console.warn(t(arguments))}function r(){throw Error(t(arguments))}function o(e,t,n){return{type:e,value:t,lineNumber:nt,start:n,end:tt}}function i(e){return"0123456789".indexOf(e)>=0}function a(){var e=ot;return e===undefined||e.type===vt&&-1=="})]".indexOf(e.value)||e.type===gt&&l(e.value)}function u(e){return" "===e||"	"===e||""===e||"\f"===e||" "===e||"﻿"===e}function s(e){return"=<>{}();:,.!?+-*%&|^/[]~".indexOf(e)>=0}function c(e){return"\n"===e||"\r"===e||"\u2028"===e||"\u2029"===e}function l(e){switch(e){case"break":case"case":case"catch":case"continue":case"debugger":case"default":case"delete":case"do":case"else":case"finally":case"for":case"function":case"if":case"in":case"instanceof":case"new":case"return":case"switch":case"this":case"throw":case"try":case"typeof":case"var":case"void":case"while":case"with":return!0;case"const":return!0;case"implements":case"interface":case"let":case"package":case"private":case"protected":case"public":case"static":case"yield":return!0}return!1}function f(){var e="\0",t=tt;return rt>t&&(e=et[t],tt+=1),e}function d(){var e,t,n;for(t=!1,n=!1;rt>tt;)if(e=et[tt],n)f(),c(e)&&(n=!1,"\r"===e&&"\n"===et[tt]&&f(),nt+=1);else if(t)f(),"*"===e?(e=et[tt],"/"===e&&(f(),t=!1)):c(e)&&("\r"===e&&"\n"===et[tt]&&f(),nt+=1);else if("/"===e)if(e=et[tt+1],"/"===e)f(),f(),n=!0;else{if("*"!==e)break;f(),f(),t=!0}else if(u(e))f();else{if(!c(e))break;f(),"\r"===e&&"\n"===et[tt]&&f(),nt+=1}}function p(){var e,t,n;for(e=et[tt],t=tt,n=f();rt>tt&&(e=et[tt],!(u(e)||c(e)||s(e)||"'"==e||'"'==e));)n+=f();return 1===n.length?o(ht,n,t):l(n)?o(gt,n,t):"null"===n||"true"===n||"false"===n?o(mt,n,t):o(ht,n,t)}function h(){var e=tt,t=et[tt],n=et[tt+1];return t===n&&"+-<>&|".indexOf(t)>=0?o(vt,f()+f(),e):o(vt,f(),e)}function g(){for(var e;rt>tt;){if(e=et[tt],0>"0123456789abcdefABCDEF.xXeE".indexOf(e)){if("+"!=e&&"-"!=e)break;if(e=et[tt-1],"e"!=e&&"E"!=e)break}f()}return o(mt)}function m(){var e,t,n,r="";for(e=et[tt],t=tt,f();rt>tt&&(n=f(),n!==e);)"\\"===n?(n=f(),c(n)||(r+="\\",r+=n)):r+=n;return o(_t,r,t)}function v(){for(f();rt>tt;){var e=f();if("\\"===e&&f(),"/"===e)break;if("["===e)for(;rt>tt&&"]"!==f(););}for(;rt>tt&&/[a-z]/i.test(et[tt]);)f();return o(mt)}function _(){var e;return d(),tt>=rt?o(pt):(e=et[tt],"/"===e&&a()?v():!s(e)||"."==e&&i(et[tt+1])?"'"===e||'"'===e?m():"."===e||i(e)?g():p():h())}function E(){var e;return ft?(e=ft,ft=null,e):(ft=null,ot=_())}function x(){return null!==ft?ft:ft=ot=_()}function y(e){var t=E();if(t.type!==vt||t.value!==e)throw Error("Unexpected token: "+t.value+" at line "+nt)}function b(e){var t=E();if(t.type!==gt||t.value!==e)throw Error("Unexpected token: "+t.value)}function R(e){var t=x();return t.type===vt&&t.value===e}function C(e){var t=x();return t.type===gt&&t.value===e}function I(){var e=x();return e.type==gt?"case"==e.value?(E(),E(),!0):"default"==e.value?(E(),!0):"do"==e.value||"else"==e.value||"finally"==e.value||"try"==e.value:!1}function N(){var e=x();return e.type==gt?"if"==e.value||"for"==e.value||"catch"==e.value||"with"==e.value||"switch"==e.value||"while"==e.value:!1}function w(){var e=x();return e.type!==vt&&(e.type!==gt||"in"!=e.value&&"instanceof"!=e.value)}function O(){for(y("{");!R("}");){var e=E();if(e.type!=ht||"get"!=e.value&&"set"!=e.value||R(":")||E(),y(":"),k(),R("}"))break;y(",")}y("}")}function S(){for(y("[");!R("]")&&(k(),!R("]"));)y(",");y("]")}function T(){for(y("("),C("var")?D(Rt,Ct):k();R(",")||R(";");)E(),k();y(")")}function A(){if(y("("),x().type==_t){var e=E().value;if(R(")"))return lt[e]|=Tt,E(),undefined}for(k();R(",")&&(E(),!R(")"));)k();y(")")}function M(e){return"define"==e?U():"require"==e?A():("eval"==e&&(it.lexicalScope=!1),k(),undefined)}function L(e){var t=e.value;if(t in at||(at[t]=Rt),ct.push(e),t in st){if(t=st[t],ut[t])return}else if(at[t])return;if(R("("))return M(t);if("exports"==t)if(R("."))E(),ut[E().value]|=St;else if(R("[")){if(E(),x().type===_t){var n=E().value;R("]")&&(ut[n]|=St)}k(),y("]")}}function k(){for(var e=x();!(e.type==pt||R("}")||R(")")||R("]")||R(",")||R(";"));){if(e.type==ht){if(E(),L(e),w())break}else if(e.type==_t||e.type==mt){if(E(),w())break}else if(C("function")){if(H(),w())break}else if(R("{")){if(O(),w())break}else if(R("[")){if(S(),w())break}else if(R("(")){if(T(),R("{"))return X(),undefined;if(w())break}else if(R("++")||R("--")){E();var t=nt;if(w()&&t!==nt)break}else if(R(".")){if(E(),e=x(),e.type==ht&&(E(),w()))break}else E();e=x()}}function D(e,t){if(t){var n={type:Et,start:E().start,expressionStart:x().start,end:0};at===ut&&ct.push(n)}for(var r=E();r.type!==pt;){var o=r.value;if(at[o]|=t,at[o]|=e,ct.push(r),(R("=")||C("in"))&&k(),!R(","))break;E(),r=E()}t&&(n.end=x().start)}function j(){b("catch"),F()}function P(e){var t,n=0;if(y("("),!R(")"))for(;(t=E()).type!=pt&&(null!=e&&e.length>n&&(st[t.value]=e[n++]),at[t.value]|=Ct,!R(")"));)y(",");y(")")}function F(e,t){var n=function(){};if(n.prototype=at,at=new n,at.arguments=Ct,t&&(at[t]=It),e){var r=function(){};r.prototype=st,st=new r}var o=ct;ct=[],P(e),X();for(var i=0,a=ct.length;a>i;i++){var t=ct[i].value;Y.call(at,t)&&at[t]!==Rt||(o.push(ct[i]),n.prototype[t]|=Rt)}at=n.prototype,ct=o,e&&(st=r.prototype)}function q(e){var t=x().start;b("function");var n=E().value;at[n]|=It,at[n]|=e;var r=o(xt,null,t);at===ut&&ct.push(r),F(null,n),r.end=x().start}function H(e){b("function"),x().type===ht?F(e,E().value):F(e)}function X(){y("{"),$(),y("}")}function U(){var e=null,t=[];if(y("("),it.amd=!0,x().type===_t){if(e=E().value,R(",")&&E(),C("function")&&(H(["require","exports","module"]),R(")")))return E(),it.id=e,undefined;if(R(")"))return E(),undefined}if(R("[")){for(E();x().type===_t;)t.push(E().value),R(",")&&E();if(R("]")&&(E(),R(",")))if(E(),C("function")){if(H(t),R(")")){it.id=e;for(var n=0,r=t.length;r>n;n++)"require"!==t[n]&&"exports"!==t[n]&&"module"!==t[n]&&(lt[t[n]]|=Tt)}}else k()}for(C("function")?H(["require","exports","module"]):R(")")||k();R(",")&&(E(),!R(")"));)k();y(")")}function V(){if(at!==ut)return n("nestedRequire",x().lineNumber),undefined;var e=E();if(e.type===_t)for(;e.type!==pt&&(lt[e.value]|=At,R(",")&&E(),x().type===_t);)e=E()}function G(){return at!==ut?(n("nestedExport",x().lineNumber),undefined):(C("var")?D(Nt,Ct):C("function")?q(Nt):x().type===ht?D(Nt,Rt):n("unknownExport",x().lineNumber),undefined)}function J(){var e=x();if(e.type===ht){E();var t=e.value;if(R(":")){E();var n={type:0,start:e.start,expressionStart:x().start,end:0};"require"===t&&(at===ut&&ct.push(n),n.type=bt,V()),"exports"===t&&(at===ut&&ct.push(n),n.type=yt,G()),n.end=x().start,R("{")&&X()}else L(e)}else C("var")?D(Rt,Ct):C("function")?q():C("catch")?j():I()?(E(),R("{")&&X()):N()?(C("with")&&(it.lexicalScope=!1),E(),T(),R("{")&&X()):R(",")||R(";")?E():k()}function $(){for(var e=x();e.type!==pt&&!R("}");)J(),e=x()}function B(){var e=x();e.type===_t&&"use strict"===e.value&&(E(),R(";")&&(e=E()),it.strict=e.end),$()}function z(e){var t=lt[e];t===Tt?it.requires.push(e):t===At&&(it.requires.push(e),it.imports.push(e))}function W(e){var t=ut[e];t===Nt&&(n("undeclaredExport",e),it.expectedVariables.push(e)),(t&Ot)===Ot?it.exportedFunctions.push(e):(t&wt)===wt?it.exportedVariables.push(e):t===St?it.exportedProperties.push(e):t===It?it.declaredFunctions.push(e):t===Ct?it.declaredVariables.push(e):t===Rt&&it.expectedVariables.push(e)}function K(t){et=t+"";var n=it=new e(t);if(tt=0,nt=et.length>0?1:0,rt=et.length,at=ut=n.lexicalEnvironment,st={},ct=n.tokens,lt={},ot=ft=null,rt>0&&et[0]===undefined){et=[];for(var r=0;rt>r;r++)et[r]=t.charAt(r)}B();for(var o in ut)W(o);for(var i in lt)z(i);for(var r=0,a=Mt.length;a>r;r++)W(Mt[r]),z(Mt[r]);return it=ut=at=st=lt=ft=et=null,n}LinkJS.parse=K;var Y={}.hasOwnProperty,Q={cjs:!0,amd:!1,global:!1,resolve:null,strict:!1},Z={"":"$",cjs:"$",global:"(function(exports){\nfunction require(id){ return this; };\n$\n}.call(this, this));","cjs,global":'(function(require, exports){\n$\n}.call(this, typeof require === "undefined" ? function(){return this} : require, this));',amd:"define(function(require, exports, module){\n$\n});","cjs,amd":'(typeof define === "function" && define.amd ? define : function(factory){factory.call(exports, require, exports, module)})(function(require, exports, module){\n$\n});',"amd,global":'(typeof define === "function" && define.amd ? define : function(factory){factory.call(this, function(){return this}, this)})(function(require, exports, module){\n$\n});',"cjs,amd,global":'(typeof define === "function" && define.amd ? define : function(factory){var e = typeof exports == "undefined" ? this : exports;factory.call(e, typeof require == "undefined" ? function(){return this} : require, e, typeof module == "undefined" ? null : module)})(function(require, exports, module){\n$\n});'},define="var define = function(id, deps, factory){	if (typeof id !== 'string'){ factory = deps; deps = id; }	if (factory == null){ factory = deps; deps = ['require', 'exports', 'module']; }	function resolveList(deps){		var required = [];		for (var i = 0, l = deps.length; i < l; i++)			required.push(				(deps[i] === 'require') ? amdRequire :				(deps[i] === 'exports') ? exports :				(deps[i] === 'module') ? module :				require(deps[i])			);		return required;	}	function amdRequire(ids, success, failure){		if (typeof ids === 'string') return require(ids);		var resolved = resolveList(ids);		/*try { var resolved = resolveList(ids); }		catch (error) { if (failure) failure(error); return; }*/		if (success) success.apply(null, resolved);	}	amdRequire.toUrl = require.resolve;	if (typeof factory === 'function') factory = factory.apply(exports, resolveList(deps));	if (factory) module.exports = factory;};define.amd={};";e.prototype={resolve:function(e){var t=this.source,o=/\r\n/.test(t)?"\r\n":"\n",i=[],a=this.imports,u=this.lexicalEnvironment,s={};if(i.push(t.substr(0,this.strict)),this.strict&&i.push(o),"function"==typeof e)for(var c=0,l=a.length;l>c;c++){var f=a[c],d="__MODULE"+c+"__",p=e(f);if(p&&p.length)for(var h=0,g=p.length;g>h;h++){var m=p[h];Y.call(s,m)&&s[m].id!==f?r("importConflict",s[m].id,f,m,this.id||""):u[m]&&Y.call(u,m)?(u[m]&Nt)===Nt?r("exportConflict",f,m,this.id||""):n("shadowedImport",f,m,this.id||""):s[m]={id:f,name:d}}i.push(0==c?"var ":", ",d,' = require("',f,'")')}a.length&&i.push(";",o);for(var c=0,l=this.declaredVariables.length;l>c;c++)i.push(0==c?"var ":", "),i.push(this.declaredVariables[c]);l&&i.push(";",o);for(var c=0,l=this.exportedFunctions.length;l>c;c++)i.push("exports.",this.exportedFunctions[c]," = ",this.exportedFunctions[c],"; ");l&&i.push(o);for(var v=this.strict,_=this.tokens,c=0,l=_.length;l>c;c++){var E=_[c],x=E.type;if(i.push(t.substring(v,E.start)),v=E.start,x===ht){var m=E.value;(u[m]&Nt)===Nt?i.push("exports."):Y.call(s,m)&&i.push(s[m].name+".")}else x===bt?v=E.end:x===yt?v=E.expressionStart:x===Et&&(v=E.expressionStart)}return i.push(t.substring(v,t.length)),i.join("")},wrapStrict:function(){for(var e=[],t=this.exportedProperties,n=this.imports,r=0,o=t.length;o>r;r++)e.push("exports.",t[r],"=");o>0&&e.push("{}.undefined;");for(var r=0,o=n.length;o>r;r++)e.push('with(require("',n[r],'"))\n');if(n.length&&e.push("(function(){"),t=this.exportedVariables.concat(this.exportedFunctions),t.length){for(var r=0,o=t.length;o>r;r++){var i=t[r],a="v"==i?"b":"v";e.push(0==r?"({}.constructor.defineProperties(this, {":",",i,":{get:function(){return ",i,"},set:function(",a,"){",i,"=",a,"},enumerable:true}")}o&&e.push("}));")}return e.push(this.source),n.length&&e.push("}.call(this))"),e.join("")},wrap:function(){var e,t=[],n=this.imports;e=this.exportedVariables.concat(this.exportedProperties);for(var r=0,o=e.length;o>r;r++)t.push("exports.",e[r],"=");o>0&&t.push("{}.undefined;");for(var r=0,o=n.length;o>r;r++)t.push('with(require("',n[r],'"))\n');t.push("with(exports)(function(){"),e=this.exportedFunctions;for(var r=0,o=e.length;o>r;r++)t.push("this.",e[r],"=",e[r],";");return t.push("with(this){\n",this.source,"\n}"),t.push("}.call(exports));"),t.join("")},convert:function(e){e||(e=Q);var t;t=this.imports.length||this.exportedFunctions.length||this.exportedVariables.length?this.lexicalScope&&e.resolve?this.resolve(e.resolve):this.strict&&e.strict?this.wrapStrict():this.wrap():this.source;var n=[];return e.cjs&&n.push("cjs"),e.amd&&n.push("amd"),e.global&&n.push("global"),!this.amd&&this.lexicalEnvironment.define!==Rt||e.amd&&!(n.length>1)||(t=define+t),Z[n].replace("$",t)}};for(var et,tt,nt,rt,ot,it,at,ut,st,ct,lt,ft,dt={importConflict:'Import conflict: "$1" and "$2" both export "$3"\nResolve it by explicitly naming one of them: var $32 = require("$2").$3\n[$4]',exportConflict:'Export conflict: "$1" also contains the exported "$2"\nResolve it by explicitly naming one of them: var $22 = require("$1").$2\n[$3]',shadowedImport:'Import shadowed: The variable $2 is declared by this module but it\'s also\nimported through "$1". Only the locally declared variable will be used.\n[$3]',invalidArgs:"Invalid arguments.",nestedRequire:"The require statement can only be applied in the top scope. (Line $1)",nestedExport:"The exports statement can only be applied in the top scope. (Line $1)",unknownExport:"Unknown export statement. (Line $1)",undeclaredExport:"Cannot export undeclared variable: $1"},pt=2,ht=3,gt=4,mt=5,vt=7,_t=8,Et=10,xt=11,yt=12,bt=13,Rt=0,Ct=1,It=2|Ct,Nt=4,wt=Ct|Nt,Ot=It|Nt,St=8|Nt,Tt=1,At=3,Mt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Lt=0;Mt.length>Lt;Lt++){var kt={};kt[Mt[Lt]]=1;for(var Dt in kt)Mt.splice(Lt--,1)}})();var Flow=function(){var e,t=[],n=setTimeout(function(){n=null,e._next()},0);return e={destroy:function(){n&&clearTimeout(n)},par:function(n,r){return!r&&t[t.length-1]instanceof Array||t.push([]),t[t.length-1].push(n),e},seq:function(t){return e.par(t,!0)},_next:function(n,r){for(var o=[],i=[],a=t.shift()||[],u=a.length,s=1==u,c=0;a.length>c;c++)(function(t,a){t(function(t,n){o[a]=t,i[a]=n,0==--u&&e._next(s?o[0]:o,s?i[0]:i)},n,r)})(a[c],c)}}},LOCAL_EASY_XDM=!0;(function(e,t,n,r,o,i){function a(e,t){var n=typeof e[t];return"function"==n||!("object"!=n||!e[t])||"unknown"==n}function u(e,t){return!("object"!=typeof e[t]||!e[t])}function s(e){return"[object Array]"===Object.prototype.toString.call(e)}function c(){var e="Shockwave Flash",t="application/x-shockwave-flash";if(!E(navigator.plugins)&&"object"==typeof navigator.plugins[e]){var n=navigator.plugins[e].description;n&&!E(navigator.mimeTypes)&&navigator.mimeTypes[t]&&navigator.mimeTypes[t].enabledPlugin&&(O=n.match(/\d+/g))}if(!O){var r;try{r=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),O=Array.prototype.slice.call(r.GetVariable("$version").match(/(\d+),(\d+),(\d+),(\d+)/),1),r=null}catch(o){}}if(!O)return!1;var i=parseInt(O[0],10),a=parseInt(O[1],10);return S=i>9&&a>0,!0}function l(){if(!G){G=!0;for(var e=0;J.length>e;e++)J[e]();J.length=0}}function f(e,t){return G?(e.call(t),undefined):(J.push(function(){e.call(t)}),undefined)}function d(){var e=parent;if(""!==F)for(var t=0,n=F.split(".");n.length>t;t++)e=e[n[t]];return e.easyXDM}function p(t){return e.easyXDM=H,F=t,F&&(X="easyXDM_"+F.replace(".","_")+"_"),q}function h(e){return e.match(D)[3]}function g(e){return e.match(D)[4]||""}function m(e){var t=e.toLowerCase().match(D),n=t[2],r=t[3],o=t[4]||"";return("http:"==n&&":80"==o||"https:"==n&&":443"==o)&&(o=""),n+"//"+r+o}function v(e){if(e=e.replace(P,"$1/"),!e.match(/^(http||https):\/\//)){var t="/"===e.substring(0,1)?"":n.pathname;"/"!==t.substring(t.length-1)&&(t=t.substring(0,t.lastIndexOf("/")+1)),e=n.protocol+"//"+n.host+t+e}for(;j.test(e);)e=e.replace(j,"");return e}function _(e,t){var n="",r=e.indexOf("#");-1!==r&&(n=e.substring(r),e=e.substring(0,r));var o=[];for(var a in t)t.hasOwnProperty(a)&&o.push(a+"="+i(t[a]));return e+(U?"#":-1==e.indexOf("?")?"?":"&")+o.join("&")+n}function E(e){return e===undefined}function x(e,t,n){var r;for(var o in t)t.hasOwnProperty(o)&&(o in e?(r=t[o],"object"==typeof r?x(e[o],r,n):n||(e[o]=t[o])):e[o]=t[o]);return e}function y(){var e=t.body.appendChild(t.createElement("form")),n=e.appendChild(t.createElement("input"));n.name=X+"TEST"+L,w=n!==e.elements[n.name],t.body.removeChild(e)}function b(e){E(w)&&y();var n;w?n=t.createElement('<iframe name="'+e.props.name+'"/>'):(n=t.createElement("IFRAME"),n.name=e.props.name),n.id=n.name=e.props.name,delete e.props.name,"string"==typeof e.container&&(e.container=t.getElementById(e.container)),e.container||(x(n.style,{position:"absolute",top:"-2000px",left:"0px"}),e.container=t.body);var r=e.props.src;if(e.props.src="javascript:false",x(n,e.props),n.border=n.frameBorder=0,n.allowTransparency=!0,e.container.appendChild(n),e.onLoad&&T(n,"load",e.onLoad),e.usePost){var o,i=e.container.appendChild(t.createElement("form"));if(i.target=n.name,i.action=r,i.method="POST","object"==typeof e.usePost)for(var a in e.usePost)e.usePost.hasOwnProperty(a)&&(w?o=t.createElement('<input name="'+a+'"/>'):(o=t.createElement("INPUT"),o.name=a),o.value=e.usePost[a],i.appendChild(o));i.submit(),i.parentNode.removeChild(i)}else n.src=r;return e.props.src=r,n}function R(e,t){"string"==typeof e&&(e=[e]);for(var n,r=e.length;r--;)if(n=e[r],n=RegExp("^"==n.substr(0,1)?n:"^"+n.replace(/(\*)/g,".$1").replace(/\?/g,".")+"$"),n.test(t))return!0;return!1}function C(r){var o,i=r.protocol;if(r.isHost=r.isHost||E(B.xdm_p),U=r.hash||!1,r.props||(r.props={}),r.isHost)r.remote=v(r.remote),r.channel=r.channel||"default"+L++,r.secret=Math.random().toString(16).substring(2),E(i)&&(i=m(n.href)==m(r.remote)?"4":a(e,"postMessage")||a(t,"postMessage")?"1":r.swf&&a(e,"ActiveXObject")&&c()?"6":"Gecko"===navigator.product&&"frameElement"in e&&-1==navigator.userAgent.indexOf("WebKit")?"5":r.remoteHelper?"2":"0");else if(r.channel=B.xdm_c.replace(/["'<>\\]/g,""),r.secret=B.xdm_s,r.remote=B.xdm_e.replace(/["'<>\\]/g,""),i=B.xdm_p,r.acl&&!R(r.acl,r.remote))throw Error("Access denied for "+r.remote);switch(r.protocol=i,i){case"0":if(x(r,{interval:100,delay:2e3,useResize:!0,useParent:!1,usePolling:!1},!0),r.isHost){if(!r.local){for(var u,s=n.protocol+"//"+n.host,l=t.body.getElementsByTagName("img"),f=l.length;f--;)if(u=l[f],u.src.substring(0,s.length)===s){r.local=u.src;break}r.local||(r.local=e)}var d={xdm_c:r.channel,xdm_p:0};r.local===e?(r.usePolling=!0,r.useParent=!0,r.local=n.protocol+"//"+n.host+n.pathname+n.search,d.xdm_e=r.local,d.xdm_pa=1):d.xdm_e=v(r.local),r.container&&(r.useResize=!1,d.xdm_po=1),r.remote=_(r.remote,d)}else x(r,{channel:B.xdm_c,remote:B.xdm_e,useParent:!E(B.xdm_pa),usePolling:!E(B.xdm_po),useResize:r.useParent?!1:r.useResize});o=[new q.stack.HashTransport(r),new q.stack.ReliableBehavior({}),new q.stack.QueueBehavior({encode:!0,maxLength:4e3-r.remote.length}),new q.stack.VerifyBehavior({initiate:r.isHost})];break;case"1":o=[new q.stack.PostMessageTransport(r)];break;case"2":r.remoteHelper=v(r.remoteHelper),o=[new q.stack.NameTransport(r),new q.stack.QueueBehavior,new q.stack.VerifyBehavior({initiate:r.isHost})];break;case"3":o=[new q.stack.NixTransport(r)];break;case"4":o=[new q.stack.SameOriginTransport(r)];break;case"5":o=[new q.stack.FrameElementTransport(r)];break;case"6":O||c(),o=[new q.stack.FlashTransport(r)]}return o.push(new q.stack.QueueBehavior({lazy:r.lazy,remove:!0})),o}function I(e){for(var t,n={incoming:function(e,t){this.up.incoming(e,t)},outgoing:function(e,t){this.down.outgoing(e,t)},callback:function(e){this.up.callback(e)},init:function(){this.down.init()},destroy:function(){this.down.destroy()}},r=0,o=e.length;o>r;r++)t=e[r],x(t,n,!0),0!==r&&(t.down=e[r-1]),r!==o-1&&(t.up=e[r+1]);return t}function N(e){e.up.down=e.down,e.down.up=e.up,e.up=e.down=null}var w,O,S,T,A,M=this,L=Math.floor(1e4*Math.random()),k=Function.prototype,D=/^((http.?:)\/\/([^:\/\s]+)(:\d+)*)/,j=/[\-\w]+\/\.\.\//,P=/([^:])\/\//g,F="",q={},H=e.easyXDM,X="easyXDM_",U=!1;if(a(e,"addEventListener"))T=function(e,t,n){e.addEventListener(t,n,!1)},A=function(e,t,n){e.removeEventListener(t,n,!1)};else{if(!a(e,"attachEvent"))throw Error("Browser not supported");T=function(e,t,n){e.attachEvent("on"+t,n)},A=function(e,t,n){e.detachEvent("on"+t,n)}}var V,G=!1,J=[];if("readyState"in t?(V=t.readyState,G="complete"==V||~navigator.userAgent.indexOf("AppleWebKit/")&&("loaded"==V||"interactive"==V)):G=!!t.body,!G){if(a(e,"addEventListener"))T(t,"DOMContentLoaded",l);else if(T(t,"readystatechange",function(){"complete"==t.readyState&&l()}),t.documentElement.doScroll&&e===top){var $=function(){if(!G){try{t.documentElement.doScroll("left")}catch(e){return r($,1),undefined}l()}};$()}T(e,"load",l)}var B=function(e){e=e.substring(1).split("&");for(var t,n={},r=e.length;r--;)t=e[r].split("="),n[t[0]]=o(t[1]);return n}(/xdm_e=/.test(n.search)?n.search:n.hash),z=function(){var e={},t={a:[1,2,3]},n='{"a":[1,2,3]}';return"undefined"!=typeof JSON&&"function"==typeof JSON.stringify&&JSON.stringify(t).replace(/\s/g,"")===n?JSON:(Object.toJSON&&Object.toJSON(t).replace(/\s/g,"")===n&&(e.stringify=Object.toJSON),"function"==typeof String.prototype.evalJSON&&(t=n.evalJSON(),t.a&&3===t.a.length&&3===t.a[2]&&(e.parse=function(e){return e.evalJSON()})),e.stringify&&e.parse?(z=function(){return e},e):null)};x(q,{version:"2.4.17.1",query:B,stack:{},apply:x,getJSONObject:z,whenReady:f,noConflict:p}),q.DomHelper={on:T,un:A,requiresJSON:function(n){u(e,"JSON")||t.write('<script type="text/javascript" src="'+n+'"></script>')}},function(){var e={};q.Fn={set:function(t,n){e[t]=n},get:function(t,n){var r=e[t];return n&&delete e[t],r}}}(),q.Socket=function(e){var t=I(C(e).concat([{incoming:function(t,n){e.onMessage(t,n)},callback:function(t){e.onReady&&e.onReady(t)}}])),n=m(e.remote);this.origin=m(e.remote),this.destroy=function(){t.destroy()},this.postMessage=function(e){t.outgoing(e,n)},t.init()},q.Rpc=function(e,t){if(t.local)for(var n in t.local)if(t.local.hasOwnProperty(n)){var r=t.local[n];"function"==typeof r&&(t.local[n]={method:r})}var o=I(C(e).concat([new q.stack.RpcBehavior(this,t),{callback:function(t){e.onReady&&e.onReady(t)}}]));this.origin=m(e.remote),this.destroy=function(){o.destroy()},o.init()},q.stack.SameOriginTransport=function(e){var t,o,i,a;return t={outgoing:function(e,t,n){i(e),n&&n()},destroy:function(){o&&(o.parentNode.removeChild(o),o=null)},onDOMReady:function(){a=m(e.remote),e.isHost?(x(e.props,{src:_(e.remote,{xdm_e:n.protocol+"//"+n.host+n.pathname,xdm_c:e.channel,xdm_p:4}),name:X+e.channel+"_provider"}),o=b(e),q.Fn.set(e.channel,function(e){return i=e,r(function(){t.up.callback(!0)},0),function(e){t.up.incoming(e,a)}})):(i=d().Fn.get(e.channel,!0)(function(e){t.up.incoming(e,a)}),r(function(){t.up.callback(!0)},0))},init:function(){f(t.onDOMReady,t)}}},q.stack.FlashTransport=function(e){function o(e){r(function(){a.up.incoming(e,s)},0)}function i(n){var r=e.swf+"?host="+e.isHost,o="easyXDM_swf_"+Math.floor(1e4*Math.random());q.Fn.set("flash_loaded"+n.replace(/[\-.]/g,"_"),function(){q.stack.FlashTransport[n].swf=c=l.firstChild;for(var e=q.stack.FlashTransport[n].queue,t=0;e.length>t;t++)e[t]();e.length=0}),e.swfContainer?l="string"==typeof e.swfContainer?t.getElementById(e.swfContainer):e.swfContainer:(l=t.createElement("div"),x(l.style,S&&e.swfNoThrottle?{height:"20px",width:"20px",position:"fixed",right:0,top:0}:{height:"1px",width:"1px",position:"absolute",overflow:"hidden",right:0,top:0}),t.body.appendChild(l));var i="callback=flash_loaded"+n.replace(/[\-.]/g,"_")+"&proto="+M.location.protocol+"&domain="+h(M.location.href)+"&port="+g(M.location.href)+"&ns="+F;l.innerHTML="<object height='20' width='20' type='application/x-shockwave-flash' id='"+o+"' data='"+r+"'><param name='allowScriptAccess' value='always'></param><param name='wmode' value='transparent'><param name='movie' value='"+r+"'></param><param name='flashvars' value='"+i+"'></param><embed type='application/x-shockwave-flash' FlashVars='"+i+"' allowScriptAccess='always' wmode='transparent' src='"+r+"' height='1' width='1'></embed></object>"}var a,u,s,c,l;return a={outgoing:function(t,n,r){c.postMessage(e.channel,""+t),r&&r()},destroy:function(){try{c.destroyChannel(e.channel)}catch(t){}c=null,u&&(u.parentNode.removeChild(u),u=null)},onDOMReady:function(){s=e.remote,q.Fn.set("flash_"+e.channel+"_init",function(){r(function(){a.up.callback(!0)})}),q.Fn.set("flash_"+e.channel+"_onMessage",o),e.swf=v(e.swf);var t=h(e.swf),l=function(){q.stack.FlashTransport[t].init=!0,c=q.stack.FlashTransport[t].swf,c.createChannel(e.channel,e.secret,m(e.remote),e.isHost),e.isHost&&(S&&e.swfNoThrottle&&x(e.props,{position:"fixed",right:0,top:0,height:"20px",width:"20px"}),x(e.props,{src:_(e.remote,{xdm_e:m(n.href),xdm_c:e.channel,xdm_p:6,xdm_s:e.secret}),name:X+e.channel+"_provider"}),u=b(e))};q.stack.FlashTransport[t]&&q.stack.FlashTransport[t].init?l():q.stack.FlashTransport[t]?q.stack.FlashTransport[t].queue.push(l):(q.stack.FlashTransport[t]={queue:[l]},i(t))},init:function(){f(a.onDOMReady,a)}}},q.stack.PostMessageTransport=function(t){function o(e){if(e.origin)return m(e.origin);if(e.uri)return m(e.uri);if(e.domain)return n.protocol+"//"+e.domain;throw"Unable to retrieve the origin of the event"}function i(e){var n=o(e);n==c&&e.data.substring(0,t.channel.length+1)==t.channel+" "&&a.up.incoming(e.data.substring(t.channel.length+1),n)}var a,u,s,c;return a={outgoing:function(e,n,r){s.postMessage(t.channel+" "+e,n||c),r&&r()},destroy:function(){A(e,"message",i),u&&(s=null,u.parentNode.removeChild(u),u=null)},onDOMReady:function(){if(c=m(t.remote),t.isHost){var o=function(n){n.data==t.channel+"-ready"&&(s="postMessage"in u.contentWindow?u.contentWindow:u.contentWindow.document,A(e,"message",o),T(e,"message",i),r(function(){a.up.callback(!0)},0))};T(e,"message",o),x(t.props,{src:_(t.remote,{xdm_e:m(n.href),xdm_c:t.channel,xdm_p:1}),name:X+t.channel+"_provider"}),u=b(t)}else T(e,"message",i),s="postMessage"in e.parent?e.parent:e.parent.document,s.postMessage(t.channel+"-ready",c),r(function(){a.up.callback(!0)},0)},init:function(){f(a.onDOMReady,a)}}},q.stack.FrameElementTransport=function(o){var i,a,u,s;return i={outgoing:function(e,t,n){u.call(this,e),n&&n()},destroy:function(){a&&(a.parentNode.removeChild(a),a=null)},onDOMReady:function(){s=m(o.remote),o.isHost?(x(o.props,{src:_(o.remote,{xdm_e:m(n.href),xdm_c:o.channel,xdm_p:5}),name:X+o.channel+"_provider"}),a=b(o),a.fn=function(e){return delete a.fn,u=e,r(function(){i.up.callback(!0)},0),function(e){i.up.incoming(e,s)}}):(t.referrer&&m(t.referrer)!=B.xdm_e&&(e.top.location=B.xdm_e),u=e.frameElement.fn(function(e){i.up.incoming(e,s)}),i.up.callback(!0))},init:function(){f(i.onDOMReady,i)}}},q.stack.NameTransport=function(e){function t(t){var n=e.remoteHelper+(u?"#_3":"#_2")+e.channel;
s.contentWindow.sendMessage(t,n)}function n(){u?2!==++l&&u||a.up.callback(!0):(t("ready"),a.up.callback(!0))}function o(e){a.up.incoming(e,p)}function i(){d&&r(function(){d(!0)},0)}var a,u,s,c,l,d,p,h;return a={outgoing:function(e,n,r){d=r,t(e)},destroy:function(){s.parentNode.removeChild(s),s=null,u&&(c.parentNode.removeChild(c),c=null)},onDOMReady:function(){u=e.isHost,l=0,p=m(e.remote),e.local=v(e.local),u?(q.Fn.set(e.channel,function(t){u&&"ready"===t&&(q.Fn.set(e.channel,o),n())}),h=_(e.remote,{xdm_e:e.local,xdm_c:e.channel,xdm_p:2}),x(e.props,{src:h+"#"+e.channel,name:X+e.channel+"_provider"}),c=b(e)):(e.remoteHelper=e.remote,q.Fn.set(e.channel,o));var t=function(){var o=s||this;A(o,"load",t),q.Fn.set(e.channel+"_load",i),function a(){"function"==typeof o.contentWindow.sendMessage?n():r(a,50)}()};s=b({props:{src:e.local+"#_4"+e.channel},onLoad:t})},init:function(){f(a.onDOMReady,a)}}},q.stack.HashTransport=function(t){function n(e){if(g){var n=t.remote+"#"+p++ +"_"+e;(s||!v?g.contentWindow:g).location=n}}function o(e){d=e,u.up.incoming(d.substring(d.indexOf("_")+1),_)}function i(){if(h){var e=h.location.href,t="",n=e.indexOf("#");-1!=n&&(t=e.substring(n)),t&&t!=d&&o(t)}}function a(){c=setInterval(i,l)}var u,s,c,l,d,p,h,g,v,_;return u={outgoing:function(e){n(e)},destroy:function(){e.clearInterval(c),(s||!v)&&g.parentNode.removeChild(g),g=null},onDOMReady:function(){if(s=t.isHost,l=t.interval,d="#"+t.channel,p=0,v=t.useParent,_=m(t.remote),s){if(x(t.props,{src:t.remote,name:X+t.channel+"_provider"}),v)t.onLoad=function(){h=e,a(),u.up.callback(!0)};else{var n=0,o=t.delay/50;(function i(){if(++n>o)throw Error("Unable to reference listenerwindow");try{h=g.contentWindow.frames[X+t.channel+"_consumer"]}catch(e){}h?(a(),u.up.callback(!0)):r(i,50)})()}g=b(t)}else h=e,a(),v?(g=parent,u.up.callback(!0)):(x(t,{props:{src:t.remote+"#"+t.channel+new Date,name:X+t.channel+"_consumer"},onLoad:function(){u.up.callback(!0)}}),g=b(t))},init:function(){f(u.onDOMReady,u)}}},q.stack.ReliableBehavior=function(){var e,t,n=0,r=0,o="";return e={incoming:function(i,a){var u=i.indexOf("_"),s=i.substring(0,u).split(",");i=i.substring(u+1),s[0]==n&&(o="",t&&(t(!0),t=null)),i.length>0&&(e.down.outgoing(s[1]+","+n+"_"+o,a),r!=s[1]&&(r=s[1],e.up.incoming(i,a)))},outgoing:function(i,a,u){o=i,t=u,e.down.outgoing(r+","+ ++n+"_"+i,a)}}},q.stack.QueueBehavior=function(e){function t(){if(e.remove&&0===u.length)return N(n),undefined;if(!s&&0!==u.length&&!a){s=!0;var o=u.shift();n.down.outgoing(o.data,o.origin,function(e){s=!1,o.callback&&r(function(){o.callback(e)},0),t()})}}var n,a,u=[],s=!0,c="",l=0,f=!1,d=!1;return n={init:function(){E(e)&&(e={}),e.maxLength&&(l=e.maxLength,d=!0),e.lazy?f=!0:n.down.init()},callback:function(e){s=!1;var r=n.up;t(),r.callback(e)},incoming:function(t,r){if(d){var i=t.indexOf("_"),a=parseInt(t.substring(0,i),10);c+=t.substring(i+1),0===a&&(e.encode&&(c=o(c)),n.up.incoming(c,r),c="")}else n.up.incoming(t,r)},outgoing:function(r,o,a){e.encode&&(r=i(r));var s,c=[];if(d){for(;0!==r.length;)s=r.substring(0,l),r=r.substring(s.length),c.push(s);for(;s=c.shift();)u.push({data:c.length+"_"+s,origin:o,callback:0===c.length?a:null})}else u.push({data:r,origin:o,callback:a});f?n.down.init():t()},destroy:function(){a=!0,n.down.destroy()}}},q.stack.VerifyBehavior=function(e){function t(){r=Math.random().toString(16).substring(2),n.down.outgoing(r)}var n,r,o;return n={incoming:function(i,a){var u=i.indexOf("_");-1===u?i===r?n.up.callback(!0):o||(o=i,e.initiate||t(),n.down.outgoing(i)):i.substring(0,u)===o&&n.up.incoming(i.substring(u+1),a)},outgoing:function(e,t,o){n.down.outgoing(r+"_"+e,t,o)},callback:function(){e.initiate&&t()}}},q.stack.RpcBehavior=function(e,t){function n(e){e.jsonrpc="2.0",i.down.outgoing(a.stringify(e))}function r(e,t){var r=Array.prototype.slice;return function(){var o,i=arguments.length,a={method:t};i>0&&"function"==typeof arguments[i-1]?(i>1&&"function"==typeof arguments[i-2]?(o={success:arguments[i-2],error:arguments[i-1]},a.params=r.call(arguments,0,i-2)):(o={success:arguments[i-1]},a.params=r.call(arguments,0,i-1)),c[""+ ++u]=o,a.id=u):a.params=r.call(arguments,0),e.namedParams&&1===a.params.length&&(a.params=a.params[0]),n(a)}}function o(e,t,r,o){if(!r)return t&&n({id:t,error:{code:-32601,message:"Procedure not found."}}),undefined;var i,a;t?(i=function(e){i=k,n({id:t,result:e})},a=function(e,r){a=k;var o={id:t,error:{code:-32099,message:e}};r&&(o.error.data=r),n(o)}):i=a=k,s(o)||(o=[o]);try{var u=r.method.apply(r.scope,o.concat([i,a]));E(u)||i(u)}catch(c){a(c.message)}}var i,a=t.serializer||z(),u=0,c={};return i={incoming:function(e){var r=a.parse(e);if(r.method)t.handle?t.handle(r,n):o(r.method,r.id,t.local[r.method],r.params);else{var i=c[r.id];r.error?i.error&&i.error(r.error):i.success&&i.success(r.result),delete c[r.id]}},init:function(){if(t.remote)for(var n in t.remote)t.remote.hasOwnProperty(n)&&(e[n]=r(t.remote[n],n));i.down.init()},destroy:function(){for(var n in t.remote)t.remote.hasOwnProperty(n)&&e.hasOwnProperty(n)&&delete e[n];i.down.destroy()}}},M.easyXDM=q})(window,document,location,window.setTimeout,decodeURIComponent,encodeURIComponent);var lscache=function(){function e(){if(void 0!==o)return o;try{n("__lscachetest__","__lscachetest__"),r("__lscachetest__"),o=!0}catch(e){o=!1}return o}function t(){return void 0===i&&(i=null!=window.JSON),i}function n(e,t){localStorage.removeItem(a+s+e),localStorage.setItem(a+s+e,t)}function r(e){localStorage.removeItem(a+s+e)}var o,i,a="lscache-",u=Math.floor(144e9),s="";return{set:function(o,i,c){if(e()){if("string"!=typeof i){if(!t())return;try{i=JSON.stringify(i)}catch(l){return}}try{n(o,i)}catch(f){if("QUOTA_EXCEEDED_ERR"!==f.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==f.name)return;for(var d,p=[],h=0;localStorage.length>h;h++)if(d=localStorage.key(h),0===d.indexOf(a+s)&&0>d.indexOf("-cacheexpiration")){d=d.substr((a+s).length);var g=localStorage.getItem(a+s+(d+"-cacheexpiration")),g=g?parseInt(g,10):u;p.push({key:d,size:(localStorage.getItem(a+s+d)||"").length,expiration:g})}for(p.sort(function(e,t){return t.expiration-e.expiration}),h=(i||"").length;p.length&&h>0;)d=p.pop(),r(d.key),r(d.key+"-cacheexpiration"),h-=d.size;try{n(o,i)}catch(m){return}}c?n(o+"-cacheexpiration",(Math.floor((new Date).getTime()/6e4)+c).toString(10)):r(o+"-cacheexpiration")}},get:function(n){if(!e())return null;var o=n+"-cacheexpiration",i=localStorage.getItem(a+s+o);if(i&&(i=parseInt(i,10),Math.floor((new Date).getTime()/6e4)>=i))return r(n),r(o),null;if(n=localStorage.getItem(a+s+n),!n||!t())return n;try{return JSON.parse(n)}catch(u){return n}},remove:function(t){return e()?(r(t),r(t+"-cacheexpiration"),undefined):null},supported:function(){return e()},flush:function(){if(e())for(var t=localStorage.length-1;t>=0;--t){var n=localStorage.key(t);0===n.indexOf(a+s)&&localStorage.removeItem(n)}},setBucket:function(e){s=e},resetBucket:function(){s=""}}}();(function(){var e;HAS_LOCAL_STORAGE&&lscache&&(lscache.setBucket(FILE_STORAGE_TOKEN),e=lscache.get(LSCACHE_SCHEMA_VERSION_STRING),e&&e>0&&LSCACHE_SCHEMA_VERSION>e&&(lscache.flush(),lscache.set(LSCACHE_SCHEMA_VERSION_STRING,LSCACHE_SCHEMA_VERSION))),easyXDM=LOCAL_EASY_XDM&&context.easyXDM?context.easyXDM.noConflict("Inject"):!1})();var Fiber=this.Fiber.noConflict(),Analyzer;(function(){var e=Fiber.extend(function(){return{init:function(){},stripBuiltins:function(e){for(var t,n=[],r=0,o=e.length;o>r;r++)t=e[r],"require"!==t&&"exports"!==t&&"module"!==t&&n.push(t);return n},extractRequires:function(e){var t=LinkJS.parse(e);return t.requires}}});Analyzer=new e})();var Communicator;(function(){var e=Fiber.extend(function(){function e(){s=[],c={}}function t(e,t){return lscache.set(e,t,userConfig.fileExpires)}function n(e){return lscache.get(e)}function r(e){return e=e.replace(HOST_PREFIX_REGEX,"").replace(HOST_SUFFIX_REGEX,"$1")}function o(e,n,r,o){r=1*r,debugLog("Communicator ("+n+")","status "+r+". Length: "+(o?o.length:"NaN")),200===r&&t(n,o),each(c[n],function(t){200!==r?(Executor&&Executor.flagModuleAsBroken(e),t(!1)):t(o)}),c[n]=[]}function i(){var e=userConfig.xd.relayFile,t=userConfig.xd.relaySwf||"";e+=e.indexOf("?")>=0?"&":"?",e+="swf="+t,l=new easyXDM.Socket({remote:e,swf:t,onMessage:function(e,t){if("string"!=typeof userConfig.moduleRoot||r(userConfig.moduleRoot)===r(t)){var n=e.split("__INJECT_SPLIT__");o(n[0],n[1],n[2],n[3])}},onReady:function(){f=!1,each(s,function(e){e()}),s=[]}})}function a(e,t){l.postMessage(e+"__INJECT_SPLIT__"+t)}function u(e,t){var n=getXhr();n.open("GET",t),n.onreadystatechange=function(){4===n.readyState&&o(e,t,n.status,n.responseText)},n.send(null)}var s,c,l,f=!1;return{init:function(){this.clearCaches()},clearCaches:function(){e()},noop:function(e,t,n){n("")},get:function(e,t,r){c[t]||(c[t]=[]),debugLog("Communicator ("+t+")","requesting");var o=n(t);if(o)return debugLog("Communicator ("+t+")","retireved from cache. length: "+o.length),r(o),undefined;if(debugLog("Communicator ("+t+")","queued"),c[t].length)return c[t].push(r),debugLog("Communicator ("+t+")","request already in progress"),undefined;c[t].push(r),!userConfig.xd.relayFile||l||f||(f=!0,context.setTimeout(i));var d=function(){a(e,t)};f?s.push(d):userConfig.xd.relayFile?a(e,t):u(e,t)}}});Communicator=new e})();var Executor;(function(){function createEvalScript(e){var t=document.createElement("script");t.type="text/javascript";try{t.text=e}catch(n){try{t.innerHTML=e}catch(r){return!1}}return t}function cleanupEvalScriptNode(e){context.setTimeout(function(){return docHead?docHead.removeChild(e):undefined})}function getLineNumberFromException(e){var t,n,r=parseInt(onErrorOffset,10);return e.lineNumber!==undefined&&null!==e.lineNumber?parseInt(e.lineNumber,10)+r:e.line!==undefined&&null!==e.line?parseInt(e.line,10)+r:e.stack?(t=e.stack.split("\n"),n=t[1].split(":"),parseInt(n[n.length-2],10)+r):undefined}function executeJavaScriptModule(code,options){var errorObject=null,sourceString=IS_IE?"":"//@ sourceURL="+options.url,result;options={moduleId:options.moduleId||null,functionId:options.functionId||null,preamble:options.preamble||"",preambleLength:options.preamble.split("\n").length+1,epilogue:options.epilogue||"",epilogueLength:options.epilogue.split("\n").length+1,originalCode:options.originalCode||code,url:options.url||null},code=[code,sourceString].join("\n");var tempErrorHandler=function(e,t,n,r){var o=n-options.preambleLength,i=options.originalCode.split("\n").length,a="";return"runtime"===r?a="Runtime error in "+options.moduleId+" ("+options.url+") on line "+o+":\n  "+e:(o=o>i?i:o,a="Parsing error in "+options.moduleId+" ("+options.url+") on line "+o+":\n  "+e),errorObject=Error(a),errorObject.line=o,errorObject.stack=null,!0};context.onerror=tempErrorHandler;var scr=createEvalScript(code);if(scr&&docHead&&(docHead.appendChild(scr),cleanupEvalScriptNode(scr)),!errorObject)if(!context.Inject.INTERNAL.execute[options.functionId]||userConfig.debug.sourceMap){var toExec=code.replace(/([\w\W]+?)=([\w\W]*\})[\w\W]*?$/,"$1 = ($2)();"),relativeE;if(toExec=[toExec,sourceString].join("\n"),context.Inject.INTERNAL.execute[options.functionId]){try{eval("+\n//@ sourceURL=Inject-Executor-line.js")}catch(ee){relativeE=ee}eval(toExec)}else try{try{eval("+\n//@ sourceURL=Inject-Executor-line.js")}catch(ee){relativeE=ee}eval(toExec)}catch(e){e.lineNumber=e.lineNumber&&relativeE.lineNumber?e.lineNumber-relativeE.lineNumber+1:getLineNumberFromException(e),tempErrorHandler(e.message,null,e.lineNumber,"parse")}context.Inject.INTERNAL.execute[options.functionId]&&(result=context.Inject.INTERNAL.execute[options.functionId],result.error&&(result.error.lineNumber=result.error.lineNumber&&relativeE.lineNumber?result.error.lineNumber-relativeE.lineNumber:getLineNumberFromException(result.error),tempErrorHandler(result.error.message,null,result.error.lineNumber,"runtime")))}else result=context.Inject.INTERNAL.execute[options.functionId](),result.error&&tempErrorHandler(result.error.message,null,getLineNumberFromException(result.error),"runtime");return errorObject&&(result||(result={}),result.error=errorObject),context.onerror=initOldError,context.Inject.INTERNAL.execute[options.functionId]&&delete context.Inject.INTERNAL.execute[options.functionId],result}var docHead=!1,onErrorOffset=IS_GK?-3:0,initOldError=context.onerror;try{docHead=document.getElementsByTagName("head")[0]}catch(e){docHead=!1}var AsStatic=Fiber.extend(function(){var e=0;return{init:function(){this.clearCaches()},clearCaches:function(){this.cache={},this.executed={},this.broken={},this.circular={},this.defined={},this.anonymousAMDStack=[]},defineExecutingModuleAs:function(e,t){return this.anonymousAMDStack.push({id:e,path:t})},undefineExecutingModule:function(){return this.anonymousAMDStack.pop()},getCurrentExecutingAMD:function(){return this.anonymousAMDStack[this.anonymousAMDStack.length-1]},assignModule:function(e,t,n,r){var o=Executor.createModule(e+"^^^"+t,n);o.exports=r},getAssignedModule:function(e,t){return this.getModule(e+"^^^"+t)},runTree:function(e,t,n){var r=[];e.postOrder(function(e){if(e.getValue().name){var n,o=e.getValue().name,i=e.getValue().path,a=t[o],u=e.getValue().resolvedId;Executor.createModule(u,i),e.isCircular()||(n=Executor.runModule(u,a,i),r.push(n))}}),n(r)},createModule:function(e,t){var n;return this.cache[e]||(n={},n.id=e||null,n.uri=t||null,n.exports={},n.error=null,n.setExports=function(e){var t;for(t in n.exports)return debugLog("cannot setExports when exports have already been set. setExports skipped"),undefined;switch(typeof e){case"object":for(t in e)n.exports[t]=e[t];break;case"function":n.exports=e;break;default:n.exports=e}},e&&(this.cache[e]=n)),e?this.cache[e]:n},isModuleDefined:function(e){return this.defined[e]},flagModuleAsDefined:function(e){this.defined[e]=!0},flagModuleAsBroken:function(e){this.broken[e]=!0},flagModuleAsCircular:function(e){this.circular[e]=!0},isModuleCircular:function(e){return this.circular[e]},getModule:function(e){if(this.broken[e]&&this.broken.hasOwnProperty(e))throw Error("module "+e+" failed to load successfully");return this.cache[e]||null},runModule:function(t,n,r){function o(e){return e.replace(/__MODULE_ID__/g,t).replace(/__MODULE_URI__/g,r).replace(/__FUNCTION_ID__/g,a).replace(/__INJECT_NS__/g,NAMESPACE)}if(debugLog("Executor","executing "+r),this.cache[t]&&this.executed[t])return this.cache[t];if(this.cache[t]&&this.defined[t])return this.cache[t];var i,a="exec"+e++,u=o(commonJSHeader),s=o(commonJSFooter),c=[u,";",n,s].join("\n");if(i=executeJavaScriptModule(c,{moduleId:t,functionId:a,preamble:u,epilogue:s,originalCode:n,url:r}),i&&i.error)throw context[NAMESPACE].clearCache(),i.error;return DEFINE_EXTRACTION_REGEX.test(n)||(this.cache[t]=i),this.executed[t]=!0,debugLog("Executor","executed",t,r,i),i}}});Executor=new AsStatic})();var InjectCore;(function(){var e=Fiber.extend(function(){return{init:function(){},createRequire:function(e,t){var n=new RequireContext(e,t),require=proxy(n.require,n);return require.ensure=proxy(n.ensure,n),require.run=proxy(n.run,n),require.toUrl=function(n){var r=RulesEngine.resolveIdentifier(n,e),o=RulesEngine.resolveUrl(r,t,!0);return o},require},createDefine:function(e,t){var n=new RequireContext(e,t),define=proxy(n.define,n);return define.amd={},define},plugin:function(e,t,n,r){RulesEngine.addRule(RegExp("^"+e+"!"),t),r.plugins=r.plugins||{},r.plugins[e]=n},setModuleRoot:function(e){userConfig.moduleRoot=e},setCrossDomain:function(e){userConfig.xd.relayFile=e.relayFile||null,userConfig.xd.relaySwf=e.relaySwf||null},setUseSuffix:function(e){userConfig.useSuffix=e},clearCache:function(){HAS_LOCAL_STORAGE&&lscache&&lscache.flush()},setExpires:function(e){userConfig.fileExpires=e||0},setCacheKey:function(e){var t;return HAS_LOCAL_STORAGE&&lscache?(t=lscache.get(LSCACHE_APP_KEY_STRING),(!e&&t||null!==t&&t!==e||null===t&&e)&&(lscache.flush(),lscache.set(LSCACHE_APP_KEY_STRING,e)),undefined):!1},reset:function(){this.clearCache(),Executor.clearCaches(),Communicator.clearCaches()},enableDebug:function(e,t){userConfig.debug[e]=t||!0}}});InjectCore=new e})();var RequireContext=Fiber.extend(function(){return{init:function(e,t){this.id=e||null,this.path=t||null},log:function(e){debugLog("RequireContext for "+this.path,e)},getPath:function(){if(!userConfig.moduleRoot)throw Error("moduleRoot must be defined. Please use Inject.setModuleRoot()");return this.path||userConfig.moduleRoot},getId:function(){return this.id||""},getModule:function(e){return Executor.getModule(e).exports},getAllModules:function(e,require,t){for(var n=[],r=null,o=0,i=e.length;i>o;o++)switch(r=e[o]){case"require":n.push(require);break;case"module":n.push(t);break;case"exports":n.push(t.exports);break;default:n.push(this.getModule(r))}return n},require:function(e,t){var n,r,o;if("string"==typeof e){if(this.log("CommonJS require(string) of "+e),/^[\d]+$/.test(e))throw Error("require() must be a string containing a-z, slash(/), dash(-), and dots(.)");if(r=RulesEngine.resolveIdentifier(e,this.getId()),n=Executor.getModule(r),o=Executor.getAssignedModule(this.getId(),r))return o.exports;if(n)return n.exports;throw Error("module "+e+" not found")}this.log("AMD require(Array) of "+e.join(", "));var i=Analyzer.stripBuiltins(e);this.ensure(i,proxy(function(n){var r=Executor.createModule(),o=this.getAllModules(e,n,r);t.apply(context,o)},this))},ensure:function(e,t){if("[object Array]"!==Object.prototype.toString.call(e))throw Error("require.ensure() must take an Array as the first argument");this.log("CommonJS require.ensure(array) of "+e.join(", ")),e=Analyzer.stripBuiltins(e);var n,r,o=e.length,i=this.getPath()?this.getPath():userConfig.moduleRoot,a=proxy(function(e,n){Executor.runTree(e,n,proxy(function(){0===--o&&t&&t(InjectCore.createRequire(this.getId(),this.getPath()))},this))},this);if(!o)return t&&t(InjectCore.createRequire(this.getId(),this.getPath())),undefined;for(var u=0,s=e.length;s>u;u++)n=TreeDownloader.createNode(e[u],i),r=new TreeDownloader(n),r.get(a)},run:function(e){this.log("AMD require.run(string) of "+e),this.ensure([e])},define:function(){var e,t,n=Array.prototype.slice.call(arguments,0),r=null,o=["require","exports","module"],i=!1,a={},u=[],s=[],c=null,l={"string array object":["id","dependencies","executionFunctionOrLiteral"],"string object":["id","executionFunctionOrLiteral"],"array object":["dependencies","executionFunctionOrLiteral"],object:["executionFunctionOrLiteral"]},f=[];for(t=0,len=n.length;len>t;t++)"[object Array]"===Object.prototype.toString.apply(n[t])?f.push("array"):"object"==typeof n[t]||"function"==typeof n[t]?f.push("object"):f.push(typeof n[t]);if(f=f.join(" "),!l[f])throw Error("You did not use an AMD compliant interface. Please check your define() calls");for(f=l[f],t=0,len=f.length;len>t;t++)switch(e=n[t],f[t]){case"id":r=e;break;case"dependencies":o=e,i=!0;break;case"executionFunctionOrLiteral":a=e}for(this.log("AMD define(...) of "+(r?r:"anonymous")),t=0,len=o.length;len>t;t++)BUILTINS[o[t]]?s.push(o[t]):(c=RulesEngine.resolveIdentifier(o[t],this.getId()),s.push(c),Executor.isModuleCircular(c)||Executor.isModuleDefined(c)||u.push(o[t]));if(!r){if(currentExecutingAMD=Executor.getCurrentExecutingAMD(),!currentExecutingAMD)throw Error("Anonymous AMD module used, but it was not included as a dependency. This is most often caused by an anonymous define() from a script tag.");r=currentExecutingAMD.id,this.log("AMD identified anonymous module as "+r)}if(Executor.isModuleDefined(r))return this.log("AMD module "+r+" has already ran once"),undefined;if(Executor.flagModuleAsDefined(r),!i&&"function"==typeof a){var d=["(",""+a,")"].join(""),p=Analyzer.extractRequires(d);o.concat(p)}this.log("AMD define(...) of "+r+" depends on: "+o.join(", ")),this.log("AMD define(...) of "+r+" will retrieve: "+u.join(", ")),u.unshift("require"),this.require(u,proxy(function(require){this.log("AMD define(...) of "+r+" all downloads required");var e=Executor.getModule(r);e||(e=Executor.createModule(r));var t,n=this.getAllModules(s,require,e);if("function"==typeof a)t=a.apply(null,n),t&&e.setExports(t);else for(var o in a)e.exports[o]=a[o]},this))}}});RequireContext=RequireContext;var RulesEngine;(function(){function e(){n.sort(function(e,t){return t.weight-e.weight}),r=!1}function t(e){return(""+e).replace(FUNCTION_BODY_REGEX,"$1")}var n=[],r=!1,o=Fiber.extend(function(){return{init:function(){this.pointcuts={}},resolveIdentifier:function(e,t){return t||(t=""),0!==e.indexOf(".")&&(t=""),t&&(t=t.split("/"),t.pop(),t=t.join("/")),0===e.indexOf("/")?e:(e=this.computeRelativePath(e,t),0===e.indexOf("/")&&(e=e.split("/"),e.shift(),e=e.join("/")),e)},resolveUrl:function(e,t,n){var r;if(!userConfig.moduleRoot)throw Error("module root needs to be defined for resolving URLs");if(t&&!userConfig.baseDir?(t=t.replace(PROTOCOL_REGEX,PROTOCOL_EXPANDED_STRING).split("/"),t[t.length-1]&&1!==t.length&&t.pop(),t=t.join("/").replace(PROTOCOL_EXPANDED_REGEX,PROTOCOL_STRING)):t=t?userConfig.baseDir(t):userConfig.moduleRoot,ABSOLUTE_PATH_REGEX.test(e))return e;var o=this.applyRules(e);return e=o.resolved,ABSOLUTE_PATH_REGEX.test(e)?(this.pointcuts[e]=o.pointcuts,e):e.length?(t=t.replace(PROTOCOL_REGEX,PROTOCOL_EXPANDED_STRING),e=e.replace(PROTOCOL_REGEX,PROTOCOL_EXPANDED_STRING),r=/\?/.test(t)?t+e:this.computeRelativePath(e,t),r=r.replace(PROTOCOL_EXPANDED_REGEX,PROTOCOL_STRING),!n&&o.useSuffix&&userConfig.useSuffix&&!FILE_SUFFIX_REGEX.test(r)&&(r+=BASIC_FILE_SUFFIX),this.pointcuts[r]=o.pointcuts,r):(this.pointcuts.__INJECT_no_path=o.pointcuts,"")},computeRelativePath:function(e,t){var n,r,o=[];if(ABSOLUTE_PATH_REGEX.test(e))return e;n=[].concat(t.split("/"),e.split("/"));for(var i=0,a=n.length;a>i;i++)if(r=n[i],!("."===r||""===r&&i>0))if(".."===r){if(0===o.length)throw Error("could not traverse higher than highest path: "+e+", "+t);o.pop()}else o.push(r);return o=o.join("/")},getPointcuts:function(e,n){e=e||"__INJECT_no_path";var r,o,i=this.pointcuts[e]||{before:[],after:[]},a={};if(n===undefined)return i;for(o in i)if(i.hasOwnProperty(o))for(var u=0,s=i[o].length;s>u;u++)r=i[o][u],a[o]||(a[o]=[]),a[o].push(t(r));for(o in a)a.hasOwnProperty(o)&&(a[o]=a[o].join("\n"));return a},clearRules:function(){n=[],r=!1},addRule:function(e,t,o){o===undefined&&(t===undefined&&(o=e,t=null,e=null),o=t,t=null),t||(t=n.length),"string"==typeof o&&(o={path:o}),o.pointcuts||(o.pointcuts={}),(o.pointcuts.before||o.pointcuts.after)&&debugLog("RulesEngine","deprecated pointcuts in rule for "+(""+e)),r=!0,n.push({matches:o.matches||e,weight:o.weight||t,useSuffix:o.useSuffix===!1?!1:!0,last:o.last||!1,path:o.path,pointcuts:o.pointcuts||{}})},manifest:function(e){var t,n;for(t in e)n=e[t],n.matches&&(t=n.matches),this.addRule(t,n)},applyRules:function(t){r&&e();var o,i=t,a={},u=!0,s=!1;return each(n,function(e){if(!s){var t=!1;if("string"==typeof e.matches&&e.matches===i?t=!0:e.matches instanceof RegExp&&e.matches.test(i)&&(t=!0),t){"string"==typeof e.path?i=e.path:"function"==typeof e.path&&(i=e.path(i)),e.useSuffix===!1&&(u=!1);for(var n in e.pointcuts)e.pointcuts.hasOwnProperty(n)&&(a[n]||(a[n]=[]),a[n].push(e.pointcuts[n]));e.last&&(s=!0)}}}),o={resolved:i||"",useSuffix:u,pointcuts:a}}}});RulesEngine=new o})();var TreeDownloader=Fiber.extend(function(){return{init:function(e){this.callsRemaining=0,this.root=e,this.files={}},log:function(){var e=[].slice.call(arguments,0),t=this.root.getValue()?this.root.getValue().name:null;debugLog("TreeDownloader ("+t+")",e.join(" "))},reduceCallsRemaining:function(e,t){this.callsRemaining--,this.log("reduce. outstanding",this.callsRemaining),0>=this.callsRemaining&&e.call(null,t)},increaseCallsRemaining:function(e){this.callsRemaining+=e||1,this.log("increase. outstanding",this.callsRemaining)},getFiles:function(){return this.files},get:function(e){this.log("started download"),this.downloadTree(this.root,proxy(function(){e(this.root,this.getFiles())},this))},downloadTree:function(e,t){var n=e.getParent()&&e.getParent().getValue()?e.getParent().getValue().resolvedId:"",r=null,o=RulesEngine.resolveIdentifier(e.getValue().name,n);return e.getValue().path=RulesEngine.resolveUrl(o),e.getValue().resolvedId=o,e.getParent()||this.increaseCallsRemaining(),Executor.isModuleDefined(e.getValue().name)?(this.log("AMD defined module, no download required",e.getValue().name),this.reduceCallsRemaining(t,e),undefined):(this.log("requesting file",e.getValue().path),r=e.getValue().path?Communicator.get:Communicator.noop,r(e.getValue().name,e.getValue().path,proxy(function(n){this.log("download complete",e.getValue().path);var r=RulesEngine.getPointcuts(e.getValue().path),i=RulesEngine.getPointcuts(e.getValue().path,!0),a=r.afterFetch||[],u=e.getParent()?e.getParent().getValue().name:"",s=e.getParent()?e.getParent().getValue().path:"",c=new Flow;c.seq(function(e){e(null,n)});for(var l=function(t){c.seq(function(n,r,o){a[t](n,o,e.getValue().name,u,s)})},f=0,d=a.length;d>f;f++)l(f);c.seq(proxy(function(n,r,a){if("string"!=typeof a&&"object"==typeof a)return Executor.assignModule(u,o,e.getValue().path,a),this.reduceCallsRemaining(t,e);if(a===undefined)return this.reduceCallsRemaining(t,e);var s=i.before?[i.before,"\n"].join(""):"",c=i.after?[i.after,"\n"].join(""):"";a=[s,a,c].join("");var l,f=e,p={};for(p[e.getValue().name]=!0,f=f.getParent();f&&f.getValue();)l=f.getValue().name,p[l]&&(this.log("circular reference found",e.getValue().name),e.flagCircular(),Executor.flagModuleAsCircular(e.getValue().name)),p[l]=!0,f=f.getParent();if(!e.isCircular()&&a){this.files[e.getValue().name]=a;var h,g,m,v,_=Analyzer.extractRequires(a),E=_,x=[],y=proxy(function(){this.reduceCallsRemaining(t,e)},this);for(v=0,d=E.length;d>v;v++)g=RulesEngine.resolveIdentifier(E[v],e.getValue().resolvedId),Executor.isModuleDefined(g)||Executor.isModuleDefined(E[v])||x.push(E[v]);for(this.log("dependencies ("+x.length+"):"+x.join(", ")),x.length&&this.increaseCallsRemaining(x.length),v=0,d=x.length;d>v;v++)g=_.amd?RulesEngine.resolveIdentifier(x[v],e.getValue().resolvedId):x[v],m="",h=TreeDownloader.createNode(g,m),e.addChild(h),this.downloadTree(h,y)}a===!1&&(e.getValue().failed=!0),this.reduceCallsRemaining(t,e)},this))},this)),undefined)}}});TreeDownloader.createNode=function(e,t){var n=new TreeNode({name:e,path:t,failed:!1});return n};var TreeNode=Fiber.extend(function(){return{init:function(e){this.value=e,this.children=[],this.left=null,this.right=null,this.parent=null,this.isCircularNode=!1},getValue:function(){return this.value},flagCircular:function(){this.isCircularNode=!0},isCircular:function(){return this.isCircularNode},addChild:function(e){var t;return this.children.length>0&&(t=this.children[this.children.length-1],e.setLeft(t),t.setRight(e)),this.children.push(e),e.setParent(this)},getChildren:function(){return this.children},setLeft:function(e){return this.left=e,this.left},getLeft:function(){return this.left},setRight:function(e){return this.right=e,this.right},getRight:function(){return this.right},setParent:function(e){return this.parent=e,this.parent},getParent:function(){return this.parent},postOrder:function(e){for(var t=this,n=null,r=[];t;)if(t.getChildren().length>0&&"up"!==n)n="down",t=t.getChildren()[0];else if(r.push(t.getValue()),e&&e(t),t.getRight())n="right",t=t.getRight();else{if(!t.getParent())return r;n="up",t=t.getParent()}}}});TreeNode=TreeNode;var globalRequire=new RequireContext;context.Inject={INTERNAL:{defineExecutingModuleAs:proxy(Executor.defineExecutingModuleAs,Executor),undefineExecutingModule:proxy(Executor.undefineExecutingModule,Executor),createModule:proxy(Executor.createModule,Executor),setModuleExports:function(){},execute:{},modules:{},execs:{},globalRequire:globalRequire,createRequire:proxy(InjectCore.createRequire,InjectCore),createDefine:proxy(InjectCore.createDefine,InjectCore)},easyXDM:easyXDM,reset:proxy(InjectCore.reset,InjectCore),enableDebug:function(){InjectCore.enableDebug.apply(this,arguments)},enableAMDPlugins:function(){RulesEngine.addRule(/^.+?\!.+$/,{last:!0,useSuffix:!1,path:function(){return""},pointcuts:{afterFetch:function(e,t,n,r,o){var i=n.split("!"),a=RulesEngine.resolveIdentifier(i[0],r),u=RulesEngine.resolveUrl(a,o),s=i[1],c=InjectCore.createRequire(n,o);c.ensure([a],function(t){var n=t(a),o=InjectCore.createRequire(a,u),i=function(e){return RulesEngine.resolveIdentifier(e,r)},c=n.normalize?n.normalize(s,i):i(s),l=function(t){"string"==typeof t&&(t=['module.exports = decodeURIComponent("',encodeURIComponent(t),'");'].join("")),e(null,t)};l.fromText=function(t,n){n||(n=t,t=null),Executor.runModule(t,n,u),e(null,n)},n.load(c,o,l,{})})}}})},setModuleRoot:function(){InjectCore.setModuleRoot.apply(this,arguments)},setExpires:function(){InjectCore.setExpires.apply(this,arguments)},setCacheKey:function(){InjectCore.setCacheKey.apply(this,arguments)},setCrossDomain:function(){InjectCore.setCrossDomain.apply(this,arguments)},setUseSuffix:function(e){InjectCore.setUseSuffix(e)},clearCache:proxy(InjectCore.clearCache,InjectCore),manifest:function(){RulesEngine.manifest.apply(RulesEngine,arguments)},addRule:function(){RulesEngine.addRule.apply(RulesEngine,arguments)},plugin:function(){var e=[].slice.call(arguments,0);e.push(context.Inject),InjectCore.plugin.apply(InjectCore,e)},require:InjectCore.createRequire(),define:InjectCore.createDefine(),version:"undefined"},context.require=context.Inject.INTERNAL.createRequire(),context.define=context.Inject.INTERNAL.createDefine(),context.Inject.version="v0.4.2"}(this);(function(){var c=document.createElement("style");
c.type="text/css";
var d=false;
var b=(c.styleSheet)?true:false;
function a(e){this.txt=e
}a.prototype.attach=function(){Inject.plugins.css.addStyles(this.txt)
};
Inject.plugin("css",{useSuffix:false,path:function(e){return e.replace(/^css!\s*/,"")
},pointcuts:{afterFetch:function(e,f){e(null,["",['var cssText = decodeURIComponent("',encodeURIComponent(f),'");'].join(""),"module.setExports(Inject.plugins.css.create(cssText))",""].join("\n"))
}}},{create:function(e){return new a(e)
},addStyles:function(e){if(b){c.styleSheet.cssText=[c.innerHTML,e].join("\n")
}else{c.appendChild(document.createTextNode(e))
}if(!d){d=true;
document.getElementsByTagName("head")[0].appendChild(c)
}}})
})();
(function(){Inject.plugin("text",{useSuffix:false,path:function(a){return a.replace(/^text!\s*/,"")
},pointcuts:{afterFetch:function(a,b){a(null,["",'var text = "',encodeURIComponent(b),'";',"module.setExports(decodeURIComponent(text));",""].join(""))
}}},{})
})();
(function(){Inject.plugin("json",{useSuffix:false,path:function(a){return a.replace(/^json!\s*/,"")
},pointcuts:{afterFetch:function(a,b){a(null,["",'var json = "',encodeURIComponent(b),'";',"module.setExports(JSON.parse(decodeURIComponent(json)));",""].join(""))
}}},{})
})();(function(){Inject.setModuleRoot(LI.JSContentBasePath+"&f=");
Inject.setUseSuffix(false);
if(!LI.staticUrlHashEnabled){Inject.setExpires(0)
}Inject.setCrossDomain({relayFile:LI.injectRelayHtmlUrl,relaySwf:LI.injectRelaySwfUrl});
Inject.addRule(/.*$/,{path:function(a){if(a.indexOf("css!")===0){a=a.replace("css!","");
a=LI.CSSContentBasePath+"&f="+a+"_"+LI.i18n.getLocale().value;
return"css!"+a
}return a
}})
}());(function(){var n=this,t=n._,r={},e=Array.prototype,u=Object.prototype,i=Function.prototype,a=e.push,o=e.slice,c=e.concat,l=u.toString,f=u.hasOwnProperty,s=e.forEach,p=e.map,h=e.reduce,v=e.reduceRight,d=e.filter,g=e.every,m=e.some,y=e.indexOf,b=e.lastIndexOf,x=Array.isArray,_=Object.keys,j=i.bind,w=function(n){return n instanceof w?n:this instanceof w?(this._wrapped=n,void 0):new w(n)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=w),exports._=w):n._=w,w.VERSION="1.4.4";var A=w.each=w.forEach=function(n,t,e){if(null!=n)if(s&&n.forEach===s)n.forEach(t,e);else if(n.length===+n.length){for(var u=0,i=n.length;i>u;u++)if(t.call(e,n[u],u,n)===r)return}else for(var a in n)if(w.has(n,a)&&t.call(e,n[a],a,n)===r)return};w.map=w.collect=function(n,t,r){var e=[];return null==n?e:p&&n.map===p?n.map(t,r):(A(n,function(n,u,i){e[e.length]=t.call(r,n,u,i)}),e)};var O="Reduce of empty array with no initial value";w.reduce=w.foldl=w.inject=function(n,t,r,e){var u=arguments.length>2;if(null==n&&(n=[]),h&&n.reduce===h)return e&&(t=w.bind(t,e)),u?n.reduce(t,r):n.reduce(t);if(A(n,function(n,i,a){u?r=t.call(e,r,n,i,a):(r=n,u=!0)}),!u)throw new TypeError(O);return r},w.reduceRight=w.foldr=function(n,t,r,e){var u=arguments.length>2;if(null==n&&(n=[]),v&&n.reduceRight===v)return e&&(t=w.bind(t,e)),u?n.reduceRight(t,r):n.reduceRight(t);var i=n.length;if(i!==+i){var a=w.keys(n);i=a.length}if(A(n,function(o,c,l){c=a?a[--i]:--i,u?r=t.call(e,r,n[c],c,l):(r=n[c],u=!0)}),!u)throw new TypeError(O);return r},w.find=w.detect=function(n,t,r){var e;return E(n,function(n,u,i){return t.call(r,n,u,i)?(e=n,!0):void 0}),e},w.filter=w.select=function(n,t,r){var e=[];return null==n?e:d&&n.filter===d?n.filter(t,r):(A(n,function(n,u,i){t.call(r,n,u,i)&&(e[e.length]=n)}),e)},w.reject=function(n,t,r){return w.filter(n,function(n,e,u){return!t.call(r,n,e,u)},r)},w.every=w.all=function(n,t,e){t||(t=w.identity);var u=!0;return null==n?u:g&&n.every===g?n.every(t,e):(A(n,function(n,i,a){return(u=u&&t.call(e,n,i,a))?void 0:r}),!!u)};var E=w.some=w.any=function(n,t,e){t||(t=w.identity);var u=!1;return null==n?u:m&&n.some===m?n.some(t,e):(A(n,function(n,i,a){return u||(u=t.call(e,n,i,a))?r:void 0}),!!u)};w.contains=w.include=function(n,t){return null==n?!1:y&&n.indexOf===y?n.indexOf(t)!=-1:E(n,function(n){return n===t})},w.invoke=function(n,t){var r=o.call(arguments,2),e=w.isFunction(t);return w.map(n,function(n){return(e?t:n[t]).apply(n,r)})},w.pluck=function(n,t){return w.map(n,function(n){return n[t]})},w.where=function(n,t,r){return w.isEmpty(t)?r?null:[]:w[r?"find":"filter"](n,function(n){for(var r in t)if(t[r]!==n[r])return!1;return!0})},w.findWhere=function(n,t){return w.where(n,t,!0)},w.max=function(n,t,r){if(!t&&w.isArray(n)&&n[0]===+n[0]&&65535>n.length)return Math.max.apply(Math,n);if(!t&&w.isEmpty(n))return-1/0;var e={computed:-1/0,value:-1/0};return A(n,function(n,u,i){var a=t?t.call(r,n,u,i):n;a>=e.computed&&(e={value:n,computed:a})}),e.value},w.min=function(n,t,r){if(!t&&w.isArray(n)&&n[0]===+n[0]&&65535>n.length)return Math.min.apply(Math,n);if(!t&&w.isEmpty(n))return 1/0;var e={computed:1/0,value:1/0};return A(n,function(n,u,i){var a=t?t.call(r,n,u,i):n;e.computed>a&&(e={value:n,computed:a})}),e.value},w.shuffle=function(n){var t,r=0,e=[];return A(n,function(n){t=w.random(r++),e[r-1]=e[t],e[t]=n}),e};var k=function(n){return w.isFunction(n)?n:function(t){return t[n]}};w.sortBy=function(n,t,r){var e=k(t);return w.pluck(w.map(n,function(n,t,u){return{value:n,index:t,criteria:e.call(r,n,t,u)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(r>e||r===void 0)return 1;if(e>r||e===void 0)return-1}return n.index<t.index?-1:1}),"value")};var F=function(n,t,r,e){var u={},i=k(t||w.identity);return A(n,function(t,a){var o=i.call(r,t,a,n);e(u,o,t)}),u};w.groupBy=function(n,t,r){return F(n,t,r,function(n,t,r){(w.has(n,t)?n[t]:n[t]=[]).push(r)})},w.countBy=function(n,t,r){return F(n,t,r,function(n,t){w.has(n,t)||(n[t]=0),n[t]++})},w.sortedIndex=function(n,t,r,e){r=null==r?w.identity:k(r);for(var u=r.call(e,t),i=0,a=n.length;a>i;){var o=i+a>>>1;u>r.call(e,n[o])?i=o+1:a=o}return i},w.toArray=function(n){return n?w.isArray(n)?o.call(n):n.length===+n.length?w.map(n,w.identity):w.values(n):[]},w.size=function(n){return null==n?0:n.length===+n.length?n.length:w.keys(n).length},w.first=w.head=w.take=function(n,t,r){return null==n?void 0:null==t||r?n[0]:o.call(n,0,t)},w.initial=function(n,t,r){return o.call(n,0,n.length-(null==t||r?1:t))},w.last=function(n,t,r){return null==n?void 0:null==t||r?n[n.length-1]:o.call(n,Math.max(n.length-t,0))},w.rest=w.tail=w.drop=function(n,t,r){return o.call(n,null==t||r?1:t)},w.compact=function(n){return w.filter(n,w.identity)};var R=function(n,t,r){return A(n,function(n){w.isArray(n)?t?a.apply(r,n):R(n,t,r):r.push(n)}),r};w.flatten=function(n,t){return R(n,t,[])},w.without=function(n){return w.difference(n,o.call(arguments,1))},w.uniq=w.unique=function(n,t,r,e){w.isFunction(t)&&(e=r,r=t,t=!1);var u=r?w.map(n,r,e):n,i=[],a=[];return A(u,function(r,e){(t?e&&a[a.length-1]===r:w.contains(a,r))||(a.push(r),i.push(n[e]))}),i},w.union=function(){return w.uniq(c.apply(e,arguments))},w.intersection=function(n){var t=o.call(arguments,1);return w.filter(w.uniq(n),function(n){return w.every(t,function(t){return w.indexOf(t,n)>=0})})},w.difference=function(n){var t=c.apply(e,o.call(arguments,1));return w.filter(n,function(n){return!w.contains(t,n)})},w.zip=function(){for(var n=o.call(arguments),t=w.max(w.pluck(n,"length")),r=Array(t),e=0;t>e;e++)r[e]=w.pluck(n,""+e);return r},w.object=function(n,t){if(null==n)return{};for(var r={},e=0,u=n.length;u>e;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},w.indexOf=function(n,t,r){if(null==n)return-1;var e=0,u=n.length;if(r){if("number"!=typeof r)return e=w.sortedIndex(n,t),n[e]===t?e:-1;e=0>r?Math.max(0,u+r):r}if(y&&n.indexOf===y)return n.indexOf(t,r);for(;u>e;e++)if(n[e]===t)return e;return-1},w.lastIndexOf=function(n,t,r){if(null==n)return-1;var e=null!=r;if(b&&n.lastIndexOf===b)return e?n.lastIndexOf(t,r):n.lastIndexOf(t);for(var u=e?r:n.length;u--;)if(n[u]===t)return u;return-1},w.range=function(n,t,r){1>=arguments.length&&(t=n||0,n=0),r=arguments[2]||1;for(var e=Math.max(Math.ceil((t-n)/r),0),u=0,i=Array(e);e>u;)i[u++]=n,n+=r;return i},w.bind=function(n,t){if(n.bind===j&&j)return j.apply(n,o.call(arguments,1));var r=o.call(arguments,2);return function(){return n.apply(t,r.concat(o.call(arguments)))}},w.partial=function(n){var t=o.call(arguments,1);return function(){return n.apply(this,t.concat(o.call(arguments)))}},w.bindAll=function(n){var t=o.call(arguments,1);return 0===t.length&&(t=w.functions(n)),A(t,function(t){n[t]=w.bind(n[t],n)}),n},w.memoize=function(n,t){var r={};return t||(t=w.identity),function(){var e=t.apply(this,arguments);return w.has(r,e)?r[e]:r[e]=n.apply(this,arguments)}},w.delay=function(n,t){var r=o.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)},w.defer=function(n){return w.delay.apply(w,[n,1].concat(o.call(arguments,1)))},w.throttle=function(n,t){var r,e,u,i,a=0,o=function(){a=new Date,u=null,i=n.apply(r,e)};return function(){var c=new Date,l=t-(c-a);return r=this,e=arguments,0>=l?(clearTimeout(u),u=null,a=c,i=n.apply(r,e)):u||(u=setTimeout(o,l)),i}},w.debounce=function(n,t,r){var e,u;return function(){var i=this,a=arguments,o=function(){e=null,r||(u=n.apply(i,a))},c=r&&!e;return clearTimeout(e),e=setTimeout(o,t),c&&(u=n.apply(i,a)),u}},w.once=function(n){var t,r=!1;return function(){return r?t:(r=!0,t=n.apply(this,arguments),n=null,t)}},w.wrap=function(n,t){return function(){var r=[n];return a.apply(r,arguments),t.apply(this,r)}},w.compose=function(){var n=arguments;return function(){for(var t=arguments,r=n.length-1;r>=0;r--)t=[n[r].apply(this,t)];return t[0]}},w.after=function(n,t){return 0>=n?t():function(){return 1>--n?t.apply(this,arguments):void 0}},w.keys=_||function(n){if(n!==Object(n))throw new TypeError("Invalid object");var t=[];for(var r in n)w.has(n,r)&&(t[t.length]=r);return t},w.values=function(n){var t=[];for(var r in n)w.has(n,r)&&t.push(n[r]);return t},w.pairs=function(n){var t=[];for(var r in n)w.has(n,r)&&t.push([r,n[r]]);return t},w.invert=function(n){var t={};for(var r in n)w.has(n,r)&&(t[n[r]]=r);return t},w.functions=w.methods=function(n){var t=[];for(var r in n)w.isFunction(n[r])&&t.push(r);return t.sort()},w.extend=function(n){return A(o.call(arguments,1),function(t){if(t)for(var r in t)n[r]=t[r]}),n},w.pick=function(n){var t={},r=c.apply(e,o.call(arguments,1));return A(r,function(r){r in n&&(t[r]=n[r])}),t},w.omit=function(n){var t={},r=c.apply(e,o.call(arguments,1));for(var u in n)w.contains(r,u)||(t[u]=n[u]);return t},w.defaults=function(n){return A(o.call(arguments,1),function(t){if(t)for(var r in t)null==n[r]&&(n[r]=t[r])}),n},w.clone=function(n){return w.isObject(n)?w.isArray(n)?n.slice():w.extend({},n):n},w.tap=function(n,t){return t(n),n};var I=function(n,t,r,e){if(n===t)return 0!==n||1/n==1/t;if(null==n||null==t)return n===t;n instanceof w&&(n=n._wrapped),t instanceof w&&(t=t._wrapped);var u=l.call(n);if(u!=l.call(t))return!1;switch(u){case"[object String]":return n==t+"";case"[object Number]":return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case"[object Date]":case"[object Boolean]":return+n==+t;case"[object RegExp]":return n.source==t.source&&n.global==t.global&&n.multiline==t.multiline&&n.ignoreCase==t.ignoreCase}if("object"!=typeof n||"object"!=typeof t)return!1;for(var i=r.length;i--;)if(r[i]==n)return e[i]==t;r.push(n),e.push(t);var a=0,o=!0;if("[object Array]"==u){if(a=n.length,o=a==t.length)for(;a--&&(o=I(n[a],t[a],r,e)););}else{var c=n.constructor,f=t.constructor;if(c!==f&&!(w.isFunction(c)&&c instanceof c&&w.isFunction(f)&&f instanceof f))return!1;for(var s in n)if(w.has(n,s)&&(a++,!(o=w.has(t,s)&&I(n[s],t[s],r,e))))break;if(o){for(s in t)if(w.has(t,s)&&!a--)break;o=!a}}return r.pop(),e.pop(),o};w.isEqual=function(n,t){return I(n,t,[],[])},w.isEmpty=function(n){if(null==n)return!0;if(w.isArray(n)||w.isString(n))return 0===n.length;for(var t in n)if(w.has(n,t))return!1;return!0},w.isElement=function(n){return!(!n||1!==n.nodeType)},w.isArray=x||function(n){return"[object Array]"==l.call(n)},w.isObject=function(n){return n===Object(n)},A(["Arguments","Function","String","Number","Date","RegExp"],function(n){w["is"+n]=function(t){return l.call(t)=="[object "+n+"]"}}),w.isArguments(arguments)||(w.isArguments=function(n){return!(!n||!w.has(n,"callee"))}),"function"!=typeof/./&&(w.isFunction=function(n){return"function"==typeof n}),w.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))},w.isNaN=function(n){return w.isNumber(n)&&n!=+n},w.isBoolean=function(n){return n===!0||n===!1||"[object Boolean]"==l.call(n)},w.isNull=function(n){return null===n},w.isUndefined=function(n){return n===void 0},w.has=function(n,t){return f.call(n,t)},w.noConflict=function(){return n._=t,this},w.identity=function(n){return n},w.times=function(n,t,r){for(var e=Array(n),u=0;n>u;u++)e[u]=t.call(r,u);return e},w.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))};var M={escape:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;"}};M.unescape=w.invert(M.escape);var S={escape:RegExp("["+w.keys(M.escape).join("")+"]","g"),unescape:RegExp("("+w.keys(M.unescape).join("|")+")","g")};w.each(["escape","unescape"],function(n){w[n]=function(t){return null==t?"":(""+t).replace(S[n],function(t){return M[n][t]})}}),w.result=function(n,t){if(null==n)return null;var r=n[t];return w.isFunction(r)?r.call(n):r},w.mixin=function(n){A(w.functions(n),function(t){var r=w[t]=n[t];w.prototype[t]=function(){var n=[this._wrapped];return a.apply(n,arguments),D.call(this,r.apply(w,n))}})};var N=0;w.uniqueId=function(n){var t=++N+"";return n?n+t:t},w.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var T=/(.)^/,q={"'":"'","\\":"\\","\r":"r","\n":"n","	":"t","\u2028":"u2028","\u2029":"u2029"},B=/\\|'|\r|\n|\t|\u2028|\u2029/g;w.template=function(n,t,r){var e;r=w.defaults({},r,w.templateSettings);var u=RegExp([(r.escape||T).source,(r.interpolate||T).source,(r.evaluate||T).source].join("|")+"|$","g"),i=0,a="__p+='";n.replace(u,function(t,r,e,u,o){return a+=n.slice(i,o).replace(B,function(n){return"\\"+q[n]}),r&&(a+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'"),e&&(a+="'+\n((__t=("+e+"))==null?'':__t)+\n'"),u&&(a+="';\n"+u+"\n__p+='"),i=o+t.length,t}),a+="';\n",r.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{e=Function(r.variable||"obj","_",a)}catch(o){throw o.source=a,o}if(t)return e(t,w);var c=function(n){return e.call(this,n,w)};return c.source="function("+(r.variable||"obj")+"){\n"+a+"}",c},w.chain=function(n){return w(n).chain()};var D=function(n){return this._chain?w(n).chain():n};w.mixin(w),A(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var t=e[n];w.prototype[n]=function(){var r=this._wrapped;return t.apply(r,arguments),"shift"!=n&&"splice"!=n||0!==r.length||delete r[0],D.call(this,r)}}),A(["concat","join","slice"],function(n){var t=e[n];w.prototype[n]=function(){return D.call(this,t.apply(this._wrapped,arguments))}}),w.extend(w.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}})}).call(this);
(function(){LI.define("Events");
var d=[],f=d.push,g=d.slice,b=d.splice,i;
if(window.Backbone&&window.Backbone.Events){i=Backbone.Events
}else{i={on:function(j,m,l){if(!e(this,"on",j,[m,l])||!m){return this
}this._events=this._events||{};
var k=this._events[j]||(this._events[j]=[]);
k.push({callback:m,context:l,ctx:l||this});
return this
},once:function(k,n,l){if(!e(this,"once",k,[n,l])||!n){return this
}var j=this;
var m=_.once(function(){j.off(k,m);
n.apply(this,arguments)
});
m._callback=n;
return this.on(k,m,l)
},off:function(m,v,n){var t,u,w,s,r,o,q,p;
if(!this._events||!e(this,"off",m,[v,n])){return this
}if(!m&&!v&&!n){this._events={};
return this
}s=m?[m]:_.keys(this._events);
for(r=0,o=s.length;
r<o;
r++){m=s[r];
w=this._events[m];
if(w){this._events[m]=t=[];
if(v||n){for(q=0,p=w.length;
q<p;
q++){u=w[q];
if((v&&v!==u.callback&&v!==u.callback._callback)||(n&&n!==u.context)){t.push(u)
}}}if(!t.length){delete this._events[m]
}}}return this
},trigger:function(l){if(!this._events){return this
}var k=g.call(arguments,1);
if(!e(this,"trigger",l,k)){return this
}var m=this._events[l];
var j=this._events.all;
if(m){c(m,k)
}if(j){c(j,arguments)
}return this
},stopListening:function(m,j,o){var k=this._listeners;
if(!k){return this
}var l=!j&&!o;
if(typeof j==="object"){o=this
}if(m){(k={})[m._listenerId]=m
}for(var n in k){k[n].off(j,o,this);
if(l){delete this._listeners[n]
}}return this
}};
var h=/\s+/;
var e=function(r,p,k,o){if(!k){return true
}if(typeof k==="object"){for(var n in k){r[p].apply(r,[n,k[n]].concat(o))
}return false
}if(h.test(k)){var q=k.split(h);
for(var m=0,j=q.length;
m<j;
m++){r[p].apply(r,[q[m]].concat(o))
}return false
}return true
};
var c=function(p,n){var q,o=-1,m=p.length,k=n[0],j=n[1],r=n[2];
switch(n.length){case 0:while(++o<m){(q=p[o]).callback.call(q.ctx)
}return;
case 1:while(++o<m){(q=p[o]).callback.call(q.ctx,k)
}return;
case 2:while(++o<m){(q=p[o]).callback.call(q.ctx,k,j)
}return;
case 3:while(++o<m){(q=p[o]).callback.call(q.ctx,k,j,r)
}return;
default:while(++o<m){(q=p[o]).callback.apply(q.ctx,n)
}}};
var a={listenTo:"on",listenToOnce:"once"};
_.each(a,function(j,k){i[k]=function(n,l,p){var m=this._listeners||(this._listeners={});
var o=n._listenerId||(n._listenerId=_.uniqueId("l"));
m[o]=n;
if(typeof l==="object"){p=this
}n[j](l,p,this);
return this
}
});
_.each(_.keys(i),function(j){i[j]=_.bind(i[j],i)
})
}i.bind=i.on;
i.unbind=i.off;
i.fire=i.trigger;
LI.Events=i
}());LI.define("BaseControl");
LI.BaseControl=Fiber.extend(function(){return{init:function(b,a){var e=this,d=new $.Deferred();
var c=function(g){var f=_.functions(g);
_.each(f,function(h){g[h]=_.bind(g[h],g)
})
};
this._$el=$(b);
this._observableEmitter=$({});
this._state={};
this._config=this._config||a||{};
this.isReady=d.promise();
this.beforeInit();
this.beforeDecoration();
this.decorate().then(function(){c(e)
}).then(function(){e.afterDecoration()
}).then(function(){e.beforeLoad()
}).then(function(){if(e._config.dependencies){return e.loadDependencies()
}}).then(function(f){e.afterLoad(f)
}).then(function(){e.attachEventListeners()
}).then(function(){e.afterInit()
}).then(function(){d.resolve()
})
},destroy:function(){this.detachEventListeners()
},state:function(e,k,b){var g=[].slice.call(arguments,0),a,j={},h=[],c=null;
if(typeof g[1]==="undefined"){if(typeof g[0]==="undefined"){for(a in this._state){if(this._state.hasOwnProperty(a)){j[a]=this._state[a].value
}}return j
}else{if(typeof g[0]==="string"){if(this._state.hasOwnProperty(g[0])){return this._state[g[0]].value
}else{return b
}}}}if(typeof g[0]==="object"){for(a in g[0]){if(g[0].hasOwnProperty(a)){if(g[1]||!this._state.hasOwnProperty(a)){this._setState(a,g[0][a]);
h.push(a)
}}}}if(typeof g[0]==="string"){this._setState(g[0],g[1]);
h.push(g[0])
}for(var d=0,f=h.length;
d<f;
d++){c=this._state[h[d]];
this._observableEmitter.trigger(h[d],{newValue:c.value,oldValue:c.lastValue,revision:c.rev})
}},_setState:function(a,b){if(typeof this._state[a]==="undefined"){this._state[a]={rev:0,value:b,lastValue:undefined}
}else{this._state[a].rev++;
this._state[a].lastValue=this._state[a].value;
this._state[a].value=b
}},observe:function(a,b){this._observableEmitter.on(a,b);
return this
},unobserve:function(a,b){this._observableEmitter.off(a,b);
return this
},beforeInit:function(){},beforeDecoration:function(){},decorate:function(){if(this._config.decorators){return this.loadDependencies(this._config.decorators).then(_.bind(this._applyDecorators,this))
}else{return $.Deferred().resolve().promise()
}},_applyDecorators:function(a){_.each(this._config.decorators,function(b){if(typeof a(b)!=="function"){throw new TypeError("Decorator ("+b+") is not a function")
}Fiber.decorate(this,a(b))
},this)
},afterDecoration:function(){},beforeLoad:function(){},afterLoad:function(){},attachEventListeners:function(){},detachEventListeners:function(){},afterInit:function(){},onResolve:function(){},before:function(c,a){var b=this;
this.isReady.then(function(){b[c]=_.wrap(b[c],function d(f){var e=Array.prototype.slice.apply(arguments,[1]);
if(typeof a==="string"){b[a].apply(b,e)
}else{a.apply(b,e)
}return f.apply(b,e)
})
})
},after:function(c,b){var a=this;
this.isReady.then(function(){a[c]=_.wrap(a[c],function d(g){var f=Array.prototype.slice.apply(arguments,[1]),e=g.apply(a,f);
if(typeof b==="string"){a[b].apply(a,f)
}else{b.apply(a,f)
}return e
})
})
},clobber:function(c,a){var b=this;
this.isReady.then(function(){b[c]=_.bind(a,b)
})
},loadDependencies:function(a){var b=new $.Deferred();
a=a||this._config.dependencies||[];
require.ensure(a,function(c){b.resolve(c)
});
return b.promise()
},loadCss:function(b){var c=this,a=new $.Deferred();
require.ensure(b,function(d){_.each(b,function(e){d(e).attach()
});
a.resolve()
});
return a.promise()
}}
});/*! talkin 1.3.1 */
window.LI||(window.LI={}),LI.TalkIn=LI.Talkin||function(n){"use strict";function t(){var n=w.domain.split(".").slice(-2).join(".");return w.domain!==n?(w.domain=n,!0):!1}function r(n){for(var t=v.length,r=p(n);t--;)if(v[t]===r)return!0;return!1}function e(){n.addEventListener?(s=function(n,t,r){n.addEventListener(t,r,!1)},l=function(n,t,r){n.removeEventListener(t,r)}):n.attachEvent&&(s=function(n,t,r){n.attachEvent("on"+t,r)},l=function(n,t,r){n.detachEvent("on"+t,r)})}function i(n){return k.call(n)===g}function o(n,t){var r,e,f;if(i(n))for(r in n)o(r,n[r]);else r=n.split("."),e=r[0],f=a.hasOwnProperty(e)?a[e]:null,r.length>1?(e=r[1],f.hasOwnProperty(e)&&f[e](t)):f(t)}function f(t){var e,i=t.data;if(r(t.origin))if(L)if(i===h)a=LI.TalkIn.endpoints,t.source.postMessage(h,t.origin);else try{e=JSON.parse(i),o(e)}catch(s){}else if(!u&&i===h)for(u=t.origin,l(n,d,f),c&&(n.clearInterval(c),c=null);N.length;)LI.TalkIn.send(N.pop())}var c,a,u,s,l,h="__READY__",d="message",g="[object Object]",v=["f640W4X7ZDRDfPdwPRkQXzbNt2Q","+lus2RBkJ7GswWZiaRZwr2YCWSE","w/Cq9ectx60qdy04zfYE9z05C/c","Nv8UVtK4cvfsZjnR37q4cl6FELo","zVp+SXlpBxy9ceDhF/QhJIMZ/8w","ipnp/j05RxfRo66icU7vJlMRYwk","nsN0FYX3oxPXHFo7F61hk3BLmgw","qOB2HzNYRUAtmrFigAFhhIdKZX8","ft6Qf4NlUr+igYY6o7gL3U9PAzA","r/LByGpOBknQftv1+tpZONO+1e8","UN2TmDNo1h5c+Bty9q7GqXYZ94Y","ilgaq1nh7Zup+ZAk5SgZPeLQKAE","j/jyhrBSfizuVEh/YcNna4pJlBM","4rlVmy8S5DGns8N9yQ1S1zxQfyg","oYU1rheOj0XNs4hgDNyodd2YW8w","wC3CbUDuIqAJmcb/jGre+Rlb4T4","+3DJhQPlY5rBArZfhlWss5X0P+I","JDYCNYT++v4sSG+FZL1+BAkzkGs","ue5T9aOY34YF+XnDD5Drnf5MOMg","Mfoz2r9CRt9122j7jy7TL5Fs5Dg"],p=function(){function n(n){return c(t(f(n),n.length*u))}function t(n,t){var f,c,a,u,s,l,h,d,g=[80],v=1732584193,p=-271733879,w=-1732584194,I=271733878,L=-1009589776;for(n[t>>5]|=128<<24-t%32,n[(t+64>>9<<4)+15]=t,l=0;n.length>l;l+=16){for(f=v,c=p,a=w,u=I,s=L,h=0;80>h;h++)g[h]=16>h?n[l+h]:o(g[h-3]^g[h-8]^g[h-14]^g[h-16],1),d=i(i(o(v,5),r(h,p,w,I)),i(i(L,g[h]),e(h))),L=I,I=w,w=o(p,30),p=v,v=d;v=i(v,f),p=i(p,c),w=i(w,a),I=i(I,u),L=i(L,s)}return[v,p,w,I,L]}function r(n,t,r,e){return 20>n?t&r|~t&e:40>n?t^r^e:60>n?t&r|t&e|r&e:t^r^e}function e(n){return 20>n?1518500249:40>n?1859775393:60>n?-1894007588:-899497514}function i(n,t){var r=(65535&n)+(65535&t),e=(n>>16)+(t>>16)+(r>>16);return e<<16|65535&r}function o(n,t){return n<<t|n>>>32-t}function f(n){var t,r=[],e=(1<<u)-1;for(t=0;n.length*u>t;t+=u)r[t>>5]|=(n.charCodeAt(t/u)&e)<<32-u-t%32;return r}function c(n){var t,r,e,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o="";for(r=0;4*n.length>r;r+=3)for(t=(255&n[r>>2]>>8*(3-r%4))<<16|(255&n[r+1>>2]>>8*(3-(r+1)%4))<<8|255&n[r+2>>2]>>8*(3-(r+2)%4),e=0;4>e;e++)o+=8*r+6*e>32*n.length?a:i.charAt(63&t>>6*(3-e));return o}var a="",u=8;return function(t){return n(t)}}(),w=n.document,I=n.top,L=n.window===I,Y=void 0!==n.webkitURL,y=void 0!==n.postMessage,k=Object.prototype.toString,N=[];if(e(),L)y&&s(n,d,f);else{if(!Y)try{a=I.LI.TalkIn.endpoints}catch(D){try{t()&&(a=I.LI.TalkIn.endpoints)}catch(O){}}y&&!a&&s(n,d,f)}return{endpoints:{},register:function(n,t){var r,e,o=this.endpoints;if(n&&t&&t instanceof Object)if(o[n]&&i(t)){r=o[n];for(e in t)r[e]=t[e]}else o[n]=t},VERSION:"1.3.1"}}(window);LI.TalkIn.register("ads",function(t){"use strict";function e(t){var e;if(!t)throw Error("ExpandableContainer requires a config object. Refer to the API for details.");return e=this.getOrSetCache(t.containerId),e.expandData?e:t.width||t.height||t.top?e.configure(t):void 0}var n=t.document;return e.prototype={UNIT:"px",MIN_ZINDEX:5,MAX_ZINDEX:1e4,ATTRIBUTES:["left","width","height","top"],_cache:{},getOrSetCache:function(t){var e=this._cache,n=e[t];return n?n:(e[t]=this,this)},configure:function(e){var n=this.container=this.getElement(e.containerId),i=this.containerStyle=n.style,a=e.delta,o={},r={};return o.width=n.offsetWidth,o.height=n.offsetHeight,r.width=+((a&&e.width?o.width:0)+(e.width||o.width||n.width)),r.height=+((a&&e.height?o.height:0)+(e.height||o.height||n.height)),e.top&&(o.top=n.offsetTop,r.top=+((a?o.top:0)+e.top),r.height+=-1*r.top),e.push||(this.detach(o),o.left=parseInt(i.left,10),r.left=o.left-(r.width-o.width)),this.animation=t.$&&t.$().animate&&e.animate,this.setStateData(o,r),e.forget&&(this.forget=!0),this.parentZIndex=this.getStyle("z-index",n.parentNode),this},setStateData:function(t,e){for(var n,i=this.UNIT,a=this.ATTRIBUTES.slice(0);a.length;)n=a.pop(),t[n]===e[n]?(delete t[n],delete e[n]):(t[n]+=i,e[n]+=i);t.zIndex=this.MIN_ZINDEX,e.zIndex=this.MAX_ZINDEX,this.collapseData=t,this.expandData=e},getElement:function(t){return isNaN(t)?n.getElementById(t):this.getElementByTileId(t)},getElementByTileId:function(t){for(var e,i,a=/(;tile|&ti)=\d/g,o=n.getElementsByTagName("iframe"),r=o.length;r--;)if(e=o[r],i=e.src.match(a),i&&i[0].slice(i[0].indexOf("=")+1)===t)return e;return null},getStyle:function(e,n){if(n=n||this.container,n&&e){if(t.getComputedStyle)return t.getComputedStyle(n).getPropertyValue(e);if(n.currentStyle)return n.currentStyle[this.camelize(e)]}return""},camelize:function(t){return t.replace(/\-[a-z]/g,function(t){return t[1].toUpperCase()})},detach:function(t){var e=this.container,n=this.containerStyle;this.placeholder||(e.parentNode.insertBefore(this.createPlaceholder(t),e.nextSibling),n.position="absolute",n.top=e.offsetTop+this.UNIT,n.left=e.offsetLeft+this.UNIT,n.zIndex=this.MIN_ZINDEX)},createPlaceholder:function(t){var e=this.placeholder=n.createElement("div"),i=e.style,a=this.getStyle("display");return i.width=t.width+this.UNIT,i.height=t.height+this.UNIT,i.display="inline"===a?"inline-block":a,e},expand:function(){var t=this.expandData;this.animation?(this.containerStyle.display="",this.containerStyle.zIndex=t.zIndex,this.animate(t)):this.resize(t),this.forget&&(delete this.forget,this.expandData=null)},collapse:function(){var t=this.collapseData;this.animation?this.animate(t):this.resize(t)},resize:function(t){var e,n=this.containerStyle;for(e in t)n[e]=t[e];isNaN(this.parentZIndex)||(this.container.parentNode.style.zIndex=t.zIndex===this.MAX_ZINDEX?this.MAX_ZINDEX:this.parentZIndex)},animate:function(e){t.$(this.container).animate(e,this.animation)}},{ExpandableContainer:e,initialize:function(t){return new e(t)},expand:function(t){this.initialize(t).expand()},collapse:function(t){this.initialize(t).collapse()}}}(window));//
// Dust - Asynchronous Templating v2.2.10
// http://akdubya.github.com/dustjs
//
// Copyright (c) 2010, Aleksander Williams
// Released under the MIT License.
//

function getGlobal(){return function(){return this.dust}.call(null)}var dust={};(function(dust){function Context(e,t,n,r){this.stack=e,this.global=t,this.blocks=n,this.templateName=r}function Stack(e,t,n,r){this.tail=t,this.isObject=e&&typeof e=="object",this.head=e,this.index=n,this.of=r}function Stub(e){this.head=new Chunk(this),this.callback=e,this.out=""}function Stream(){this.head=new Chunk(this)}function Chunk(e,t,n){this.root=e,this.next=t,this.data=[],this.flushable=!1,this.taps=n}function Tap(e,t){this.head=e,this.tail=t}if(!dust)return;var NONE="NONE",ERROR="ERROR",WARN="WARN",INFO="INFO",DEBUG="DEBUG",loggingLevels=[DEBUG,INFO,WARN,ERROR,NONE],logger={},loggerContext;dust.debugLevel=NONE,dust.silenceErrors=!1,typeof window!="undefined"&&window&&window.console?loggerContext=window.console:typeof console!="undefined"&&console&&(loggerContext=console),logger.log=loggerContext?function(){var e=loggerContext.log;typeof e=="function"?(logger.log=function(){e.apply(loggerContext,arguments)},logger.log.apply(this,arguments)):(logger.log=function(){var t=Array.prototype.slice.apply(arguments).join(" ");e(t)},logger.log.apply(this,arguments))}:function(){},dust.log=function(e,t){t=t||INFO,dust.debugLevel!==NONE&&dust.indexInArray(loggingLevels,t)>=dust.indexInArray(loggingLevels,dust.debugLevel)&&(dust.logQueue||(dust.logQueue=[]),dust.logQueue.push({message:e,type:t}),logger.log("[DUST "+t+"]: "+e));if(!dust.silenceErrors&&t===ERROR)throw typeof e=="string"?new Error(e):e},dust.onError=function(e,t){logger.log("[!!!DEPRECATION WARNING!!!]: dust.onError will no longer return a chunk object."),dust.log(e.message||e,ERROR);if(!dust.silenceErrors)throw e;return t},dust.helpers={},dust.cache={},dust.register=function(e,t){if(!e)return;dust.cache[e]=t},dust.render=function(e,t,n){var r=(new Stub(n)).head;try{dust.load(e,r,Context.wrap(t,e)).end()}catch(i){dust.log(i,ERROR)}},dust.stream=function(e,t){var n=new Stream;return dust.nextTick(function(){try{dust.load(e,n.head,Context.wrap(t,e)).end()}catch(r){dust.log(r,ERROR)}}),n},dust.renderSource=function(e,t,n){return dust.compileFn(e)(t,n)},dust.compileFn=function(e,t){var n=dust.loadSource(dust.compile(e,t));return function(e,r){var i=r?new Stub(r):new Stream;return dust.nextTick(function(){typeof n=="function"?n(i.head,Context.wrap(e,t)).end():dust.log(new Error("Template ["+t+"] cannot be resolved to a Dust function"),ERROR)}),i}},dust.load=function(e,t,n){var r=dust.cache[e];return r?r(t,n):dust.onLoad?t.map(function(t){dust.onLoad(e,function(r,i){if(r)return t.setError(r);dust.cache[e]||dust.loadSource(dust.compile(i,e)),dust.cache[e](t,n).end()})}):t.setError(new Error("Template Not Found: "+e))},dust.loadSource=function(source,path){return eval(source)},Array.isArray?dust.isArray=Array.isArray:dust.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"},dust.indexInArray=function(e,t,n){n=+n||0;if(Array.prototype.indexOf)return e.indexOf(t,n);if(e===undefined||e===null)throw new TypeError('cannot call method "indexOf" of null');var r=e.length;Math.abs(n)===Infinity&&(n=0),n<0&&(n+=r,n<0&&(n=0));for(;n<r;n++)if(e[n]===t)return n;return-1},dust.nextTick=function(){return typeof process!="undefined"?process.nextTick:function(e){setTimeout(e,0)}}(),dust.isEmpty=function(e){return dust.isArray(e)&&!e.length?!0:e===0?!1:!e},dust.filter=function(e,t,n){if(n)for(var r=0,i=n.length;r<i;r++){var s=n[r];s==="s"?t=null:typeof dust.filters[s]=="function"?e=dust.filters[s](e):dust.log("Invalid filter ["+s+"]",WARN)}return t&&(e=dust.filters[t](e)),e},dust.filters={h:function(e){return dust.escapeHtml(e)},j:function(e){return dust.escapeJs(e)},u:encodeURI,uc:encodeURIComponent,js:function(e){return JSON?JSON.stringify(e):(dust.log("JSON is undefined.  JSON stringify has not been used on ["+e+"]",WARN),e)},jp:function(e){return JSON?JSON.parse(e):(dust.log("JSON is undefined.  JSON parse has not been used on ["+e+"]",WARN),e)}},dust.makeBase=function(e){return new Context(new Stack,e)},Context.wrap=function(e,t){return e instanceof Context?e:new Context(new Stack(e),{},null,t)},Context.prototype.get=function(e,t){return typeof e=="string"&&(e[0]==="."&&(t=!0,e=e.substr(1)),e=e.split(".")),this._get(t,e)},Context.prototype._get=function(e,t){var n=this.stack,r=1,i,s,o,u;s=t[0],o=t.length;if(e&&o===0)u=n,n=n.head;else{if(!e){while(n){if(n.isObject){u=n.head,i=n.head[s];if(i!==undefined)break}n=n.tail}i!==undefined?n=i:n=this.global?this.global[s]:undefined}else n&&(n.head?n=n.head[s]:n=undefined);while(n&&r<o)u=n,n=n[t[r]],r++}if(typeof n=="function"){var a=function(){try{return n.apply(u,arguments)}catch(e){return dust.log(e,ERROR)}};return a.isFunction=!0,a}return n===undefined&&dust.log("Cannot find the value for reference [{"+t.join(".")+"}] in template ["+this.getTemplateName()+"]"),n},Context.prototype.getPath=function(e,t){return this._get(e,t)},Context.prototype.push=function(e,t,n){return new Context(new Stack(e,this.stack,t,n),this.global,this.blocks,this.getTemplateName())},Context.prototype.rebase=function(e){return new Context(new Stack(e),this.global,this.blocks,this.getTemplateName())},Context.prototype.current=function(){return this.stack.head},Context.prototype.getBlock=function(e,t,n){if(typeof e=="function"){var r=new Chunk;e=e(r,this).data.join("")}var i=this.blocks;if(!i){dust.log("No blocks for context[{"+e+"}] in template ["+this.getTemplateName()+"]",DEBUG);return}var s=i.length,o;while(s--){o=i[s][e];if(o)return o}},Context.prototype.shiftBlocks=function(e){var t=this.blocks,n;return e?(t?n=t.concat([e]):n=[e],new Context(this.stack,this.global,n,this.getTemplateName())):this},Context.prototype.getTemplateName=function(){return this.templateName},Stub.prototype.flush=function(){var e=this.head;while(e){if(!e.flushable){if(e.error){this.callback(e.error),dust.log("Chunk error ["+e.error+"] thrown. Ceasing to render this template.",WARN),this.flush=function(){};return}return}this.out+=e.data.join(""),e=e.next,this.head=e}this.callback(null,this.out)},Stream.prototype.flush=function(){var e=this.head;while(e){if(!e.flushable){if(e.error){this.emit("error",e.error),dust.log("Chunk error ["+e.error+"] thrown. Ceasing to render this template.",WARN),this.flush=function(){};return}return}this.emit("data",e.data.join("")),e=e.next,this.head=e}this.emit("end")},Stream.prototype.emit=function(e,t){if(!this.events)return dust.log("No events to emit",INFO),!1;var n=this.events[e];if(!n)return dust.log("Event type ["+e+"] does not exist",WARN),!1;if(typeof n=="function")n(t);else if(dust.isArray(n)){var r=n.slice(0);for(var i=0,s=r.length;i<s;i++)r[i](t)}else dust.log("Event Handler ["+n+"] is not of a type that is handled by emit",WARN)},Stream.prototype.on=function(e,t){return this.events||(this.events={}),this.events[e]?typeof this.events[e]=="function"?this.events[e]=[this.events[e],t]:this.events[e].push(t):(dust.log("Event type ["+e+"] does not exist. Using just the specified callback.",WARN),t?this.events[e]=t:dust.log("Callback for type ["+e+"] does not exist. Listener not registered.",WARN)),this},Stream.prototype.pipe=function(e){return this.on("data",function(t){try{e.write(t,"utf8")}catch(n){dust.log(n,ERROR)}}).on("end",function(){try{return e.end()}catch(t){dust.log(t,ERROR)}}).on("error",function(t){e.error(t)}),this},Chunk.prototype.write=function(e){var t=this.taps;return t&&(e=t.go(e)),this.data.push(e),this},Chunk.prototype.end=function(e){return e&&this.write(e),this.flushable=!0,this.root.flush(),this},Chunk.prototype.map=function(e){var t=new Chunk(this.root,this.next,this.taps),n=new Chunk(this.root,t,this.taps);return this.next=n,this.flushable=!0,e(n),t},Chunk.prototype.tap=function(e){var t=this.taps;return t?this.taps=t.push(e):this.taps=new Tap(e),this},Chunk.prototype.untap=function(){return this.taps=this.taps.tail,this},Chunk.prototype.render=function(e,t){return e(this,t)},Chunk.prototype.reference=function(e,t,n,r){if(typeof e=="function"){e.isFunction=!0,e=e.apply(t.current(),[this,t,null,{auto:n,filters:r}]);if(e instanceof Chunk)return e}return dust.isEmpty(e)?this:this.write(dust.filter(e,n,r))},Chunk.prototype.section=function(e,t,n,r){if(typeof e=="function"){e=e.apply(t.current(),[this,t,n,r]);if(e instanceof Chunk)return e}var i=n.block,s=n["else"];r&&(t=t.push(r));if(dust.isArray(e)){if(i){var o=e.length,u=this;if(o>0){t.stack.head&&(t.stack.head.$len=o);for(var a=0;a<o;a++)t.stack.head&&(t.stack.head.$idx=a),u=i(u,t.push(e[a],a,o));return t.stack.head&&(t.stack.head.$idx=undefined,t.stack.head.$len=undefined),u}if(s)return s(this,t)}}else if(e===!0){if(i)return i(this,t)}else if(e||e===0){if(i)return i(this,t.push(e))}else if(s)return s(this,t);return dust.log("Not rendering section (#) block in template ["+t.getTemplateName()+"], because above key was not found",DEBUG),this},Chunk.prototype.exists=function(e,t,n){var r=n.block,i=n["else"];if(!dust.isEmpty(e)){if(r)return r(this,t)}else if(i)return i(this,t);return dust.log("Not rendering exists (?) block in template ["+t.getTemplateName()+"], because above key was not found",DEBUG),this},Chunk.prototype.notexists=function(e,t,n){var r=n.block,i=n["else"];if(dust.isEmpty(e)){if(r)return r(this,t)}else if(i)return i(this,t);return dust.log("Not rendering not exists (^) block check in template ["+t.getTemplateName()+"], because above key was found",DEBUG),this},Chunk.prototype.block=function(e,t,n){var r=n.block;return e&&(r=e),r?r(this,t):this},Chunk.prototype.partial=function(e,t,n){var r;r=dust.makeBase(t.global),r.blocks=t.blocks,t.stack&&t.stack.tail&&(r.stack=t.stack.tail),n&&(r=r.push(n)),typeof e=="string"&&(r.templateName=e),r=r.push(t.stack.head);var i;return typeof e=="function"?i=this.capture(e,r,function(e,t){r.templateName=r.templateName||e,dust.load(e,t,r).end()}):i=dust.load(e,this,r),i},Chunk.prototype.helper=function(e,t,n,r){var i=this;try{return dust.helpers[e]?dust.helpers[e](i,t,n,r):(dust.log("Invalid helper ["+e+"]",WARN),i)}catch(s){return dust.log(s,ERROR),i}},Chunk.prototype.capture=function(e,t,n){return this.map(function(r){var i=new Stub(function(e,t){e?r.setError(e):n(t,r)});e(i.head,t).end()})},Chunk.prototype.setError=function(e){return this.error=e,this.root.flush(),this},Tap.prototype.push=function(e){return new Tap(e,this)},Tap.prototype.go=function(e){var t=this;while(t)e=t.head(e),t=t.tail;return e};var HCHARS=new RegExp(/[&<>\"\']/),AMP=/&/g,LT=/</g,GT=/>/g,QUOT=/\"/g,SQUOT=/\'/g;dust.escapeHtml=function(e){return typeof e=="string"?HCHARS.test(e)?e.replace(AMP,"&amp;").replace(LT,"&lt;").replace(GT,"&gt;").replace(QUOT,"&quot;").replace(SQUOT,"&#39;"):e:e};var BS=/\\/g,FS=/\//g,CR=/\r/g,LS=/\u2028/g,PS=/\u2029/g,NL=/\n/g,LF=/\f/g,SQ=/'/g,DQ=/"/g,TB=/\t/g;dust.escapeJs=function(e){return typeof e=="string"?e.replace(BS,"\\\\").replace(FS,"\\/").replace(DQ,'\\"').replace(SQ,"\\'").replace(CR,"\\r").replace(LS,"\\u2028").replace(PS,"\\u2029").replace(NL,"\\n").replace(LF,"\\f").replace(TB,"\\t"):e}})(dust),typeof exports!="undefined"&&(typeof process!="undefined"&&require("./server")(dust),module.exports=dust)/*! dustjs-helpers - v1.2.0 - LI v2.1.1
* https://github.com/linkedin/dustjs-helpers
* Copyright (c) 2014 Aleksander Williams; Released under the MIT License */
!function(dust){function isSelect(a){var b=a.current();return"object"==typeof b&&b.isSelect===!0}function jsonFilter(a,b){return"function"==typeof b?b.toString().replace(/(^\s+|\s+$)/gm,"").replace(/\n/gm,"").replace(/,\s*/gm,", ").replace(/\)\{/gm,") {"):b}function filter(a,b,c,d,e){d=d||{};var f,g,h=c.block,i=d.filterOpType||"";if("undefined"!=typeof d.key)f=dust.helpers.tap(d.key,a,b);else{if(!isSelect(b))return _console.log("No key specified for filter in:"+i+" helper "),a;f=b.current().selectKey,b.current().isResolved&&(e=function(){return!1})}return g=dust.helpers.tap(d.value,a,b),e(coerce(g,d.type,b),coerce(f,d.type,b))?(isSelect(b)&&(b.current().isResolved=!0),h?a.render(h,b):(_console.log("Missing body block in the "+i+" helper "),a)):c["else"]?a.render(c["else"],b):a}function coerce(a,b,c){if(a)switch(b||typeof a){case"number":return+a;case"string":return String(a);case"boolean":return a="false"===a?!1:a,Boolean(a);case"date":return new Date(a);case"context":return c.get(a)}return a}var _console="undefined"!=typeof console?console:{log:function(){}},helpers={tap:function(a,b,c){if("function"!=typeof a)return a;var d,e="";return d=b.tap(function(a){return e+=a,""}).render(a,c),b.untap(),d.constructor!==b.constructor?d:""===e?!1:e},sep:function(a,b,c){var d=c.block;return b.stack.index===b.stack.of-1?a:d?c.block(a,b):a},idx:function(a,b,c){var d=c.block;return d?c.block(a,b.push(b.stack.index)):a},contextDump:function(a,b,c,d){var e,f=d||{},g=f.to||"output",h=f.key||"current";return g=dust.helpers.tap(g,a,b),h=dust.helpers.tap(h,a,b),e="full"===h?JSON.stringify(b.stack,jsonFilter,2):JSON.stringify(b.stack.head,jsonFilter,2),"console"===g?(_console.log(e),a):a.write(e)},"if":function(chunk,context,bodies,params){var body=bodies.block,skip=bodies["else"];if(params&&params.cond){var cond=params.cond;if(cond=dust.helpers.tap(cond,chunk,context),eval(cond))return body?chunk.render(bodies.block,context):(_console.log("Missing body block in the if helper!"),chunk);if(skip)return chunk.render(bodies["else"],context)}else _console.log("No condition given in the if helper!");return chunk},math:function(a,b,c,d){if(d&&"undefined"!=typeof d.key&&d.method){var e=d.key,f=d.method,g=d.operand,h=d.round,i=null;switch(e=dust.helpers.tap(e,a,b),g=dust.helpers.tap(g,a,b),f){case"mod":(0===g||g===-0)&&_console.log("operand for divide operation is 0/-0: expect Nan!"),i=parseFloat(e)%parseFloat(g);break;case"add":i=parseFloat(e)+parseFloat(g);break;case"subtract":i=parseFloat(e)-parseFloat(g);break;case"multiply":i=parseFloat(e)*parseFloat(g);break;case"divide":(0===g||g===-0)&&_console.log("operand for divide operation is 0/-0: expect Nan/Infinity!"),i=parseFloat(e)/parseFloat(g);break;case"ceil":i=Math.ceil(parseFloat(e));break;case"floor":i=Math.floor(parseFloat(e));break;case"round":i=Math.round(parseFloat(e));break;case"abs":i=Math.abs(parseFloat(e));break;default:_console.log("method passed is not supported")}return null!==i?(h&&(i=Math.round(i)),c&&c.block?a.render(c.block,b.push({isSelect:!0,isResolved:!1,selectKey:i})):a.write(i)):a}return _console.log("Key is a required parameter for math helper along with method/operand!"),a},select:function(a,b,c,d){var e=c.block;if(d&&"undefined"!=typeof d.key){var f=dust.helpers.tap(d.key,a,b);return e?a.render(c.block,b.push({isSelect:!0,isResolved:!1,selectKey:f})):(_console.log("Missing body block in the select helper "),a)}return _console.log("No key given in the select helper!"),a},eq:function(a,b,c,d){return d&&(d.filterOpType="eq"),filter(a,b,c,d,function(a,b){return b===a})},ne:function(a,b,c,d){return d?(d.filterOpType="ne",filter(a,b,c,d,function(a,b){return b!==a})):a},lt:function(a,b,c,d){return d?(d.filterOpType="lt",filter(a,b,c,d,function(a,b){return a>b})):void 0},lte:function(a,b,c,d){return d?(d.filterOpType="lte",filter(a,b,c,d,function(a,b){return a>=b})):a},gt:function(a,b,c,d){return d?(d.filterOpType="gt",filter(a,b,c,d,function(a,b){return b>a})):a},gte:function(a,b,c,d){return d?(d.filterOpType="gte",filter(a,b,c,d,function(a,b){return b>=a})):a},"default":function(a,b,c,d){return d&&(d.filterOpType="default"),filter(a,b,c,d,function(){return!0})},size:function(a,b,c,d){var e,f,g,h=0;if(d=d||{},e=d.key,e&&e!==!0)if(dust.isArray(e))h=e.length;else if(!isNaN(parseFloat(e))&&isFinite(e))h=e;else if("object"==typeof e){f=0;for(g in e)Object.hasOwnProperty.call(e,g)&&f++;h=f}else h=(e+"").length;else h=0;return a.write(h)}};dust.helpers=helpers}("undefined"!=typeof exports?module.exports=require("dustjs-linkedin"):dust);
/*! dust-ui-helpers - v1.1.0 Copyright © 2014 LinkedIn Corporation */
!function(dust){var a="control-dust-client",b="control-dust-server",c=function(a){return"string"==typeof a?a.replace(/\u0000/g,"�").replace(/<\/(script)/gi,"<\\/$1"):a},d={jsControl:{count:1,controls:{},controlIds:[],controlIdentifier:"undefined"==typeof window?b:a,contextIdentifier:"undefined"==typeof window?Math.floor(100000001*Math.random())+"-":""},i18n:dust.i18n||{cache:{}}};d.i18n.cache=d.i18n.cache||{};var e,f={miniprofile_popup:function(a,b,c,d){var e,f,g,h,i;return d&&d.url&&(e=dust.helpers.tap(d.url,a,b),f=d.tracking||"",h=dust.helpers.tap(d.searchClass,a,b)||"",g=dust.helpers.tap(d.getJs,a,b)||"",i=dust.helpers.tap(d.template,a,b)||"",a.write('<span data-tracking="'+f+'"'),a.write(h?' class="'+h+" "+dust.filters.h(e)+'"':' class="miniprofile-container '+dust.filters.h(e)+'"'),e&&a.write(' data-li-url="'+dust.filters.h(e)+'"'),g&&a.write(' data-li-getjs="'+g+'"'),i&&a.write(' data-li-tl="'+i+'"'),a.write("><strong>"),a.render(c.block,b),a.write("</strong></span>")),a},module:function(a,b,c,d){var e,f,g,h,i,j;return d&&(e="undefined"==typeof d.hasHdr||"true"===d.hasHdr.toLowerCase(),f=d.hdrTag||"h3",g=d.id||"module-id"+Math.floor(1001*Math.random()),h=d.moduleClass?" "+d.moduleClass:"",i=d.type||"util",j=dust.helpers.tap(d.title,a,b)||"",a.write('<div class="leo-module mod-'+i+h+'" id="'+g+'">'),e&&a.write('<div class="header"><'+dust.filters.h(f)+">"+dust.filters.h(j)+"</"+dust.filters.h(f)+"></div>"),a.write('<div class="content">'),a.render(c.block,b),a.write("</div></div>")),a},jsControlFlush:function(a){var b;return dust&&dust.jsControl&&dust.jsControl.controlIds&&dust.jsControl.controlIds.length&&(b='"'+dust.jsControl.controlIds.join(",")+'";',a.write('<script type="text/javascript">').write("if (dust && dust.jsControl) {").write("if (!dust.jsControl.flushControlIds) {").write('dust.jsControl.flushControlIds = "";').write("} else {").write('dust.jsControl.flushControlIds += ",";').write("}").write("dust.jsControl.flushControlIds += "+b).write("}").write("</script>"),dust.jsControl.controlIds=[]),a},jsControl:function(a,d,e,f){if(f&&f.name){var g,h=dust.jsControl.controlIdentifier+"-"+dust.jsControl.contextIdentifier+dust.jsControl.count,i=f.name;dust.jsControl.controlIds.push(h),"initialized"!==dust.jsControl.controls[i]&&void 0===f.disableControlInitData&&(dust.jsControl.controls[i]="initialized",g="tl/shared/js-control/"+i.replace(/LI\./,"_").replace(/\./g,"_").toLowerCase(),dust.cache[g]&&a.partial(g,d)),a.write('<script id="'+h+'" type="linkedin/control" class="li-control">'),a.write('LI.Controls.addControl("'+h+'", "'+f.name+'", '),e.block?a.tap(c).render(e.block,d).untap():a.write("{}"),a.write(")</script>"),dust.jsControl.count++,dust.jsControl.controlIdentifier===b&&dust.helpers.jsControlFlush(a,d,e,f)}return a},partial:function(a,b,c,d){var e,f,g={},h=d&&d.key?d.key:"partial",i=b.get(h);if(d)for(var j in d)"key"!==j&&(g[j]=dust.helpers.tap(d[j],a,b));if(i)for(e in i)g[e]=i[e];if(g.isPartial=!0,d&&d.template){var k=d.template;if(k.indexOf(":")>=0){var l=k.indexOf(":"),m=k.substring(l+1),n=b.get(m);if(k=k.substring(0,l),n)for(e in n)g[e]=n[e]}return f=dust.makeBase(g),f.templateName=b.getTemplateName(),a.partial(k,f)}return f=dust.makeBase(g),f.templateName=b.getTemplateName(),c.block(a,f)},param:function(a,b,c,d){if(b.global&&b.global.isPartial&&d){var e=d.key,f=d.defaultVal,g=b.global[e];e&&"undefined"==typeof g&&"undefined"!=typeof f&&(b.global[e]=f)}return a},replace:function(a,b,c,d){if(!d)return a.write("");var e=dust.helpers.tap(d.value,a,b)||"",f=dust.helpers.tap(d.target,a,b)||"",g=dust.helpers.tap(d.replacement,a,b)||"",h=!!d.toLower,i=!!d.toUpper,j=d.target&&new RegExp(f,"g"),k=e.replace(j,g);return k=i&&k.toUpperCase()||k,k=h&&k.toLowerCase()||k,a.write(k)},log:function(a,b,c,d){return d&&d.info&&dust.log(d.info),a},i18n:function(a,b,c,d){if(d&&"true"===d.hide)return a;if(d&&"undefined"!=typeof d.key){var e=d.key,f=d.template||b.getTemplateName();if("undefined"!=typeof f){var g,h=dust.i18n.cache[f];if(h&&(g=h[d.key]))return d.output?(b.stack.head[e]=g,a):a.write(g);if(g=d.text)return a.write(g);if(c.block)return a.render(c.block,b)}return a}}};for(e in d)dust[e]=d[e];for(e in f)dust.helpers[e]=f[e]}(dust);(function(d,c){var b;
if(c.log){b=c.log;
c.log=function a(g,e){try{if(d.jet&&(e==="ERROR"||e==="WARN")){if(g instanceof Error){jet.error(g)
}else{if(typeof g==="string"){try{throw new Error(g)
}catch(f){jet.error(f)
}}}}}finally{return b.apply(c,arguments)
}}
}else{if(d.jet){jet.error(new Error("The function dust.log doesn't exist in this version."))
}}}(window,dust));!function(a,b){"object"==typeof exports?module.exports=b():"function"==typeof define&&define.amd?define("liTrackClient",[],b):a.liTrackClient=b()}(this,function(){var a={AJAX_METHOD:"POST",DEFAULT_PAGE_TYPE:"ajax",globalTrackingUrl:null,globalTrackingAppId:"no.app.id",lastDisplayMetric:null,lastActionMetric:null,queue:[],maxQueueSize:1,queueTimeout:1e3,timeoutId:null,setProperty:function(a,b){if(b)return void(this[a]=b);var c=this.getMetaTag(a);return c?void(this[a]=c.content):void 0},setTrackingUrl:function(a){this.setProperty("globalTrackingUrl",a)},setAppId:function(a){this.setProperty("globalTrackingAppId",a)},createXmlHttpObject:function(){try{return new XMLHttpRequest}catch(a){}return null},ajax:function(a,b,c){var d;return this.globalTrackingUrl?(d=this.createXmlHttpObject(),void(d&&(d.open(this.AJAX_METHOD,this.globalTrackingUrl,!0),d.setRequestHeader("Content-type","application/json"),d.onreadystatechange=function(){return 4===d.readyState?200!==d.status&&304!==d.status?void(c&&c("Request returned "+d.status)):void("function"==typeof b&&b(d)):void 0},4!==d.readyState&&d.send(a)))):void(c&&c("Tracking url is not defined"))},flush:function(){var a=this;this.ajax(JSON.stringify(this.queue),null,a.logError),this.queue=[],clearTimeout(this.timeoutId),this.timeoutId=null},addToQueue:function(a){if(this.queue.push(a),this.queue.length>=this.maxQueueSize)return this.flush();if(!this.timeoutId){var b=this;this.timeoutId=setTimeout(function(){b.flush()},this.queueTimeout)}},track:function(a){return"object"!=typeof a?void this.logError("Track data must be an object"):(a=this.fillMissingData(a),void this.addToQueue(a))},trackWithCallback:function(a,b){var c=this;if("object"!=typeof a)return void this.logError("Track data must be an object");a=this.fillMissingData(a);var d=JSON.stringify(a);this.ajax(d,function(a){"function"==typeof b&&b(null,a.responseText)},function(a){c.logError(a),"function"==typeof b&&b(a)})},getTimestamp:function(){return Math.round((new Date).getTime()/1e3)},getTrackingCode:function(a){return a.eventBody.trackingCode?a.eventBody.trackingCode:"PageViewEvent"===a.eventInfo.eventName?"full"===a.eventBody.pageType?(this.lastDisplayMetric=a.eventBody.requestHeader.pageKey,this.lastActionMetric):(this.lastActionMetric=a.eventBody.requestHeader.pageKey,this.lastDisplayMetric):null},fillMissingData:function(a){if(!a.eventInfo)return this.logError("You must specify eventInfo");if(a.eventInfo.appId||(a.eventInfo.appId=this.globalTrackingAppId),!a.eventBody)return this.logError("You must specify eventBody");a.eventBody.trackingCode=this.getTrackingCode(a);var b=a.eventBody.trackingInfo||{};return b.clientTimestamp||(b.clientTimestamp=this.getTimestamp()),a.eventBody.trackingInfo=b,a},trackPageView:function(a){var b,c,d,e;"string"==typeof a?(b=a,e=this.DEFAULT_PAGE_TYPE):(b=a.pageKey,e=a.pageType||this.DEFAULT_PAGE_TYPE,c=a.trackingCode,d=a.trackingInfo);var f={eventInfo:{eventName:"PageViewEvent"},eventBody:{requestHeader:{pageKey:b},pageType:e}};return c&&(f.eventBody.trackingCode=c),d&&(f.eventBody.trackingInfo=d),b?void this.track(f):this.logError("You must provide a pageKey")},trackUnifiedAction:function(a){if(!a.requestHeader||!a.requestHeader.pageKey)return this.logError("You must provide pageKey");if(!a.action)return this.logError("You must provide action");if(!a.sponsoredFlag)return this.logError("You must provide sponsoredFlag");var b={eventInfo:{eventName:"UnifiedActionEvent"},eventBody:a};this.track(b)},trackArticleView:function(a){if(!a.requestHeader||!a.requestHeader.pageKey)return this.logError("You must provide pageKey");if(!a.articleId)return this.logError("You must provide articleId");var b={eventInfo:{eventName:"ArticleViewEvent"},eventBody:a};this.track(b)},trackUnifiedImpression:function(a){if(!a.requestHeader||!a.requestHeader.pageKey)return this.logError("You must provide pageKey");if(!a.results)return this.logError("You must provide results");var b={eventInfo:{eventName:"UnifiedImpressionEvent"},eventBody:a};this.track(b)},logError:function(a){console&&console.error&&console.error(a)},getMetaTag:function(a){var b,c,d=document.getElementById(a);if(d)return d;for(metas=document.getElementsByTagName("meta"),c=metas.length,b=0;c>b;b++)if(metas[b].getAttribute("name")===a)return metas[b];return null}};return a.setTrackingUrl(),a.setAppId(),a});!function(a,b){"object"==typeof exports?module.exports=b():"function"==typeof define&&define.amd?define("externalTracking",[],b):a.externalTracking=b()}(this,function(){var a={samplingFraction:null,documentPageKeyOverride:null,TRACK_CLIENT:"liTrackClient",EVENT_NAME:"ExternalTrackingPageViewEvent",CHROME_INITIATOR:"CHROME",APP_INITIATOR:"APP",COMSCORE_DATA:{c1:2,c2:6402952,c3:"",c4:"",c5:"",c6:"",c15:""},setTreatment:function(a){try{var b,c;this.samplingFraction=null,a&&0===a.indexOf("enabled")&&(b=a.split("_"),2===b.length&&(c=parseFloat(b[1]),c>=0&&1>=c&&(this.samplingFraction=c)))}catch(d){this._logError("failed to set treatment: "+d)}},setDocumentPageKeyOverride:function(a){this.documentPageKeyOverride=a},trackWithComScoreForChromeInit:function(){this._trackWithComScore(this.documentPageKeyOverride,this.CHROME_INITIATOR)},trackWithComScore:function(a){this._trackWithComScore(a,this.APP_INITIATOR)},_trackWithComScore:function(a,b){if(window.COMSCORE&&"function"==typeof window.COMSCORE.beacon){COMSCORE.beacon(this.COMSCORE_DATA);try{this._trackExternalPageViewRequest(a||this._getDocumentPageKey(),["COMSCORE"],b)}catch(c){this._logError("failed to track external page view")}}else this._logError("COMSCORE library not found")},_trackExternalPageViewRequest:function(a,b,c){var d=this;if(null!==d.samplingFraction){var e={eventInfo:{eventName:d.EVENT_NAME,appId:d._getAppName()},eventBody:{pageViewPageKey:a,pageViewPath:d._getDocumentPath(),samplingFraction:d.samplingFraction,providers:b,initiator:c,requestHeader:{pageKey:d._getDocumentPageKey()}}};if(window.liTrackClient)try{window.liTrackClient.track(e)}catch(f){d._logError("failed to track external page view with "+d.TRACK_CLIENT)}else if(window.require&&"function"==typeof window.require.ensure)try{require.ensure([d.TRACK_CLIENT],function(a){try{var b=a(d.TRACK_CLIENT);b.track(e)}catch(c){d._logError("failed to track external page view with "+d.TRACK_CLIENT)}})}catch(f){d._logError("failed to require "+d.TRACK_CLIENT)}else d._logError(d.TRACK_CLIENT+" not found")}else d._logError("sampling fraction not set")},_getDocumentPageKey:function(){var a=this._getMetaTag("pageKey");return a?a.content:(this._logError("pageKey not found"),"")},_getDocumentPath:function(){return window.location.pathname.split("?")[0]},_getAppName:function(){var a=this._getMetaTag("appName");return a?a.content:(this._logError("appName not found"),"")},_getMetaTag:function(a){var b,c=document.getElementsByTagName("meta"),d=c.length;for(b=0;d>b;b++)if(c[b].getAttribute("name")===a)return c[b];return null},_logError:function(a){console&&console.error&&console.error(a)}};return a});